![]() |
Post create date in showthread
How can i show post create date in showthread template?
$post[postdate] is not work :/ Work for only postbit or postbit_legacy I have a schema code; HTML Code:
<script type="application/ld+json"> |
1 Attachment(s)
Which postdate do you want to show?
If it's the first you can create a plugin to do it. Hook location:Showthread_complete Title:thread start date Code Code:
$thread[startdate] = vbdate("Y-m-d", $thread["dateline"]); $thread[startdate] (or {vb:raw thread.startdate} for vb4) will then be available in showthread. Schema also accepts datetime format so you could use Y-m-dTH:i:sP in the plugin instead of Y-m-d for greater accuracy. Attachment 157670 |
After a little more playing, this will give you first and last post dates (you can use last for date modified)
Code:
$thread[startdate] = vbdate("Y-m-dTH:i:sP", $thread["dateline"]); |
Quote:
|
All times are GMT. The time now is 08:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|