MyBB Community Forums

Full Version: Display New Thread button, even if user doesn't have permissions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So i guess this is a core edit right? So i want users to view New thread button even when they don't have permissions to post a new thread.
forumdisplay.php search for:
if($foruminfo['type'] == "f" && $foruminfo['open'] != 0 && $fpermissions['canpostthreads'] != 0 && $mybb->user['suspendposting'] == 0)
{
 eval("\$newthread = \"".$templates->get("forumdisplay_newthread")."\";");
}

Remove from the condition what type of "limit" you want to take off.

$foruminfo['type'] = type of the forum (f = forum, c = category), don't remove it
$foruminfo['open'] = Forum is Open? access option in forum settings
$fpermissions['canpostthreads'] = custom permission "post threads" for a specific group in forum settings
$mybb->user['suspendposting'] = when an user is suspended from posting in the forum (mod cp)