Lynne
11-29-2009, 10:00 PM
This just allows users to sort by First Post Date via a new clickable link in the table head next to Thread Starter.
Version History:
1.0 2009-11-30: initial release by Lynne at vbulletin.org
To install:
1. Import product-lynne_sort_dateline.xml
2. If you are using Andreas' Template Modification System, then the template edits to the FORUMDISPLAY template should import and install when you install this product. If you aren't using TMS, then you will have to make the template modification yourself via the following instructions.
Open the FORUMDISPLAY template and find the following line:
<a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a>Add below:
/ <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_dateline}}" rel="nofollow">{vb:rawphrase first_post_date}{vb:raw sortarrow.dateline}</a></span>
This is an image of what you will end up with. However, currently the code to show the first post date is not in the forumdisplay.php page. It's supposed to be there (hover over the Posted by xxxx under the title), so hopefully it shows up soon.
https://vborg.vbsupport.ru/attachment.php?attachmentid=106964&stc=1&d=1259608181
To uninstall:
1. Uninstall "Forumdisplay - Sort by First Post Date"
2. If you had to do the template edit above manually, then you will need to undo it.
Until they fix the issue with the first post date not showing on hover, you can add a plugin using the threadbit_display hook location with the following code:
$thread['fdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']);
$thread['ftime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
$thread['postdate'] = $thread['fdate'] .' '. $thread['ftime'];
Version History:
1.0 2009-11-30: initial release by Lynne at vbulletin.org
To install:
1. Import product-lynne_sort_dateline.xml
2. If you are using Andreas' Template Modification System, then the template edits to the FORUMDISPLAY template should import and install when you install this product. If you aren't using TMS, then you will have to make the template modification yourself via the following instructions.
Open the FORUMDISPLAY template and find the following line:
<a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a>Add below:
/ <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_dateline}}" rel="nofollow">{vb:rawphrase first_post_date}{vb:raw sortarrow.dateline}</a></span>
This is an image of what you will end up with. However, currently the code to show the first post date is not in the forumdisplay.php page. It's supposed to be there (hover over the Posted by xxxx under the title), so hopefully it shows up soon.
https://vborg.vbsupport.ru/attachment.php?attachmentid=106964&stc=1&d=1259608181
To uninstall:
1. Uninstall "Forumdisplay - Sort by First Post Date"
2. If you had to do the template edit above manually, then you will need to undo it.
Until they fix the issue with the first post date not showing on hover, you can add a plugin using the threadbit_display hook location with the following code:
$thread['fdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']);
$thread['ftime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
$thread['postdate'] = $thread['fdate'] .' '. $thread['ftime'];