MyBB Group

Full Version: Add filtering by thread prefix in forumdisplay_thread page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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