MyBB 1.2 Beta: Custom Moderation

Custom Moderator Tools are one of the new sections in the Admin Control Panel in MyBB 1.2. Also known as ‘multi-moderation’, this feature allows you to add ‘tools’ to the standard moderator options that allow you to do many moderator actions at the same time. For example, for our beta boards, we have a tool to mark fixed bug threads with a [F] and move it into the appropriate “Fixed Bugs” forum, and also add a reply stating that the bug was fixed. The tools allow moderators to do many actions in one, saving time and effort.

In the Admin CP, administrators can either add a “Post” tool or a “Thread” tool. As you may be able to guess, the Post tool is shown in the Inline Post Moderation options at the bottom of each thread. The “Thread” tools are shown at the bottom of the Inline Thread Moderation options at the bottom of each forum, and also at the bottom of each thread in the Moderation Options menu. As you can see from the screenshots below, there are many options that you may choose to include for each type of tool.

Custom Moderator Tools - Adding a Post Tool Custom Moderator Tools - Adding a Thread Tool

And the custom tools are displayed in an option-group clearly separated at the bottom of the moderator menus:

Custom Moderator Tools - Forum Display Inline Custom Moderator Tools - Thread Display Inline Custom Moderator Tools - Thread Display Options

And yes this feature was the guess-the-feature in one of my previous blog posts.

It took me a while to convert all the moderator actions into a class first so that the custom moderation tools could easily execute them, but I think the work is worth it in the long run, as we can now mark bug threads and suggestion threads on the Community Boards with ease 🙂 and I’m sure many administrators and moderators out there will find it quite useful on their board as well.

MyBB Development Update: Moderation

I’ve also been working on MyBB recently and I’ve added a significant feature to MyBB 1.2 a few days ago, which I’ll let you people guess what it is. The feature was not requested due to popularity (I don’t think many people had suggested it on the MyBB Community Forums), but within the staff team there were some who supported this feature. I’ll start off with this clue and add more hints later if requested:

A couple of months ago, I converted most of the stuff in moderation.php into a class. This will allow plugins and other features within MyBB to easily call these methods to moderate threads and posts. An example:
[php]require MYBB_ROOT."inc/class_moderation.php";
$moderation = new Moderation;
$moderation->close_threads(array(1, 3, 45));[/php]
Obviously from the description above, this new feature has something to do with the moderation system…