
01-09-2006, 10:02 AM
|
|
|
Join Date: Jan 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by BassX
Find the following in ouput_News()
PHP Code:
array(
'threadid' => $News['threadid'],
'threadname' => $News['title'],
'postuserid' => $News['postuserid'],
'postusername' => $News['postusername'],
'post' => $bbcode_parser->parse(unhtmlspecialchars($News['pagetext']), $f),
'comments' => vb_number_format($News['replycount']),
)
And add the following to the array:
PHP Code:
'date' => vbdate($vbulletin->options['dateformat'], $News['dateline']),
'time' => vbdate($vbulletin->options['timeformat'], $News['dateline']),
Then add date and time to your template.
|
Very nice... though it'd be cool if the GMT on the page where the news dates were being displayed were in sync with the forums default GMT and user preferences to give more accurate readings.
|