vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Colored Group Legend using Phrases (https://vborg.vbsupport.ru/showthread.php?t=130658)

obmob 11-02-2006 10:00 PM

Colored Group Legend using Phrases
 
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 :D

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. :D
Hope it's useful for some of you.

ChavMagnet 11-03-2006 02:24 PM

V. Nice thanks alot mate.

Thug 11-04-2006 11:51 AM

nice, thankyou.

apiasto 11-06-2006 08:12 AM

kool thnx

Tacama 11-07-2006 07:51 AM

Just what i needed, thanks.

Justo lo que necesitaba, muchas gracias ;)

apiasto 11-08-2006 04:21 PM

great idea installed it already thnx

obmob 11-08-2006 04:24 PM

:) Glad it is useful!

PassLab.net 11-10-2006 01:53 AM

thanks a lot ;)

Khawar 11-14-2006 05:08 PM

helped alottttttttttttttt

krazycivik 12-17-2006 07:08 PM

awsome thank you!


All times are GMT. The time now is 10:40 AM.

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.01107 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete