Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Moderated Threads And / Or Posts Announcements
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Moderated Threads And / Or Posts Announcements
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>

   

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>

   

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


08-05-2011 06:51 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Moderated Threads And / Or Posts Announcements - RateU - 08-05-2011 06:51 AM

 Standard Tools
Forum Jump: