The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
On Showthread?thread start time?
I am looking to call thread start time and last post time from the showthread page.
Actually, I want to put them into: HTML Code:
<meta property="article:published_time" content="2013-09-17T05:59:00+01:00" /> <meta property="article:modified_time" content="2013-09-16T19:08:47+01:00" /> |
#2
|
|||
|
|||
They are available as $thread[dateline] and $thread[lastpost], but they are unix timestamp format, so you'd need a plugin to format them like you want them. I think you could use a plugin using hook showthread_complete and code like this:
Code:
$published_time = date(DATE_ATOM, $thread[dateline]); $modified_time = date(DATE_ATOM, $thread[lastpost]); |
#3
|
|||
|
|||
Thanks, kevin. That does the trick!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|