[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 180: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
IntegraMOD Home of phpBB Integrated Modifications 2006-07-20T15:38:02-07:00 http://www.integramod.com/forum/feed.php?f=17&t=808 2006-07-20T15:38:02-07:00 2006-07-20T15:38:02-07:00 http://www.integramod.com/forum/viewtopic.php?t=808&p=12214#p12214 <![CDATA[Re: [FIX] TOPIC REVIEW TIME on other timezones]]>

Statistics: Posted Author: obiku — Thu Jul 20, 2006 3:38 pm


]]>
2006-07-20T14:58:28-07:00 2006-07-20T14:58:28-07:00 http://www.integramod.com/forum/viewtopic.php?t=808&p=12212#p12212 <![CDATA[Re: [FIX] TOPIC REVIEW TIME on other timezones]]>
"obiku";p="12188" wrote:
"evolver";p="6424" wrote:
[size=99px]
function topic_review($topic_id, $is_inline_review){

[b]AFTER ADD]
   global $board_config, $db, $userdata;   if ( isset($userdata['user_timezone']) )   {     $usersummertime = 0;     $boardsummertime = 0;     if($userdata['user_summer_time']) $usersummertime = 1;     if($board_config['summer_time']) $boardsummertime = 1;       $zonedifference = (($board_config['real_board_timezone'] + $boardsummertime) - ($board_config['board_timezone'] + $usersummertime));   }   else   {   $zonedifference = 0;   }   $zonediffseconds = ($zonedifference * 3600);


If you put this code in the place you said, it looks like this
function topic_review($topic_id, $is_inline_review){   global $board_config, $db, $userdata;   if ( isset($userdata['user_timezone']) )   {     $usersummertime = 0;     $boardsummertime = 0;     if($userdata['user_summer_time']) $usersummertime = 1;     if($board_config['summer_time']) $boardsummertime = 1;       $zonedifference = (($board_config['real_board_timezone'] + $boardsummertime) - ($board_config['board_timezone'] + $usersummertime));   }   else   {   $zonedifference = 0;   }   $zonediffseconds = ($zonedifference * 3600);     global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path;     global $userdata, $user_ip;     global $orig_word, $replacement_word;     global $starttime;//-- mod ]As you can see, the third line:
global $board_config, $db, $userdata;
is already in this function. So my question is, can you also put this part of the code
[code]  {     $usersummertime = 0;     $boardsummertime = 0;     if($userdata['user_summer_time']) $usersummertime = 1;     if($board_config['summer_time']) $boardsummertime = 1;       $zonedifference = (($board_config['real_board_timezone'] + $boardsummertime) - ($board_config['board_timezone'] + $usersummertime));   }   else   {   $zonedifference = 0;   }   $zonediffseconds = ($zonedifference * 3600);  

behind the lines
[code]//-- mod ]without putting in the line
global $board_config, $db, $userdata;

You're right, obiku :mrgreen:
global :mrgreen:
I didn't even know what it was for... :wink:

But I'm learning, fast as a train...
I've learned a lot by now...and I'm still learning more...
I've done many experiments on testsites...
Anything I need to know, I look up on the internet.
Studying example PHP-snippets, comparing them with others, to build one completely the way I like...

Yes, that's what I'm doing right now...making a full PHP-script by my own...and it's expanding
I started with modifying a chmod-script only to add another chmod-method
But, by now, it can't even be compared with the original anymore...
I've added more functions, it will even need a menu to start with...

And now, when I look back at my first little attempts, it makes me smile :D
And I'm sure, I will also smile later, when I look back at the script I'm working on right now...
I'm just evolving...and I like it <img>

Statistics: Posted Author: evolver — Thu Jul 20, 2006 2:58 pm


]]>
2006-07-20T10:48:44-07:00 2006-07-20T10:48:44-07:00 http://www.integramod.com/forum/viewtopic.php?t=808&p=12188#p12188 <![CDATA[Re: [FIX] TOPIC REVIEW TIME on other timezones]]>
"evolver";p="6424" wrote:
[size=99px]
function topic_review($topic_id, $is_inline_review){

[b]AFTER ADD]
   global $board_config, $db, $userdata;   if ( isset($userdata['user_timezone']) )   {     $usersummertime = 0;     $boardsummertime = 0;     if($userdata['user_summer_time']) $usersummertime = 1;     if($board_config['summer_time']) $boardsummertime = 1;       $zonedifference = (($board_config['real_board_timezone'] + $boardsummertime) - ($board_config['board_timezone'] + $usersummertime));   }   else   {   $zonedifference = 0;   }   $zonediffseconds = ($zonedifference * 3600);


If you put this code in the place you said, it looks like this
function topic_review($topic_id, $is_inline_review){   global $board_config, $db, $userdata;   if ( isset($userdata['user_timezone']) )   {     $usersummertime = 0;     $boardsummertime = 0;     if($userdata['user_summer_time']) $usersummertime = 1;     if($board_config['summer_time']) $boardsummertime = 1;       $zonedifference = (($board_config['real_board_timezone'] + $boardsummertime) - ($board_config['board_timezone'] + $usersummertime));   }   else   {   $zonedifference = 0;   }   $zonediffseconds = ($zonedifference * 3600);     global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path;     global $userdata, $user_ip;     global $orig_word, $replacement_word;     global $starttime;//-- mod ]As you can see, the third line:
global $board_config, $db, $userdata;
is already in this function. So my question is, can you also put this part of the code
[code]  {     $usersummertime = 0;     $boardsummertime = 0;     if($userdata['user_summer_time']) $usersummertime = 1;     if($board_config['summer_time']) $boardsummertime = 1;       $zonedifference = (($board_config['real_board_timezone'] + $boardsummertime) - ($board_config['board_timezone'] + $usersummertime));   }   else   {   $zonedifference = 0;   }   $zonediffseconds = ($zonedifference * 3600);  

behind the lines
[code]//-- mod ]without putting in the line
global $board_config, $db, $userdata;

Statistics: Posted Author: obiku — Thu Jul 20, 2006 10:48 am


]]>
2006-05-29T18:25:51-07:00 2006-05-29T18:25:51-07:00 http://www.integramod.com/forum/viewtopic.php?t=808&p=7818#p7818 <![CDATA[[FIX] TOPIC REVIEW TIME on other timezones]]>
Mike

Statistics: Posted Author: Michaelo — Mon May 29, 2006 6:25 pm


]]>
2006-05-19T07:46:32-07:00 2006-05-19T07:46:32-07:00 http://www.integramod.com/forum/viewtopic.php?t=808&p=6568#p6568 <![CDATA[[FIX] TOPIC REVIEW TIME on other timezones]]> Statistics: Posted Author: tekguru — Fri May 19, 2006 7:46 am


]]>
2006-05-18T11:16:34-07:00 2006-05-18T11:16:34-07:00 http://www.integramod.com/forum/viewtopic.php?t=808&p=6433#p6433 <![CDATA[[FIX] TOPIC REVIEW TIME on other timezones]]> Statistics: Posted Author: Eon — Thu May 18, 2006 11:16 am


]]>
2006-05-18T10:12:41-07:00 2006-05-18T10:12:41-07:00 http://www.integramod.com/forum/viewtopic.php?t=808&p=6426#p6426 <![CDATA[[FIX] TOPIC REVIEW TIME on other timezones]]>

A

Statistics: Posted Author: Adrian Rea — Thu May 18, 2006 10:12 am


]]>
2006-05-18T10:07:20-07:00 2006-05-18T10:07:20-07:00 http://www.integramod.com/forum/viewtopic.php?t=808&p=6424#p6424 <![CDATA[[FIX] TOPIC REVIEW TIME on other timezones]]> topic review, displayed under the posting (edit) page...
[flash=,:2y45xfbq]http://www.stelplaats.be/screenshots/kismod/messageinput.jpg[/flash:2y45xfbq]
Message-times are displayed at servertime, not usertime.

[size=99px]

[size=99px]
function topic_review($topic_id, $is_inline_review){

[b]AFTER ADD]
   global $board_config, $db, $userdata;   if ( isset($userdata['user_timezone']) )   {     $usersummertime = 0;     $boardsummertime = 0;     if($userdata['user_summer_time']) $usersummertime = 1;     if($board_config['summer_time']) $boardsummertime = 1;       $zonedifference = (($board_config['real_board_timezone'] + $boardsummertime) - ($board_config['board_timezone'] + $usersummertime));   }   else   {   $zonedifference = 0;   }   $zonediffseconds = ($zonedifference * 3600);


[b]FIND]
            $poster_id = $row['user_id'];             $poster = $row['username'];                           $post_date = create_date($board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone']);

[b]REPLACE]
            $poster_id = $row['user_id'];             $poster = $row['username'];                         $posttime= $row['post_time']-$zonediffseconds;                           $post_date = create_date($board_config['default_dateformat'], $posttime, $board_config['board_timezone']);  


:D <img>

Statistics: Posted Author: evolver — Thu May 18, 2006 10:07 am


]]>