PDA

View Full Version : Editing time of post?



Greg
01-23-2006, 10:43 PM
I've been using Forum news for about a month and it's been great apart from one thing that has been bothering me. The time that is displayed by news posts is different to the time displayed in the forum post.

My question is: Is there anyway to modify the time and date using the date tags within the template?

Where does Forum news grab the time? It's a shame that it doesn't echo what it sees in the post.

Thanks,

Greg.

Patrick
01-23-2006, 11:31 PM
This all depends on your forum software... which you didn't mention ;)

The script pulls the time from the forum's mysql database for that post.

An easy way to hot-fix this would be to open classes/display.php and:

Find:

$post_data['date']

And replace with:

( $post_data['date'] - (5 * 3600) )

Replace 5 with the number of hours you are behind (-) or ahead (+).

I will see if I can incorporate this feature into the next version.

Greg
01-24-2006, 12:14 AM
Excellent! That worked perfectly.

Thanks for the quick reply!

Oh, and I am using phpBB. :)