PHP Nuke Nederland
 
•   Home  •  Downloads  •  Your Account  •  Forums  •
PHP-Nuke Nederland: Forums

PHP-Nuke Nederland :: View topic - Foute tijdstippen bij berichten
 Forum FAQ  •   Search   •  Memberlist  •  Usergroups   •  Register   •    •  Profile  •  Log in to check your private messages  •  Log in

 
Post new topicReply to topic
View previous topic Log in to check your private messages View next topic
Author Message
Cenobyte
Beginner
Beginner


Joined: Sep 18, 2004
Posts: 6

PostPosted: Thu 30 Sep 2004 20:17 Reply with quoteBack to top

Heehoo,

Ik merk dat ik foute tijdstippen bij berichten zie staan (tijd waarop het bericht gepost is). Ook van andere gebruikers kreeg ik hier al vragen over, dus het is niet alleen een probleem wat ik heb.

Waar (en hoe) moet ik in de algemene forum-instellingen aangeven wat de lokale tijd van de server is?

Bij de user-instellingen staat de tijd inmiddels goed.

Thanks,
Mario van Ginneken
www.slottrack.com
View user's profileSend private message
rcdesign
Gevorderd
Gevorderd


Joined: Sep 27, 2004
Posts: 140

PostPosted: Thu 30 Sep 2004 21:45 Reply with quoteBack to top

dat probleem heb ik zelf ook maar dit zou liggen aan de server die niet op onze tijdzone zit mijn chat en clock geven wel de juiste tijd aan
View user's profileSend private messageSend e-mailVisit poster's website
Mozes
MOD, gepensioneerd
MOD, gepensioneerd


Joined: Aug 27, 2004
Posts: 261

PostPosted: Thu 30 Sep 2004 22:27 Reply with quoteBack to top

De juiste tijdweergave, in de newsmodule op de mainpage.
Open mainfile.php en ter hoogte van lijn (567 of 689): zie je het volgende.
[php:1:73b3b79dbf]$datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));[/php:1:73b3b79dbf]
Voeg aan het eind, het volgende toe " - 3600" (3600, is 1uur) om de tijd met 1 uur te verlagen
of " + 3600" om de tijd met 1 uur te verhogen.

zie het voorbeeld hieronder: zoals ik deze heb ingesteld, in mijn mainfile.php.
mijn server staat in amerika en daar tel ik dus 7 uur bij op (7 x3600 = 25200)
[php:1:73b3b79dbf]$datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]) + 25200);[/php:1:73b3b79dbf]
View user's profileSend private messageVisit poster's website
rcdesign
Gevorderd
Gevorderd


Joined: Sep 27, 2004
Posts: 140

PostPosted: Fri 01 Oct 2004 0:14 Reply with quoteBack to top

okey , bedankt!
Nu enkel nog iets om de forumposts in postblock on mainpage in orde krijgen. Want die staat nog steeds 7 uur achter terwijl de tijd op forum zelf juist.
View user's profileSend private messageSend e-mailVisit poster's website
Mozes
MOD, gepensioneerd
MOD, gepensioneerd


Joined: Aug 27, 2004
Posts: 261

PostPosted: Fri 01 Oct 2004 0:25 Reply with quoteBack to top

In de config van je forum admin.
Daar zet je de tijd van je forum goed...
Bij Algemeen
dan /Configuratie
en dan bij "Tijdzone van het systeem"
View user's profileSend private messageVisit poster's website
rcdesign
Gevorderd
Gevorderd


Joined: Sep 27, 2004
Posts: 140

PostPosted: Fri 01 Oct 2004 1:12 Reply with quoteBack to top

als ik via admin naar forum ga staat op gmt+2

daarentegen als ik via admin naar preference ga stat er niks
View user's profileSend private messageSend e-mailVisit poster's website
Mozes
MOD, gepensioneerd
MOD, gepensioneerd


Joined: Aug 27, 2004
Posts: 261

PostPosted: Fri 01 Oct 2004 2:03 Reply with quoteBack to top

rcdesign wrote:
als ik via admin naar forum ga staat op gmt+2

Die moet je ook hebben, zei ik toch al in me vorige post ???
zet hem op weet ik veel, .. gmt +7 ofzo...
View user's profileSend private messageVisit poster's website
rcdesign
Gevorderd
Gevorderd


Joined: Sep 27, 2004
Posts: 140

PostPosted: Fri 01 Oct 2004 4:43 Reply with quoteBack to top

staat noch steeds verkeerd. Daarentegen als ik dit doe. Dan staat het forum ook verkeerd. Terwijl in het forum al de posten juist staan als ik die op gmt+2 zet. Tis gewoon in mijn blok met laatste post op de mainpage dat het misloopt.
View user's profileSend private messageSend e-mailVisit poster's website
kenwood
Moderator
Moderator


Joined: Sep 07, 2004
Posts: 246

PostPosted: Fri 01 Oct 2004 4:47 Reply with quoteBack to top

Je hebt dus het zelfde probleem als mozes op zijn site en als deze site en dat is dat de tijd in het forum block op de index.php niet goed staat?????
View user's profileSend private message
rcdesign
Gevorderd
Gevorderd


Joined: Sep 27, 2004
Posts: 140

PostPosted: Fri 01 Oct 2004 4:48 Reply with quoteBack to top

yep idd. stond paar posten hoger duidelijkaangegeven.
Quote:
Nu enkel nog iets om de forumposts in postblock on mainpage in orde krijgen
View user's profileSend private messageSend e-mailVisit poster's website
Mozes
MOD, gepensioneerd
MOD, gepensioneerd


Joined: Aug 27, 2004
Posts: 261

PostPosted: Fri 01 Oct 2004 5:32 Reply with quoteBack to top

rcdesign wrote:
Tis gewoon in mijn blok met laatste post op de mainpage dat het misloopt.

Je moet toch echt proberen, om je probleem duidelijk te omschrijven.
Dan had ik je gelijk kunnen melden, dat ik met hetzelfde probleem zit.
En de oplossing ervoor niet weet.
Nu heb ik een hoop tijd ergens aan besteed, waar de vraag niet eens over ging Confused
View user's profileSend private messageVisit poster's website
rcdesign
Gevorderd
Gevorderd


Joined: Sep 27, 2004
Posts: 140

PostPosted: Fri 01 Oct 2004 7:08 Reply with quoteBack to top

een deel is wel opgelost hoor. Wink 't was enkel tweede deel dat niet ging.
View user's profileSend private messageSend e-mailVisit poster's website
rcdesign
Gevorderd
Gevorderd


Joined: Sep 27, 2004
Posts: 140

PostPosted: Fri 01 Oct 2004 9:52 Reply with quoteBack to top

lolzzz was beetje aan het testen met de +25200

En kwam op dees uit :

Code:
sql_query("SELECT poster_id, FROM_UNIXTIME(post_time,'%d/%m/%Y at %H:%i')


Daar UNIX de server is , dan UNIXTIME de server tijd.
Dus dit veranderd in:
Code:
sql_query("SELECT poster_id, FROM_UNIXTIME(post_time+25200,'%d/%m/%Y at %H:%i')

en uwe post blok staat juist van tijd Laughing
View user's profileSend private messageSend e-mailVisit poster's website
kenwood
Moderator
Moderator


Joined: Sep 07, 2004
Posts: 246

PostPosted: Sat 02 Oct 2004 4:11 Reply with quoteBack to top

Zo werkt het goed RC ik heb het zo gedaan dat hij het uiterlijk en de kleuren van je forum overneemt dat bij je thema hoord.
Dit is mijn block-Forums.php
Code:

 

if (eregi("Forums.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: index.php");
    die();
}
   
global $prefix, $dbi, $sitename, $admin, $bgcolor1, $textcolor2, $ThemeSel;
 
$HideViewReadOnly = 0;
$zone=3600*0; // door middel van de 5 teveranderen in $zone=3600*5; kan je zoveel vooruit als je wil maar maak je er                        bijvoorbeeld -6 van dan gaat de tyd 6 uur achteruit;       
$Last_New_Topics  = 5;
$show = "  <tr>
    <td height=\"28\" colspan=\"6\" align=\"center\" class=\"catbottom\" background=\"themes/$ThemeSel/forums/images/cellpic1.gif\"><center><form action=\"modules.php?name=Forums&amp;file=search&mode=results&amp;sid=9e762b8eed7949839372e47e131ba887\" method=\"POST\"><input type=\"hidden\" name=\"search_terms\" value=\"all\"><input type=\"hidden\" name=\"search_time\" value=\"0\"><input type=\"hidden\" name=\"search_fields\" value=\"all\"><input type=\"hidden\" name=\"search_cat\" value=\"-1\"><input type=\"hidden\" name=\"search_forum\" value=\"-1\"><input type=\"hidden\" name=\"sort_by\" value=\"0\"><input type=\"hidden\" name=\"sort_dir\" value=\"DESC\"><input type=\"hidden\" name=\"show_results\" value=\"topics\"><input type=\"hidden\" name=\"return_chars\" value=\"-1\"> <b><font color=\"$textcolor2\">Zoek op het forum</b></font> <input type=\"text\" name=\"search_keywords\" size=\"13\"> <input type=\"hidden\" name=\"submit\" value=\"submit\"><font color=\"$textcolor2\"><b>Type je zoekwoord in en druk op enter</b></font></form></center></td>
    </tr>
</table></td>
        </tr>
      </table></td>
  </tr>
</table>";
 
$Count_Topics = 0;
$Topic_Buffer = "";
$result = sql_query( "SELECT t.topic_id, f.forum_name, f.forum_id, t.topic_last_post_id, t.topic_title, t.topic_poster, t.topic_views, t.topic_replies, t.topic_moved_id FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=f.forum_id ORDER BY topic_last_post_id DESC", $dbi );
while( list( $topic_id, $forum_name, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id ) = sql_fetch_row( $result, $dbi ) )
 
{
   $skip_display = 0;
   if( $HideViewReadOnly == 1 )
   {
      $result1 = sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );
      list( $auth_view, $auth_read ) = sql_fetch_row( $result1, $dbi );
      if( ( $auth_view != 0 ) or ( $auth_read != 0 ) ) { $skip_display = 1; }
   }
 
   if( $topic_moved_id != 0 )
   {
     // Shadow Topic !!
      $skip_display = 1;
   }
    if( $forum_id == 3 )
   {
     // Shadow Topic !!
      $skip_display = 57;
   }
   
   if( $skip_display == 0 )
   {
     $Count_Topics += 1;
 
$result2 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$topic_poster'", $dbi);
list($username, $user_id)=sql_fetch_row($result2, $dbi);
$avtor=$username;
$sifra=$user_id;
 
$result3 = sql_query("SELECT poster_id, FROM_UNIXTIME(post_time+$zone,'%d-%m-%Y om %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
list($poster_id, $post_time)=sql_fetch_row($result3, $dbi);

$result4 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$poster_id'", $dbi);
list($username, $user_id)=sql_fetch_row($result4, $dbi);
 
                         $viewlast .="  <tr>
    <td height=\"30\" nowrap bgcolor=\"$bgcolor1\" class=\"row1\"><img src=\"themes/$ThemeSel/forums/images/msg_inbox.gif\" border=\"0\" /></td>
    <td width=\"100%\" bgcolor=\"$bgcolor1\" class=\"row1\"> <b>$forum_name</b><br>  <a href=\"ftopict-.html$topic_id#$topic_last_post_id\">$topic_title</a></td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_replies</td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\"><a href=\"forum-userprofile-.html$sifra\">$avtor</a></td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_views</td>
    <td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\"><font size=\"-2\"><i>  $post_time </i></font><br>
      <a href=\"forum-userprofile-.html$user_id\">$username</a> <a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"><img src=\"icon_latest_reply.gif\" border=\"0\" alt=\"Laatste Post\"></a></td>
      </tr>";
}
   
   if( $Last_New_Topics == $Count_Topics ) { break 1; }
   
}
 
    $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr>
          <td  bgcolor=\"$textcolor2\"><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">
 
 <tr>
    <th height=\"25\" colspan=\"2\" align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thcornerl\"><font color=\"$textcolor2\"><strong>Forum/Onderwerp</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor2\"><strong> Antwoorden </strong></font></th>
    <th width=\"100\" align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor2\"><strong> Auteur </strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor2\"><strong> Bekeken </strong></font></th>
    <th align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thcornerr\"><font color=\"$textcolor2\"><strong> Laatste Bericht </strong></font></th>
    </tr>";
$content .= "$viewlast";
 $content .= "$show";

View user's profileSend private message
Mozes
MOD, gepensioneerd
MOD, gepensioneerd


Joined: Aug 27, 2004
Posts: 261

PostPosted: Sat 02 Oct 2004 5:19 Reply with quoteBack to top

Bedankt rcdesign Cool
Ik heb het hier naar veranderd.
[php:1:4092c97bd2]$result3 = sql_query("SELECT poster_id, FROM_UNIXTIME(post_time+21600,'%m/%d/%Y at %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
[/php:1:4092c97bd2]
en het word nu correct weergegeven..

ps.
ik gebruik het "HP-Nuke Block: subBlack Center Forum Block v.2"
Made by mikem http://www.nukecops.com
View user's profileSend private messageVisit poster's website
Display posts from previous:      
 Donaties   Adverteren 
Wilt u het forum steunen, dan kunt u nu eenvoudig doneren met PayPal.
Post new topicReply to topic
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004-2008 by BlueLion.
SEO enhanced with the Sitemapper script
You can syndicate our news using the file backend.php or ultramode.txt
Powered by PHP Powered by MySQL Apache Webserver Valid robots.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Pagina rendering: 0.11 seconden


[Valid News RSS]

RSS Feeds:
[RSS 2.0 News Feed]
[RSS 2.0 Download Feed]
[RSS 2.0 Forum Feed]
[RSS 2.0 Link Feed]
:: fisubsilver shadow phpbb2 style by Daz :: PHP-Nuke theme by BlueLion ::