Display Threads - Order By Prefix
#1
Someone was looking to sort their thread order by prefix, this tutorial should help you do that.

Open:
Forum Display Templates >> forumdisplay_threadlist

Find:
<td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>

Replace:
<td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']} / <a href="{$sorturl}&amp;sortby=prefix&amp;order=asc">Prefix</a> {$orderarrow['lastpost']}</strong></span></td>

Result:
   
Reply
#2
thank you, how about changing the default order display method?
For example the threads are displayed and ordered by subject by default whenever entering a forum.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)