View Full Version : Thread Time Variables
ShadowTech
12 Jul 2001, 00:05
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.
I'd like to know this too.
In forumdisplay.php add this code:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
right before
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Now you should be able to use $thread[startdate] and $thread[starttime] in the templates.
There are two instances of the code you said to find. Add before both instances?
Nevermind, I added it before both instances and it works great
Thanks :)
Sorry about that. :o One is for the open threads, and the second is for the closed.
Originally posted by FireFly
In forumdisplay.php add this code:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
right before
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Now you should be able to use $thread[startdate] and $thread[starttime] in the templates.
Could you show me which template and where to place the code?
In the forumdisplaybit template, or any of the templates used inside it.
ShadowTech
20 Mar 2002, 10:37
hate to bring this back up.. but this doesn't appear to work on 2.2.4 .. what would need changed in order for it to work on the new build?
Muellmann
19 Aug 2006, 14:26
I tried all but cannot make it. I have 3.60. I found in the forumdisplay.php not this code mentioned above. Maybe any other File is needed to be edited with 3.60? Any Help would be much appreciated!
First, jo must creat a new "Plugin"
Plugin Attitudes:
Produkt - vBulletin
(Hook) - threadbit_process
Titel - your choise
PHP-Code:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Than save the Plugin.
Now search in template "threadbit":
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Below add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
GreeTz
Snatch
chetcarson
30 Aug 2006, 16:26
Snatch thats great.
Big Thanks!
Using 3.6.0
I added the plugin as you indicated, however in the threadbit template I found this code already exists:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Adding $thread[creationdate] and $thread[creationtime] after the closing span is all that was needed there.
It looks like this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.