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

[Tutorial] How to add a 'Hot' prefix

$
0
0
Specifically for those who want to do away with thread icons like myself.

Open up your forumdisplay.php and look for the following code:

Code:
if($thread['replies'] >= $mybb->settings['hottopic'] || $thread['views'] >= $mybb->settings['hottopicviews'])
        {
            $folder .= "hot";
            $folder_label .= $lang->icon_hot;

Add under:

Code:
$prefix = $lang->hot_prefix;

Now go to /inc/languages/english/global.lang.php and look for

Code:
$l['poll_prefix'] = "Poll:"

Under it, add:

Code:
$l['hot_prefix'] = "Hot"

Finally, go to AdminCP -> Configuration -> Edit English (American) Language variable, edit global.lang.php, find "hot_prefix" and style however you wish. Wink

Viewing all articles
Browse latest Browse all 690

Trending Articles