Back to vBulletin 3.6 Template Modifications

Colored Group Legend using Phrases
Mod Version: 1.00, by obmob

This modification is in the archives.
vB Version: 3.6.2 Rating: (2 votes - 4.00 average) Installs: 27
Released: 03 Nov 2006 Last Update: Never Downloads: 22
Not Supported  

Well, i wanted to add a usergroup legend in the forumhome page to let everyone know who is in charge. Cause they are always asking me, who are you? :hurt:

So, i tried some of the mods available, but i remembered my site uses more than english language. And i wanted to show my tags in more than one language.

I based my idea in the Dark User Legend by Dark D.

All i did was to add my the idea i had, very simple and neat. I mean, if you don't need more than one language, use the one by Dark D, you need no more.

Ok, let's start.

FIRST: Lets add some color tags to our usergroups.

Enter Usergroups > Usergroup Manager.

Now lets edit Administrators Group. Look down for Username HTML Markup. In the first cell add:
Code:
<font color = "black"><u><b>
You can also use the color code instead of black and use #000000.

in the second one -to wrap the name- add:
Code:
</b></u></font>
Do the same to the other usergroups you want to show and don't forget which colors and style you used.

SECOND: Add a new phrase in Languages & Phrases > Phrase Manager > Then Click Add New Phrase in the bottom of that screen.

Code:
Phrase Type: GLOBAL
Product: vBulletin
Varname: group_legend
Text: <span class="smallfont"><font color = "black"><u><b>Administrators</b></u></font> | <font color = "red"><b>Super Moderators</b></font> | <font color = "blue"><b>Moderators</b></font> | <font color = "lightgray"><b>Registered Members</b></font></span>
THIRD: Don't press enter! You still need to translate to the desired language, as an example, i added spanish translation to the phrase.

Code:
<span class="smallfont"><font color = black><u><b>Administradores</b></font></u> | <font color = red><b>Super Moderadores</b></font> | <font color = blue><b>Moderadores</b></font> | <font color = lightgray><b>Usuario Registrado</b></font></span>
Now you can press enter and save your new phrase

FOURTH: Now let's call the phrase in our forumhome template.

Enter in Styles & Templates > Style Manager and open your template groups, search for FORUMHOME and open it.

Search for:
Code:
<div>$activeusers</div>
Replace it with:
Code:
<div>$vbphrase[group_legend]<br />$activeusers</div>
This will show our phrase right above the active users, if you have some HTML experience you can call it whereever you want.

That's it... hope it didn't take too much time!

Oh, and check the preview attached.
Hope it's useful for some of you.

Download

No files for download.

Screenshots

Click image for larger version
Name:	legend_en.jpg
Views:	1648
Size:	60.1 KB
ID:	55447   Click image for larger version
Name:	legend_es.jpg
Views:	1313
Size:	64.4 KB
ID:	55448  

Similar Mods

Forum Home Enhancements Custom Colored Usergroup Legend vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024