Usergroup Color Bar Legend
vBulletin 4.1.2
1) Download Product
2) Edit xml file: This Worked for me.
Quote:
Originally Posted by rhorman
And the forumhome_complete hook is located inside the product-ugcb.xml file. Use a program like Notepad ++ to open the file.
|
Change to:
[QUOTE=Boofo;2165739]This will fix it to work on 4.1.2 like it did before. Replace the code in the forumhome_complete hook with the following:
3)Replace the code
Code:
if (THIS_SCRIPT == "index" and $vbulletin->options['ugcb_onoff'])
{
$activeusers2 = '';
$userbuls = split(',', $vbulletin->options['sirala']);
foreach($userbuls AS $userbul)
{
$activeusers2 .= $vbulletin->usergroupcache["$userbul"]['opentag'] . ' ? ' . $vbulletin->usergroupcache["$userbul"]['title'] . $vbulletin->usergroupcache["$userbul"]['closetag'] . ' ';
}
$vbphrase['most_users_ever_online_was_x_y_at_z'] .= '<p><b>'.$activeusers2.'</b></p>';
}
Install
4) Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-ugcb.xml' from your computer then press 'Import'
5) Usergroup Color Bar Setting
Go to your admin cp, then:
vBulletin Options -> Usergroup Color Bar ->
6)
Now to Add some colour...or whatever you would like...
Quote:
Originally Posted by garretbyrne
For colours assigned to your usergroup.. go into VB Admin - Usergroups - Usergroups Manager.. Once in here select the usergroup and click edit.
Once in here look for "Username HTML Markup" in the first box on the left put in "<span style="color: Red;">" and the second box on the right put in "</span>" in the first box with Red, change that to what ever colour you wish and save, now your usergroups have colour assigned to them, enjoy..
|
Can I include this or that?
Username HTML Markup
The first field is the opening tag. The second field is the closing tag. These tags will be inserted around the user's username like this:
Code:
[opening tag]username[closing tag]
Some HTML tags you might want to use here include:
Code:
<span style="font-weight: bold;">username</span> = username
<span style="font-style: italic;">username</span> = username
<span style="text-decoration: underline;">username</span> = username
<span style="color: red;">username</span> = username
<span style="font: 20px verdana;">username</span> = username
<span style="font: 20px verdana; color: red;">username</span> = username
Example 1
First box
Code:
<span style="color: Red;">
Second box
Example 2
First box
Code:
<span style="color: Blue;">
Second box
You can also do combination's by using more than one attribute in the style property:
7) Have Fun and Thanks!
Cheers,

Mr_Running