Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Colored Group Legend using Phrases Details »»
Colored Group Legend using Phrases
Version: 1.00, by obmob obmob is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.6.2 Rating:
Released: 11-02-2006 Last Update: Never Installs: 27
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-03-2006, 02:24 PM
ChavMagnet's Avatar
ChavMagnet ChavMagnet is offline
 
Join Date: Sep 2006
Location: Leeds - England
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

V. Nice thanks alot mate.
Reply With Quote
  #3  
Old 11-04-2006, 11:51 AM
Thug Thug is offline
 
Join Date: Feb 2004
Location: Sheffield : uk
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice, thankyou.
Reply With Quote
  #4  
Old 11-06-2006, 08:12 AM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kool thnx
Reply With Quote
  #5  
Old 11-07-2006, 07:51 AM
Tacama Tacama is offline
 
Join Date: Mar 2006
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what i needed, thanks.

Justo lo que necesitaba, muchas gracias
Reply With Quote
  #6  
Old 11-08-2006, 04:21 PM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great idea installed it already thnx
Reply With Quote
  #7  
Old 11-08-2006, 04:24 PM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad it is useful!
Reply With Quote
  #8  
Old 11-10-2006, 01:53 AM
PassLab.net's Avatar
PassLab.net PassLab.net is offline
 
Join Date: Aug 2006
Location: LonDoN
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot
Reply With Quote
  #9  
Old 11-14-2006, 05:08 PM
Khawar Khawar is offline
 
Join Date: Nov 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

helped alottttttttttttttt
Reply With Quote
  #10  
Old 12-17-2006, 07:08 PM
krazycivik krazycivik is offline
 
Join Date: Nov 2005
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awsome thank you!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05652 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete