Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Cel Show Primary Usergroups Only on showgroups.php Details »»
Cel Show Primary Usergroups Only on showgroups.php
Version: 3.8.001, by cellarius cellarius is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 09-09-2009 Last Update: 09-09-2009 Installs: 12
Uses Plugins
Translations  
No support by the author.

This mod will patch showgroups.php to show only users that are in certain primary usergroups. Normally, the page will also show users that have, say, super-moderator as secondary usergroup.

With this mod you can, for instance, have testusers in normally listed usergroups, that will not be displayed on showgroups if you assign them a secondary usergroup only. Or you can give new moderators time incognito to get used to the new functionality before announcing them to the public.

This is a quite simple mod for something I needed on my board - I looked around and found nothing the like, so I'll release it. Maybe someone else will find this useful, too.

This mod can hook in at two different places:

First, to patch the listing of administrators and super moderators, simply install the product file of the mod. If that's all you want, you're done.

Second, if you have activated the listing of forum moderators and you want that patched, too, you'll have to do a very simple file hack - but a file hack nonetheless.
If you want to do this second step, open showgroups.php file and find
Code:
        WHERE moderator.forumid <> -1
Below that line add in a new line
Code:
        $sqlwhere
Note that you have to install the product file, too, for this to work, i.e. step two is not standalone.

Now, in AdminCP->Options you can set the primary usergroups you want to be shown. Default is 5, 6, and 7 - administrators, supermoderators, moderators.

No screenshot - the page looks no different, and there's no way to capture something that's simply not there

This mod will probably work with earlier versions of vB, too. As far as I'm aware the showgroups page has not changed much, so as long as the required hook is there (showgroups_start), it should work. Tested only with 3.8, tho.

Version history:
  • 3.8.001: Initial release


### Don't forget to click install! ###

(No support if you don't)


Download Now

File Type: zip product-cel_filter_showgroups_3-8-001.zip (1.8 KB, 93 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-23-2010, 06:47 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cellarius, any way to make this mod so the secondary usergroups are selectable to be shown in Forum Leaders?
For instance i have a supermod who has two secondary usergroups but i would like to show them as being a member of one of them publicly, is that doable or not within the realms of this mod?
Reply With Quote
  #13  
Old 03-23-2010, 07:04 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, that's not possible with this mod.
Reply With Quote
  #14  
Old 03-23-2010, 07:54 PM
as7apcool as7apcool is offline
 
Join Date: Feb 2009
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great work
Reply With Quote
Reply


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 06:30 PM.


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.03882 seconds
  • Memory Usage 2,249KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete