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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2001, 05:29 PM
Me2Be's Avatar
Me2Be Me2Be is offline
 
Join Date: Oct 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone help me with this? I'd really like to be able to have a link where someone would click and it would list all of those in the supermoderator admin group with the following info in a table:

Username Location PM (link to send pm)

How can this be done?
Reply With Quote
  #2  
Old 03-08-2001, 05:42 PM
Guest
 
Posts: n/a
Default

Give me a little while to finish the documentation for the new version of my vBcode buttons and I'll write this for you in a jiffy
Reply With Quote
  #3  
Old 03-08-2001, 05:51 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Kier
Give me a little while to finish the documentation for the new version of my vBcode buttons and I'll write this for you in a jiffy
Thanks
Reply With Quote
  #4  
Old 03-08-2001, 08:27 PM
Guest
 
Posts: n/a
Default

I hope this is what you wanted...



If you link to the attached PHP file, the page will display a list of all your super-moderators, together with a link to their profile and PM, and a display of their location.

I included the forum-jump just because...

To install, just copy the getsmods.php file to your forums directory, and create three custom templates using the .htm files in the attached zip.
Attached Files
File Type: zip supermods.zip (1.7 KB, 77 views)
Reply With Quote
  #5  
Old 03-08-2001, 08:50 PM
Guest
 
Posts: n/a
Default

Thank you! Works perfectly
Reply With Quote
  #6  
Old 03-09-2001, 11:09 AM
Guest
 
Posts: n/a
Default

Kier strikes again
Reply With Quote
  #7  
Old 03-09-2001, 09:35 PM
Guest
 
Posts: n/a
Default

Another great hack! Thanks

I also added the user's online status to this as well... for those interested:

edit file getsmods.php

Change the main query to read:
Code:
$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 )
        ORDER BY user.username");
Find:
Code:
        if ($user[field2] == "") $user[location] = "&nbsp;";
        else $user[location] = $user[field2];
And add AFTER:
Code:
        if ($showonline) {
               unset($onlinestatus);
               if ($user[sessionuserid]>0) {
                  eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";");
               } else {
                  eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
               }
            }
Template Change supermodsbit
Add
Code:
$onlinestatus
Reply With Quote
  #8  
Old 03-09-2001, 09:45 PM
Guest
 
Posts: n/a
Default

Thanks Kier & Chris - this is just perfect!!!
Reply With Quote
  #9  
Old 03-09-2001, 09:50 PM
Guest
 
Posts: n/a
Default

Yep.. Works great.
Reply With Quote
  #10  
Old 03-10-2001, 08:46 PM
Guest
 
Posts: n/a
Default

don't forget to add postbit_offline and postbit_online to the list of $templatesused, or the page will use an extra two queries...
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 04:56 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.04439 seconds
  • Memory Usage 2,242KB
  • Queries Executed 12 (?)
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
  • (4)bbcode_code
  • (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
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (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_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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete