MyBB Hacks

Full Version: Moderated Threads And / Or Posts Announcements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This will add an "announcements" to users if they threads or posts will be moderated in a forum. If we use the Moderated Usergroup(s) plugin, the announcements will be also displayed for those usergroups.

If we only want for creating a new thread:
forumdisplay template, after the {$header} variable:

Code:
<if ($foruminfo['modthreads'] == 1 && !is_moderator($fid)) || $mybb->user['moderateposts'] == 1 then>
	<div class="error" style="text-align: center;">Your Threads Will Be Moderated In This Forum</div>
</if>

[attachment=569]

And / or, if we want it for replying a thread/post:
showthread template, after the {$header} variable:

Code:
<if ($forum['modposts'] == 1 && !is_moderator($fid)) || $mybb->user['moderateposts'] == 1 then>
	<div class="error" style="text-align: center;">Your Posts Will Be Moderated In This Forum</div>
</if>

[attachment=570]

Please tell me if there is something wrong with the code above. I'm still learning Biggrin

I think this is really useful for forums where moderation is required.  MyBB's message when your thread is moderated really doesn't stand out enough IMO.
Thanks for the tip!
Good,
Simple and efficient
Thanks!
This should be available by default, in mybb core. Not every time there is a moderator to check new moderated threads.

Thanks RateU
Thanks Smile
nice job rateu.  I agree with aglioeolio that this should be in the mybb core download.  maybe add it as a suggestion?
Thanks RateU for this simple yet helpful modification Biggrin
Reference URL's