MyBB Community Forums

Full Version: Mods can't see unapproved posts!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I really would like all our mods on our forums to be able to see all unapproved posts. (i.e., being a mod means you can see unapproved posts everywhere). Unfortauntely, right now it only lets you see unapproved posts in a forum if you are assigned as a moderator to that forum.

Is there a way to make it so being in the mod group lets you see all unapproved posts without making every mod a mod of every forum??

Even if it's a change I have to make in the code somewhere it would be greatly appreciated. Thanks!
You're going to have to make some fairly extensive changes to a few of the files (mainly forumdisplay.php and showthread.php).

Basically, to get you on your way, forumdisplay.php..

Find:
// Check if the active user is a moderator and get the inline moderation tools
if(ismod($fid) == "yes")

Above it add:
if($mybb->user['usergroup'] == x)
{
    $visibleonly = " AND (t.visible='1' OR t.visible='0')";
}

Replace 'x' with the ID of the usergroup you wish to be able to see the threads awaiting moderation (ie, the ID of the mods group). Note, normal administrators, super moderators, and the moderators for the forum will still be able to see them.

Chris