vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Cel Forum Leaders - show only primary usergroups on showgroups.php (https://vborg.vbsupport.ru/showthread.php?t=230352)

cellarius 12-16-2009 10:00 PM

Cel Forum Leaders - show only primary usergroups on showgroups.php
 
1 Attachment(s)
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 :D

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)

VonDoom 12-16-2009 10:48 PM

Nice that has always bothered me about the default showgroups page. Tagged

cellarius 12-23-2009 05:22 AM

Changed mod settings to reflect compatibility with vB4 Gold.

dawges 09-20-2010 06:41 AM

Thank you for this. I needed to hide some forum leaders and this worked like a charm on 4.06.

denman75 10-22-2010 07:24 PM

works as a charm on 4.08.

Mdrop 08-14-2011 01:27 PM

Not working for me on 4.1.5PL2, more people with problems?

TinCow1 10-10-2011 11:01 AM

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.

Diana Notacat 02-17-2012 10:04 PM

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?

jluerken 10-06-2012 11:38 AM

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?

MG Zebra 12-17-2012 01:59 AM

It doesn't work for me in 4.2.0 PL2. Please get this fixed. I could really use this.


All times are GMT. The time now is 06:05 PM.

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.01112 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete