PDA

View Full Version : thread start date in thread index


rasun
09-04-2006, 06:59 PM
Hi,

Is it possible to add the thread start date beside the thread starter on index site? (please take a look on attached image)

Anyone can help?

calorie
09-04-2006, 07:11 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>

rasun
09-04-2006, 08:31 PM
What do I have to choose for Execution Order ? Is 5 ok?

Sorry but never have done this before^^

calorie
09-04-2006, 10:19 PM
5 is okay :)

rasun
09-05-2006, 08:43 AM
Thank you , it`s peferct :)

Oro
09-05-2006, 09:16 PM
hi, i've just installed this mod too.. it works good and my users really asked for something like this.. i'd like to "click install" ;)

snowlion
09-06-2006, 03:33 AM
thank calorie , it useful

PIKenPIK
10-06-2006, 09:02 PM
TY very useful and for a long time wanted **cheers**

Evil X
10-07-2006, 04:03 AM
can you make a download of the plugin?

zylstra
02-22-2007, 07:36 AM
Here's the product. I believe the first one is for 3.6 and the second one is for 3.5.