Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 12-18-2006, 06:40 AM
krazycivik krazycivik is offline
 
Join Date: Nov 2005
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway to add the legend out of the way or seperate box.. it kinda makes it crowded.. cheers,
Reply With Quote
  #13  
Old 12-19-2006, 04:08 PM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can place the
Code:
$vbphrase[group_legend]
anywhere, you can create a new table for it also.

Creating a new row just for this would make the table look odd, but it can be done.

Maybe something like this:
Code:
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
	<tr>
		<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
		<td class="alt1" width="100%">
			<div class="smallfont">
				<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
				<div>$activeusers</div>
			</div>		</td>
	</tr>
		<tr>
	  <td class="alt2">&nbsp;</td>
	  <td class="alt1">$vbphrase[group_legend]</td>
	  </tr>
</tbody>
Reply With Quote
  #14  
Old 12-27-2006, 02:42 PM
ezekiel97 ezekiel97 is offline
 
Join Date: Sep 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, found it out! Thanks alot!! INSTALLED!
Reply With Quote
  #15  
Old 06-15-2007, 11:26 AM
phreezex phreezex is offline
 
Join Date: Jun 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya really thanks alot i needed to find this one bad and thanks to you i got it
Reply With Quote
  #16  
Old 06-15-2007, 12:52 PM
rasp187 rasp187 is offline
 
Join Date: Dec 2005
Location: Ohio
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works very well. Thanks.
Reply With Quote
  #17  
Old 06-15-2007, 02:41 PM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad this is useful for you.
Reply With Quote
  #18  
Old 10-21-2007, 04:56 PM
RatherBecamping RatherBecamping is offline
 
Join Date: Oct 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Very Well. Thank you for sharing.
Reply With Quote
  #19  
Old 06-14-2009, 02:41 AM
DjiveWMD DjiveWMD is offline
 
Join Date: Mar 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Usergroup Color Bar Legend

This hack shows the user group tags under the name of the active users. This is an easy but usefull for you to determine the order of the groups. install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-ugcb.xml' from your computer then press 'Import'

Usergroup Color Bar Setting
Go to your admin cp, then:
vBulletin Options -> Usergroup Color Bar ->

Versions:
v1.0 - Initial vB 3.7 version.
v2.0 - Initial vB 3.8 version.

Modifications Info

Plugin : 1
Phrases : 5
Template : 0
Setting : 2


HTML Color Names

LINK
Reply With Quote
Reply


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:43 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.08206 seconds
  • Memory Usage 2,288KB
  • 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
  • (8)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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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