vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   A Change with moderating forums (https://vborg.vbsupport.ru/showthread.php?t=57559)

MGM 10-02-2003 10:37 PM

A Change with moderating forums
 
I have something on my forums called "Buy a Forum" in which any user can buy and mod a forum for a certain amount of points. However, whenever I make them mod of that forum, they show up as Moderators in the Forum Leaders page and bold (as in a part of the staff) in the Who's Online page. Is there anyway to prevent that? I already tried making a seperate user group, and it works somewhat because the User Mods show up in the Forum Leaders page under that group, but they also show up as moderators.

Can anyone help me find a way for the User Mods to NOT show up as moderators in the Forum Leaders page and Who's Online??

MGM out

Gary King 10-03-2003 10:03 PM

You can use one of my hacks to stop them from showing up in the forum leaders page.

Gary King 10-03-2003 10:08 PM

For who's online, open index.php, and find the two instances of
PHP Code:

      } else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) { 

Replace both with
PHP Code:

      } else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin and $loggedin['usergroupid'] != XX) { 

Replace XX with the usergroupid of the usergroup.

MGM 10-03-2003 11:36 PM

kind of a problem with your second code:

PHP Code:

    } else if (($mod["$userid"] || ($loggedin['usergroupid']==|| $loggedin['usergroupid']==7)) && $highlightadmin) {
          
$username "<b>$loggedin[username]</b>"

where exactly would i put != 7 :P

(btw, 7 = mod group)

can i just put:

PHP Code:

if (usergroupid == 12);
$userid $loggedin['userid']; 

usergroup 12 = my User Mods

EDIT:

well, i think i got it working for Who's Online! however, I was wondering if u could help me add this to the "Number of Online Users Today" hack?

Here's the code I have:

PHP Code:

      if ($loggedin['usergroupid'] == and $highlightadmin) {
          
$username "<b><i>$loggedin[username]</i></b>";
    eval(
"\$su_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
    } else if (((
$mod["$userid"] || ($loggedin['usergroupid']==|| $loggedin['usergroupid']==7)) && $highlightadmin) && $loggedin['usergroupid'] != 12) {
          
$username "<b>$loggedin[username]</b>";
    eval(
"\$su_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
      } else {
                
$username $loggedin['username'];
    eval(
"\$nu_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
            }
      
    }

    while (
$loggedin=$DB_site->fetch_array($loggedins)) {
      
$numberregistered++;
      
$invisibleuser '';
      if (
$loggedin['invisible']==and $bbuserinfo['usergroupid']!=and $getperms['canseeinvisible']!=1) {
        continue;
      }
      
$numbervisible++;
      
$userid=$loggedin['userid'];
      if (
$loggedin['invisible'] == 1) { // Invisible User but show to Admin
        
$invisibleuser '*';
      }
      if (
$loggedin['usergroupid'] == and $highlightadmin) {
        
$username "<b><i>$loggedin[username]</i></b>";
    eval(
"\$su_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
    } else if (((
$mod["$userid"] || ($loggedin['usergroupid']==|| $loggedin['usergroupid']==7)) && $highlightadmin) && $loggedin['usergroupid'] != 12) {
                
$username "<b>$loggedin[username]</b>";
    eval(
"\$su_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
            } else {
                
$username $loggedin['username'];
    eval(
"\$nu_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
            }

    } 

where would i add it so that User Mods don't show up as bolded??

thanks for your help so far!

MGM out

Gary King 10-04-2003 01:01 AM

Just modify this line:

PHP Code:

    } else if (($mod["$userid"] or $todayuser['usergroupid'] == 5) and $highlightadmin and $todayuser['usergroupid'] != XX) { 

Don't forget to replace XX.

MGM 10-04-2003 02:34 PM

wait, where exactly do i place that???

MGM out

Gary King 10-04-2003 02:53 PM

Replace this:

PHP Code:

     } else if (($mod["$userid"] or $todayuser['usergroupid'] == 5) and $highlightadmin) { 


MGM 10-04-2003 07:40 PM

nevermind! it works now after i modded the crap outta it! thanks!!!

MGM out

Gary King 10-04-2003 08:37 PM

np :)


All times are GMT. The time now is 07:36 AM.

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.01179 seconds
  • Memory Usage 1,761KB
  • 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
  • (7)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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