PDA

View Full Version : Only want to moderate (approve) new threads


glenv
03-27-2001, 06:03 PM
IS anyone up to figuring out how I can set up my v 2.0 board so I only have to approve the initial thread starting message. Once that is approved, I do not want to have to approve replies. I really need this.

Thanks in advance.

03-27-2001, 10:21 PM
In the forum properties you can add somethin like " New thread agreement by mod. " and the same for new message , you just put it for the new thread ...

03-27-2001, 11:28 PM
Could you be very specific.....I really appreciate your help

03-27-2001, 11:59 PM
In the FOrum part of admin area :

Choose Modify then edit on the forum you want to moderate then :

Put
Moderator Queue
(Require moderator validation before new threads are displayed)

to On.

*cheers*

03-28-2001, 12:19 AM
I understand that but thank you. I am already doing that. What I want to do is leave that but I do not want to moderate / have to approve individual replies. All I want to do is approve the initial starting post of a thread.

03-28-2001, 12:24 AM
If you look for the reference to $visible inside the "INSERT INTO post" query in newreply.php and replace it with "1", it should work.

Sarge
04-17-2001, 10:09 AM
I don't see where to change that at??
look below:

} else {
if ($attachmentid and !$foruminfo[moderateattach]) {
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid = '$threadid'");
}
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmili e,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes(htmls pecialchars($postusername))."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signa ture','$ipaddress','$iconid','$visible')");
$postid=$DB_site->insert_id();

indexpost($postid,0);

if ($visible) {
if ($threadinfo[replycount]%10==0) {
$replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'");
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($bbuserinfo[username])."' WHERE threadid='$threadid'");
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($bbuserin fo[username])."' WHERE threadid='$threadid'");
}
}

Wayne Luke
04-17-2001, 01:53 PM
Actually Ed... I did that and it screws up the posting time and lightbulbs on the forum home page... A better solution is:

In newreply.php find:

$visible=!$foruminfo[moderatenew];


replace with:

// make all replies visible WL 18-Mar-2001
$visible=1;
// End Mod

Sarge
04-17-2001, 04:29 PM
Works like a charm!
Thanks guy!

DaBuzz
05-22-2001, 07:14 PM
Originally posted by wluke
Actually Ed... I did that and it screws up the posting time and lightbulbs on the forum home page... A better solution is:

In newreply.php find:

$visible=!$foruminfo[moderatenew];


replace with:

// make all replies visible WL 18-Mar-2001
$visible=1;
// End Mod
wluke,

Do you know if a similar hack would work to make all unregistered posts invisible (i.e. sent to the moderation queue) while registered posters messages are set to visible=1?

Wayne Luke
05-22-2001, 07:21 PM
You would have to check the variable $bbuserinfo[userid].


if ($bbuserinfo[userid]) {
$visible=1;
} else {
$visible=0;
}

DaBuzz
05-22-2001, 07:33 PM
Thanks for the quick reply wluke.

I was looking at this peice of code and thought I could do the same type of thing with it: // auto bypass queueing for admins/mods
if (ismoderator($foruminfo[forumid])) {
$visible=1;
} Instead of the "ismoderator" I need the system to check for "isregistered" if that's even valid. This way I could turn moderation *on* in every forum and have it only apply to unregistered users.