+ Reply to Thread
Results 1 to 3 of 3

Thread: Editing time of post?

  1. Join Date
    Jan 2006
    Posts
    2

    Editing time of post?

    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.

  2. Join Date
    Aug 2004
    Posts
    781

    Re: Editing time of post?

    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:
    PHP Code:
    $post_data['date'
    And replace with:
    PHP Code:
    $post_data['date'] - (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.

  3. Join Date
    Jan 2006
    Posts
    2

    Re: Editing time of post?

    Excellent! That worked perfectly.

    Thanks for the quick reply!

    Oh, and I am using phpBB.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts