Add filtering by thread prefix in forumdisplay_thread page
#1
Template Edit 
This is a simple tutorial how to add a support for easier filtering of threads by their thread prefix. After this change prefixes will be changed to URL links. When you click to them, threads with the selected prefix will be displayed.

1) In ACP open and edit "forumdisplay_thread" template and find this line of code:
{$thread['threadprefix']}

replace it by this line of code:
<a href="{$mybb->settings['bburl']}/forumdisplay.php?fid={$mybb->input['fid']}&prefix={$thread['prefix']}" style="text-decoration: none !important;">{$thread['threadprefix']}</a>

2) Save and reload (Ctrl+F5) your page to see the result!

3) Click on any thread prefix and check the output  Cool
Reply




Users browsing this thread: 1 Guest(s)