Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 2 Months, 4 Days ago Display New Thread button, even if user doesn't have permissions
#1
Solved: 2 Months, 4 Days ago
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.
Reply
#2
Solved: 2 Months, 4 Days ago
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)
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)