PDA

View Full Version : Moderate ONLY Threads But Not Posts For A Usergroup


edbri871
06-07-2005, 07:35 AM
Is there a way in Forum Permission to moderate ONLY threads but not posts for a Usergroup. I know it can be set moderate only thread and not posts in Forum Manager but that moderates ALL Usergroups other than Admin and Moderators.

The drawback is I cant find a way to allow a certain Usergroup to be able to post a Thread in a specized forum without moderation unless I allow all Usergroups to post Threads without moderationin that forum from Forum Manger. If I then use Forum Permissions to moderate those I dont want posting Threads in this section without moderation then ALL thier posts in addition to their threads are moderated as well which isnt what is wanted and creates a pileup.

Thanks.

Andreas
06-07-2005, 02:45 PM
Turn off all moderation settings for this forum.

In functions_newpost.php
FIND

// ### POST NEW THREAD ###
if ($type == 'thread')
{


BELOW that ADD

if ($foruminfo['forumid'] == X AND is_member_of($bbuserinfo, Y))
{
$post['visible'] = 0;
}


X must be replaced with the forum ID, Y with the usergroup ID for which threads should go into moderation.

Revan
06-07-2005, 02:50 PM
Should be is_member_of not is_member_o ;)

Andreas
06-07-2005, 02:52 PM
Yep, changed. Damn typos ;)

edbri871
06-07-2005, 04:23 PM
Im also wondering if the reverse can be done just allowing certain Usergroups to bypass the default moderation set in Forum Manager. Just curious of course as the the above should work just fine. Thanks much and will try this later today.

oldford
07-20-2006, 04:49 PM
I know this is an old thread, but this is exactly what I'm looking for. But it doesn't seem to work in 3.5 (or I can't figure out where in functions_newpost.php the added code goes)

Anyone have any ideas? Thanks!

DanielMaidment
11-11-2010, 06:17 PM
ive tried finding this code string on my forum php file (functions_newpost.php) and cant find it :/

Thanks for any help given :D

i have attached the php file (as its to olong to post here) i dunno where to put that coding strand

sorry for the massive time between posts and such