2011-01-19, 09:50 AM
You may noticed that if you lock a thread, only admins and mods are able to post in those threads. All other usergroups will receive an error while creating a post through quick replies / new replies. If you want to allow selective usergroups to post in those locked threads, then here is how
Open ./showthread.php and find; (around line # 1025)
save the file.
Now open ./newreply.php and find; (around line # 161)
and change it to;
save the file.
Now change the number 2,4,8 to your desired usergroup IDs you wish to show and allow them to post quick replies / new replies even if the thread is locked
Open ./showthread.php and find; (around line # 1025)
if($forumpermissions['canpostreplys'] != 0 && $mybb->user['suspendposting'] != 1 && ($thread['closed'] != 1 || is_moderator($fid)) && $mybb->settings['quickreply'] != 0 && $mybb->user['showquickreply'] != '0' && $forum['open'] != 0)
and change it to;if($forumpermissions['canpostreplys'] != 0 && $mybb->user['suspendposting'] != 1 && ($thread['closed'] != 1 || is_moderator($fid)) && $mybb->settings['quickreply'] != 0 && $mybb->user['showquickreply'] != '0' && $forum['open'] != 0 || in_array($mybb->user['usergroup'], array(2,4,8)))
save the file.
Now open ./newreply.php and find; (around line # 161)
if($thread['closed'] == 1)
and change it to;
if($thread['closed'] == 1 && !in_array($mybb->user['usergroup'], array(2,4,8)))
save the file.
Now change the number 2,4,8 to your desired usergroup IDs you wish to show and allow them to post quick replies / new replies even if the thread is locked