Announcement

Collapse
No announcement yet.

Thread variables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Thread variables

    I have tried searching this forum for the answer.. but have come up empty.. so I am sorry if this has already been asked.

    I am trying to get the date and time to show under the "Thread Starter" column in the threads listing.. but I cannot figure out the right variable to display the thread creation date and the creation time. Would this be pulled from the original post in the thread or what?

    I have tried looking thru all the vB templates and cannot seem to find anything like $thread[postdate] $thread[posttime] .. I hope someone understands what I am trying to do and can help me.

    Thanks.

  • #2
    noone knows this one little code??

    Comment


    • #3
      there isn't one. you can do a little hacking though:

      in forumdisplay.php, find this (twice):

      PHP Code:
      $thread[lastreplydate]=vbdate($dateformat,$thread[lastpost]);
      $thread[lastreplytime]=vbdate($timeformat,$thread[lastpost]); 
      and after it add:

      PHP Code:
      $thread[postdate]=vbdate($dateformat,$thread[dateline]);
      $thread[posttime]=vbdate($timeformat,$thread[dateline]); 
      then you can use $thread[postdate] and $thread[posttime]

      Comment


      • #4
        thank you sir!

        that is exactly what I was needing.

        Comment

        Loading...
        Working...
        X