PDA

View Full Version : Miscellaneous Hacks - Cel Show Primary Usergroups Only on showgroups.php


cellarius
09-09-2009, 10:00 PM
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
WHERE moderator.forumid <> -1Below that line add in a new line
$sqlwhereNote 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 :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:
3.8.001: Initial release

### Don't forget to click install! ###
(No support if you don't)

cellarius
09-10-2009, 05:23 PM
Reserved.

Sayid
09-11-2009, 09:58 PM
I really need this .
Thanks.

Tettinntil
02-09-2010, 03:38 PM
Installed, but also secondary users are shown....

cellarius
02-09-2010, 05:46 PM
Where?

Tettinntil
02-10-2010, 07:54 PM
On the showgroups.php site.

cellarius
02-10-2010, 08:49 PM
That's clear. Where it shows the forum moderators, or where it shows Admin/Super-Admin/Mods?

Tettinntil
02-11-2010, 04:21 AM
Sorry, I was wrong. The case is that admins and super moderators are also shown as moderators.

cellarius
02-11-2010, 05:10 AM
If those Super-Moderators or Administrators are set to be Moderators in a special forum, they will be shown in the Moderators list. This is standard vB behaviour and has nothing to do with this mod.
See: http://www.vbulletin.com/forum/showgroups.php

Tettinntil
02-11-2010, 07:38 PM
Yes, you are right. Thanks!

Simon Lloyd
03-23-2010, 06:47 PM
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?

cellarius
03-23-2010, 07:04 PM
No, that's not possible with this mod.

as7apcool
03-23-2010, 07:54 PM
great work