Add thread time on forumdisplay

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Merjawy
    Senior Member
    • Sep 2002
    • 2613

    Add thread time on forumdisplay

    Hello

    I know where to insert, but I need to know what vairiable to insert in forumdisplay to show the start date/time of a thread..

    the way it is now, theres the thread title, the thread starter's name no date or time .. I like to add it there

    I used $post[postdate]
    $thread[threaddate]

    and many other attempts but none gave me what I want

    thnx
    To be or not to be... Where the hell is the question????
    My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you're ugly too

    Live vBulletin 4.2.0 Multilingual * Alpha/Beta vB 4 - vB 5 Tier 1A
    CentOS 6.2 - Apache:2.2.15(Apache2Handler) - PHP:5.3.3 - MySQL:5.1.61
    Xampp/Win-XP - Apache v2.2.21(Apache2Handler) - PHP:5.3.8 - MySQL:5.5.16

  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    The timestamp for a thread's postdate can be called with $thread[dateline] in this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit

    However, there is no variable that contains the parsed date and time for that timestamp. Adding such a variable would require adding code to the vBulletin files. For help with this I recommend you post on www.vbulletin.org, the official vB hacking site.

    Comment

    • Merjawy
      Senior Member
      • Sep 2002
      • 2613

      #3
      Thanks Jake, I will play around and see what I can come up with
      To be or not to be... Where the hell is the question????
      My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you're ugly too

      Live vBulletin 4.2.0 Multilingual * Alpha/Beta vB 4 - vB 5 Tier 1A
      CentOS 6.2 - Apache:2.2.15(Apache2Handler) - PHP:5.3.3 - MySQL:5.1.61
      Xampp/Win-XP - Apache v2.2.21(Apache2Handler) - PHP:5.3.8 - MySQL:5.5.16

      Comment

      • Merjawy
        Senior Member
        • Sep 2002
        • 2613

        #4
        I put in $thread[dateline] and I got a big number 1081233111 something like that

        anyway, it was a try .. I thank you
        To be or not to be... Where the hell is the question????
        My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you're ugly too

        Live vBulletin 4.2.0 Multilingual * Alpha/Beta vB 4 - vB 5 Tier 1A
        CentOS 6.2 - Apache:2.2.15(Apache2Handler) - PHP:5.3.3 - MySQL:5.1.61
        Xampp/Win-XP - Apache v2.2.21(Apache2Handler) - PHP:5.3.8 - MySQL:5.5.16

        Comment

        • MegaHertz
          Senior Member
          • Jun 2003
          • 360
          • 3.0.7

          #5
          That is the number of seconds since January 1, 1970 12:00am IIRC. So now all you need to do is convert that in to the current date and time.

          Comment

          • Merjawy
            Senior Member
            • Sep 2002
            • 2613

            #6
            lol@Mega
            To be or not to be... Where the hell is the question????
            My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you're ugly too

            Live vBulletin 4.2.0 Multilingual * Alpha/Beta vB 4 - vB 5 Tier 1A
            CentOS 6.2 - Apache:2.2.15(Apache2Handler) - PHP:5.3.3 - MySQL:5.1.61
            Xampp/Win-XP - Apache v2.2.21(Apache2Handler) - PHP:5.3.8 - MySQL:5.5.16

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...