vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Show admin groups (https://vborg.vbsupport.ru/showthread.php?t=11425)

Joshs 04-28-2001 06:45 PM

First, is there any way to add email under the pm button? Secondly the Location field is messed up if a user doesn't have a Location... Shouldnt there be a divider between it and the contact info (make a name for that last field)...??? Lastly, shoulnt there also be a divider between online and username? And call the first field online? Just thought it would be better that way! Thanks!

Blue2000 04-29-2001 11:32 PM

this is a nice hack mate, but i have a problem with it

once you have made somone a mod and then removed there mod and set the permission back to a standed account, they still show on the list.

It maybe just me but as anyone else had this ?

Joshs 04-29-2001 11:48 PM

Quote:

Originally posted by Joshs
First, is there any way to add email under the pm button? Secondly the Location field is messed up if a user doesn't have a Location... Shouldnt there be a divider between it and the contact info (make a name for that last field)...??? Lastly, shoulnt there also be a divider between online and username? And call the first field online? Just thought it would be better that way! Thanks!
Yeah, is there a fix for that...??? Also can someone take a look at my above post.

ztsky 05-04-2001 02:33 AM

Quote:

Originally posted by ztsky
\--------------------------------------------------------------------------------
Originally posted by Zothip
Parse error: parse error in /home/zothip2/squadpage-www/forums/showmods.php on line 30


--------------------------------------------------------------------------------



same problem

help!!

help!!!!!!
can Anyone help me ?

Martz 05-07-2001 10:12 AM

Works great! Thanks a lot. I'd like to change part of it slightly, instead of Super Moderators I would like to list all the members in another usergroup.

I've managed to do this, I looked up the usergroup ID of the group I want to display, and used it in place of Super Moderators. However I still get the supermoderators header title for the table . I've read through the code and concluded that it must be bringing the title through in a global variable? (please note my inability to unerstand php - but my ability to learn? :))

I'd also like to be able to show multiple user_id's in where the supermoderators list is - could anyone point me in the right direction please? :)

Thanks

ztsky 05-07-2001 04:02 PM

Quote:

Originally posted by ztsky


help!!!!!!
can Anyone help me ?


....................can Anyone help me ?

Mohamed 05-08-2001 11:16 AM

hi boys I have in this hack in :

Warning: Variable passed to each() is not an array or object


vb/showmods.php on line 110


can any one help me ....!!!!!!! :confused: :(

Martz 05-08-2001 03:55 PM

Quote:

Originally posted by Martz
Works great! Thanks a lot. I'd like to change part of it slightly, instead of Super Moderators I would like to list all the members in another usergroup.

I'd also like to be able to show multiple user_id's in where the supermoderators list is - could anyone point me in the right direction please? :)

Sorry I can't answer any of the other guys questions, but I found a "solution" to my own problems, so I thought I may as well be able to share them. Anything which I say which is *obvious* please don't flame me for, I'm just starting out as I am sure many other people may be. :)

The install script included has all the data regarding layout, table title (usergroup titles) etc. This can be edited to change the names, however I wans't sure of the routine to actually grab this using the userid from the mySQL table.

Secondly, including other groups in the listings can be done by editing the showmods source as follows:

At the top where the usergroups are defined, such as:

Code:

$supermod_usergroup = 5;
add as many new groups as you want, or change the current group value
Code:

$myother_usergroup = 10;
$alsomyother_usergroup = 9;

Next find the "// get administrators & super moderators *************************" section of code.

where:
Code:

WHERE user.usergroupid IN($admin_usergroup,$supermod_usergroup)
change to:
Code:

WHERE user.usergroupid IN($admin_usergroup,$supermod_usergroup,$myother_usergroup,$alsomyother_usergroup)
Next, further down find:
Code:

while ($user = $DB_site->fetch_array($users)) {
        if ($user[usergroupid] == $admin_usergroup) {
                if (($admincount++ % 2) == 0) $backcolor = "#EFEFEF";
                else $backcolor = "#DEDEDE";
                douserinfo();
                eval("\$adminbits .= \"".gettemplate("showmods_adminbit")."\";");
        }
        else {
                if (($smodcount++ % 2) == 0) $backcolor = "#EFEFEF";
                else $backcolor = "#DEDEDE";
                douserinfo();
                eval("\$supermodbits .= \"".gettemplate("showmods_adminbit")."\";");
        }
}

and change to:

Code:

while ($user = $DB_site->fetch_array($users)) {
        if ($user[usergroupid] == $admin_usergroup) {
                if (($admincount++ % 2) == 0) $backcolor = "#EFEFEF";
                else $backcolor = "#DEDEDE";
                douserinfo();
                eval("\$adminbits .= \"".gettemplate("showmods_adminbit")."\";");
        }
        else if ($user[usergroupid] == $myother_usergroup) {
                if (($smodcount++ % 2) == 0) $backcolor = "#EFEFEF";
                else $backcolor = "#DEDEDE";
                douserinfo();
                eval("\$supermodbits .= \"".gettemplate("showmods_adminbit")."\";");
        }
        else if ($user[usergroupid] == $alsomyother_usergroup) {
                if (($smodcount++ % 2) == 0) $backcolor = "#EFEFEF";
                else $backcolor = "#DEDEDE";
                douserinfo();
                eval("\$supermodbits .= \"".gettemplate("showmods_adminbit")."\";");
        }
        else {
                if (($smodcount++ % 2) == 0) $backcolor = "#EFEFEF";
                else $backcolor = "#DEDEDE";
                douserinfo();
                eval("\$supermodbits .= \"".gettemplate("showmods_adminbit")."\";");
        }

}

It works for me anyway! Hope this is of some help to someone, and not completely lame :)

Mohamed 05-10-2001 05:24 PM

no body can't help me

so bad
:(

maverick1236 05-11-2001 02:03 AM

sorry-im a newbie
everythings in the right place-but how EXACTLY do i link to that php file?


All times are GMT. The time now is 10:48 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.01144 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete