Log in

View Full Version : How to Display Threads Start Dates ?


McMendo
05-16-2008, 02:29 PM
How do I display the date when threads started, on forum view and searches?

calorie
05-16-2008, 03:32 PM
Add a plugin and edit a template as follows...

threadbit_process hook:

$thread['threadbit_start_date'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], true);
$thread['threadbit_start_time'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);

threadbit template:

<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
</if>
<if condition="$thread[threadbit_start_date]">
($vbphrase[start_date]: $thread[threadbit_start_date]<if condition="$thread[threadbit_start_time] AND !$show[detailedtime]"> <span class="time">$thread[threadbit_start_time]</span></if>)
</if>

McMendo
05-16-2008, 04:24 PM
I found this plugin (for 3.6.x)

https://vborg.vbsupport.ru/showthread.php?t=136551