MyBB Community Forums

Full Version: Closed Forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I think Closed forums still should be open tu admins for post/edit etc. but they are not. Why?
You can use forum permissions for that purpose. The "Closed" and "Active" are simple switches to disable posting from anybody, and hiding forums from everybody without having to mess around with permissions.
(2008-08-13, 07:36 PM)DennisTT Wrote: [ -> ]You can use forum permissions for that purpose.

Use forum permission (instead of Closing it) to close forums from anybody except admins? Or to allow admins to post to Closed forums? please clarify.
The first one.
How to disable posting in closed threads for admins and moderators?
Please make a separate thread instead of bumping 3 years old.

(2011-03-24, 10:44 AM)Thorondor Wrote: [ -> ]How to disable posting in closed threads for admins and moderators?

Open showthread.php file and find;
	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) && $mybb->settings['quickreply'] != 0 && $mybb->user['showquickreply'] != '0' && $forum['open'] != 0)

This'll remove quickreply from showthread pages.

Now to disable Full Reply, open newreply.php and find;
// Check to see if the thread is closed, and if the user is a mod.
if(!is_moderator($fid, "caneditposts"))
{
	if($thread['closed'] == 1)
	{
		error($lang->redirect_threadclosed);
	}
}

and change it to;
// Check to see if the thread is closed.
if($thread['closed'] == 1)
{
	error($lang->redirect_threadclosed);
}

This will deny the reply in Closed threads. Wink