
11-26-2004, 12:46 PM
|
|
|
Join Date: Oct 2002
Location: Tampa
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by akiy
Since I didn't see any code to insert the time when each message was sent, I went ahead and coded it myself.
After:
Code:
if($thisIgnore == 0){
I inserted:
Code:
$time = date("g:ia",
mktime(date("H",
$ThisMSG['s_postime'])-$timediff+$ThisMSG['timezoneoffset'],
date("i, s, m, d, Y", $ThisMSG['s_postime'])));
I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.
Hope that helps!
|
:up: Thanks! For boards that are not pruned daily, could you provide the code to include the date as well?
|