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
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Moderated Threads And / Or Posts Announcements
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!

My Blog
08-05-2011 08:39 AM
Find all posts by this user Quote this message in a reply
welone Offline
Junior Member
**
Posts: 2
Joined: Jun 2010
Post: #3
RE: Moderated Threads And / Or Posts Announcements
Good,
Simple and efficient
Thanks!
08-05-2011 08:41 PM
Find all posts by this user Quote this message in a reply
AglioEoliO Offline
Junior Member
**
Posts: 39
Joined: Jan 2008
Post: #4
RE: Moderated Threads And / Or Posts Announcements
This should be available by default, in mybb core. Not every time there is a moderator to check new moderated threads.

Thanks RateU
08-06-2011 03:53 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #5
RE: Moderated Threads And / Or Posts Announcements
Thanks Smile

08-06-2011 05:52 AM
Find all posts by this user Quote this message in a reply
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #6
RE: Moderated Threads And / Or Posts Announcements
nice job rateu.  I agree with aglioeolio that this should be in the mybb core download.  maybe add it as a suggestion?
08-06-2011 06:01 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #7
RE: Moderated Threads And / Or Posts Announcements
Thanks RateU for this simple yet helpful modification Biggrin

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
08-06-2011 06:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: