MyBB Community Forums

Full Version: Prefixselect in the selected forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I don't know how could I add {$prefixselect} in the selected forum (only where is prefix used or selected fid)
Now I have prefixselect on every forum, but this is superfluous when i dont have any prefix in other forum.

[Image: 9941dde9a6d742f4a38b831591ac335c.png]
Open forumdisplay.php and search for

$prefixselect = build_forum_prefix_select($fid, $tprefix);

change to

$dbresult = $db->query("SELECT *
		FROM ".TABLE_PREFIX."threadprefixes
	$row = $db->num_rows($dbresult);
		$prefixselect = build_forum_prefix_select($fid, $tprefix);