PDA

View Full Version : Send reported post to super mods and admin even if they aren't on the moderator list


GeorgeofCS
06-13-2002, 10:14 AM
/me wonders if Firefly will end up answer this one too.

I'm looking for a hack that will allow the super moderators and the admins to recieve reported posted regardless of whether they are in the moderator list or not.

The reason really is cause I've only got a few moderators and they're really just super mods in training, and at times the reported posts can be high on my boards. But I'd hate to add the supermods and admins to every forums mod list.

Can anyone be nice enough to create a super mod and admin get the notice regardless hack?

Xenon
06-13-2002, 11:00 AM
hope this would work:
go to report.php
find this lines:


$foruminfo=getforuminfo($thread['forumid']);
$moderators=$DB_site->query("SELECT DISTINCT user.email FROM moderator,user WHERE user.userid=moderator.userid AND moderator.forumid IN ($foruminfo[parentlist])");

$thread[title]=unhtmlspecialchars($thread[title]);

if ($DB_site->num_rows($moderators)==0) {
// get admins if no mods
$moderators=$DB_site->query("SELECT user.email FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND (usergroup.cancontrolpanel=1 OR usergroup.ismoderator=1)");
}

and replace with this:

$foruminfo=getforuminfo($thread['forumid']);
$moderators=$DB_site->query("SELECT DISTINCT user.email FROM moderator,user,usergroup WHERE (user.userid=moderator.userid AND moderator.forumid IN ($foruminfo[parentlist])) OR (user.usergroupid=usergroup.usergroupid AND (usergroup.cancontrolpanel=1 OR usergroup.ismoderator=1))");

$thread[title]=unhtmlspecialchars($thread[title]);

GeorgeofCS
06-13-2002, 11:15 PM
worked great thanks :)

ScripToR
09-30-2002, 04:55 AM
I am having problems integrating this into vb v.2.2.8.

Is there some updating that needs to take place?

Xenon
09-30-2002, 09:57 AM
no the codelines are the same in vb2.2.8
you should be able to use the code.

Sidewindr
11-11-2002, 09:24 PM
hrm didn't seem to work for me :( I am using 2.2.8 as well