vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Send reported post to super mods and admin even if they aren't on the moderator list (https://vborg.vbsupport.ru/showthread.php?t=39806)

GeorgeofCS 06-13-2002 10:14 AM

Send reported post to super mods and admin even if they aren't on the moderator list
 
/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:

PHP Code:

$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:
PHP Code:

$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


All times are GMT. The time now is 12:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01122 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete