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

Reply
 
Thread Tools
Cel Forum Leaders - show only primary usergroups on showgroups.php Details »»
Cel Forum Leaders - show only primary usergroups on showgroups.php
Version: 4.0.001, by cellarius cellarius is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 12-16-2009 Last Update: Never Installs: 32
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 no longer 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:
  • 4.0.001: Initial release
### Don't forget to click install! ###
(No support if you don't)

Download Now

File Type: xml product-cel_filter_showgroups_4-0-001.xml (2.2 KB, 153 views)

Show Your Support

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

Comments
  #2  
Old 12-16-2009, 10:48 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice that has always bothered me about the default showgroups page. Tagged
Reply With Quote
  #3  
Old 12-23-2009, 05:22 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Changed mod settings to reflect compatibility with vB4 Gold.
Reply With Quote
  #4  
Old 09-20-2010, 06:41 AM
dawges dawges is offline
 
Join Date: May 2007
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this. I needed to hide some forum leaders and this worked like a charm on 4.06.
Reply With Quote
  #5  
Old 10-22-2010, 07:24 PM
denman75 denman75 is offline
 
Join Date: Aug 2006
Location: Netherlands
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works as a charm on 4.08.
Reply With Quote
  #6  
Old 08-14-2011, 01:27 PM
Mdrop Mdrop is offline
 
Join Date: Mar 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working for me on 4.1.5PL2, more people with problems?
Reply With Quote
  #7  
Old 10-10-2011, 11:01 AM
TinCow1 TinCow1 is offline
 
Join Date: Mar 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, stopped working for me after upgrading from 4.1.4 to 4.1.6

[edit] NM, had to reapply the second step of the install instructions. Works fine for me now.
Reply With Quote
  #8  
Old 02-17-2012, 10:04 PM
Diana Notacat's Avatar
Diana Notacat Diana Notacat is offline
 
Join Date: Dec 2003
Location: Arkansas
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I seem to have a small problem with Super Mods who have Admin as the secondary group. D: Normal members with Admin as a secondary will not show up. But Super Mods still do. (And for obvious reasons, I don't want them to show up under 'Administrators'!)

Is that something fixable?
Reply With Quote
  #9  
Old 10-06-2012, 11:38 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi cellarius,

trying to use your addon on vB 4.2 but it does not work like described for me.
I have a user being Primary Admin and Secondary SMod for internal reasons.
Only Primary Groups should be listed but he is still shown with his Secondary Group also.

Can you please check this?
Reply With Quote
  #10  
Old 12-17-2012, 01:59 AM
MG Zebra MG Zebra is offline
 
Join Date: Sep 2012
Location: So-Cal
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't work for me in 4.2.0 PL2. Please get this fixed. I could really use this.
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 01:21 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.05282 seconds
  • Memory Usage 2,305KB
  • Queries Executed 24 (?)
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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete