Back to vBulletin 3.8 Add-ons

UGL - Usergroup Legend (vBA Support Included)
Mod Version: 3.8.01, by Trek

vB Version: 3.8.0 Rating: (4 votes - 5.00 average) Installs: 65
Released: 11 Jan 2009 Last Update: Never Downloads: 538
Not Supported Uses Plugins Template Edits Additional Files Re-usable Code Translations  

What it does:

This plugin displays the user group color legend at the bottom of the forums index and/or in the Users Online box for those with vBAdvanced installed. Basically, this will work for people with vBAvanced as well as those without it.

This is my first vB mod and I wrote it only after a few hours of looking into how to make a plugin, so please... be nice in your comments.

How to install:

Admin CP -> Plugins & Products -> Manage Products -> Add/Import Product

Select the XML File

Import the file

IF YOU ARE USING vBA, then follow the next set of installation instructions (upload the file, make the module edit)

This mod requires a hook that doesn't exist in vBA, so I've created one myself.

Upload the file hooks_ugl.xml into your /includes/xml folder.

Now you have to add in the call to the hook.

Open the file /modules/onlineusers.php

Find:
if (!$activeusers)
{
$activeusers = construct_phrase($vbphrase['no_x_online'], $vbphrase['members']);
}


Add After:

// Added by UGL module
($hook = vBulletinHook::fetch_hook('vba_cmps_module_onlineusers_complete')) ? eval($hook) : false;


Configuration:

Admin CP -> vBulletin Options, User Group Legend

By default the display for vbAdvanced is turned off, so if you use vBA, turn it on here. Otherwise, configure the usergroups you'd like displayed and in what order.

How do I change the usergroup colors?

In order to change the colors of the different usergroups, you have to edit the user groups themselves, this is standard for vBulletin but some people have a hard time figuring it out (myself included at first).

AdminCP -> Usergroups -> Usergroup Manager -> Edit (next to whatever usergroup)

What you are looking for is the field: Username HTML Markup

Edit the first box and add in: <span style="color: #FF6600;">
Edit the next box and add in: </span>

Do that for each usergroup you want, changing the HTML color value to your liking.

Credits:

This mod is derived from the mod Usergroup Color Bar Legend, http://www.vbulletin.org/forum/showthread.php?p=1707616 by Atakan KOC.
Mostly all I did was add in support for vBAdvanced.

Screen Shots:



Download

File Type: %1$s product-ugl.xml (3.6 KB, 398 downloads)
File Type: %1$s hooks_ugl.xml (159 Bytes, 247 downloads)

Similar Mods

Forum Home Enhancements Yet Another Usergroup Legend vBulletin 3.7 Add-ons
Forum Home Enhancements Usergroup Legend vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2025