Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 685

Add filtering by thread prefix in forumdisplay_thread

$
0
0
This is a simple tutorial how to add a support for easier filtering of threads by their thread prefixes. After this change prefixes will be changed to links. When you click to them, threads with the selected prefix will be displayed.

1) In ACP open and edit "forumdisplay_thread" template

2) Find and select this code:
PHP Code:
{$thread['threadprefix']} 

3) Replace the code above by this one:
PHP Code:
<a href="{$mybb->settings['bburl']}/forumdisplay.php?fid={$mybb->input['fid']}&prefix={$thread['prefix']}style="text-decoration: none !important;">{$thread['threadprefix']}</a

4) Save and reload your page (Ctrl+F5)
5) Click on any thread prefix and check the output Smile

Viewing all articles
Browse latest Browse all 685

Trending Articles