Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 03-11-2001, 02:44 AM
Guest
 
Posts: n/a
Default

Ahh thanks for the tip, I completely forgot about that....
Reply With Quote
  #12  
Old 03-11-2001, 01:39 PM
Guest
 
Posts: n/a
Default

Great AddOn!!! Thx a lot.

I am working on this to fit it my needs and got some ideas, but want to ask anyway, howto list the forums the moderators a moderators of? Any help for this one?

Thanks
Reply With Quote
  #13  
Old 03-11-2001, 02:47 PM
Guest
 
Posts: n/a
Default

I tried this, just to bring the forumids up, but it adds the forumids from the frist to the second mod, and so on....didn't work....anyhelp??

This is what I put into the while () {}
PHP Code:
$moderators $DB_site->query("
    SELECT * FROM moderator WHERE userid=
$user[userid]");    
    while (
$moderator $DB_site->fetch_array($moderators))
        {
        eval(
"\$supermodsforums .= \"".gettemplate("supermodsforums")."\";");
        } 
The template only contains:
PHP Code:
$moderator[forumid]<br
Reply With Quote
  #14  
Old 03-11-2001, 03:16 PM
Guest
 
Posts: n/a
Default

The problem with this is "Super Moderators" are not normally assigned to a forum but have free-reign over the entire forum setting.
Reply With Quote
  #15  
Old 03-11-2001, 03:49 PM
Guest
 
Posts: n/a
Default

As I said, I change a lot to fit it my needs. I got this for the getsmods.php and some more templates: It show Admingroup and Moderatorgroup. Now I want to check if the userid is in the moderator table and get the forumids from it to show the forum name.
PHP Code:
<?php

$super_moderators_group_id 
35;
$admin_group_id 6;

$templatesused="supermods,supermodsbits,$supermodspm,supermodsicq,supermodsaim,supermodsemail,supermodshp,postbit_offline,postbit_online";
require(
'./global.php4');

$users $DB_site->query("
        SELECT DISTINCT
        session.userid AS sessionuserid,
        user.*, userfield.* FROM user
        LEFT JOIN userfield ON (userfield.userid = user.userid)
        LEFT JOIN session   ON (session.userid = user.userid
                                            AND session.userid <> 0
                                            AND user.invisible = 0
                                            AND session.lastactivity>0)
        WHERE  ( user.usergroupid=
$super_moderators_group_id ) or ( user.usergroupid=$admin_group_id )
        ORDER BY user.usergroupid,user.username"
);

    
while (
$user $DB_site->fetch_array($users))
    {
    if ((
$count++ % 2) == 0$backcolor "{secondaltcolor}";
    else 
$backcolor "{firstaltcolor}";
        
    if (
$user[field2] == ""$user[location] = "&nbsp;";
    else 
$user[location] = $user[field2];
    
        if (
$showonline) {
               unset(
$onlinestatus);
               if (
$user[sessionuserid]>0) {
                  eval(
"\$onlinestatus = \"".gettemplate("postbit_online")."\";");
               } else {
                  eval(
"\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
               }
            }
        
    if (
$user[receivepm] == 0$sendpmlink "&nbsp;";
    else eval(
"\$sendpmlink = \"".gettemplate("supermodspm")."\";");

    if (
$user[icq] == ""$sendicqlink "&nbsp;";
    else eval(
"\$sendicqlink = \"".gettemplate("supermodsicq")."\";");
    
    if (
$user[aim] == ""$sendaimlink "&nbsp;";
    else eval(
"\$sendaimlink = \"".gettemplate("supermodsaim")."\";");
    
    if (
$user[homepage] == ""$sendhplink "&nbsp;";
    else eval(
"\$sendhplink = \"".gettemplate("supermodshp")."\";");
    
    eval(
"\$supermodsbits .= \"".gettemplate("supermodsbits")."\";");
    
    
    
    
        
    }

makeforumjump();
    
eval(
"dooutput(\"".gettemplate("supermods")."\");");

?>
Reply With Quote
  #16  
Old 03-11-2001, 09:01 PM
Guest
 
Posts: n/a
Default

Anyone who can help or working on it? I need it.....hm.....going to sleep and see whats going to be in a few hours (sometimes I wish I live in a US time zone......)
Reply With Quote
  #17  
Old 03-13-2001, 01:50 PM
Guest
 
Posts: n/a
Default

How can I change this to just list moderators?
Instead of supermods?
Reply With Quote
  #18  
Old 03-13-2001, 05:32 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Sarge
How can I change this to just list moderators?
Instead of supermods?
I don't know -- this goes by usergroup ids and all of my moderators are super moderators.
Reply With Quote
  #19  
Old 03-13-2001, 05:37 PM
Guest
 
Posts: n/a
Default

Theres a groupid part, you just change the number.
Reply With Quote
  #20  
Old 03-13-2001, 05:45 PM
Guest
 
Posts: n/a
Default

what is the group id for mods?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05176 seconds
  • Memory Usage 2,266KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete