Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Usergroup Color Bar Legend Details »»
Usergroup Color Bar Legend
Version: 2.11, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.1.2 Rating:
Released: 11-21-2009 Last Update: 03-08-2011 Installs: 1472
Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

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'

Modifications Info

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

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 4.0 version.
v2.1 - Fixed.
v2.1.1 - Bug Fixed.

Download Now

File Type: xml product-ugcb.xml (2.3 KB, 5671 views)
File Type: xml product-ugcb-211.xml (2.4 KB, 4681 views)

Screenshots

File Type: png vB4 Forums_1258904889707.png (18.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
8 благодарности(ей) от:
alcazarx, car20, CarpCharacin, KorvinGump, mapleleaffans, misericorde, morpheus28, Spika

Comments
  #182  
Old 02-23-2011, 12:54 PM
rhorman rhorman is offline
 
Join Date: Oct 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fxwoody View Post
Boofo our savior!
Tks my friend, works A1

@matrixmark

remove the dot (in red) from this line:

Code:
$activeusers2 .= $vbulletin->usergroupcache["$userbul"]['opentag'] . ' ? ' . $vbulletin
Actually, this is what should be there to make it look correct:

Replace the red dot with
PHP Code:
&#8226 
And no space at the beginning of the code, but only one space after.

Quote:
Originally Posted by AshMagic View Post
Where is the forumhome_complete hook?
And the forumhome_complete hook is located inside the product-ugcb.xml file. Use a program like Notepad ++ to open the file.
Reply With Quote
  #183  
Old 02-23-2011, 06:25 PM
Robbed Robbed is offline
 
Join Date: Oct 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can just go to plugin manager and find the usergroup color bar and edit the code.
Reply With Quote
  #184  
Old 02-23-2011, 10:52 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by emath View Post
thanks, works..

dont expect too many donation for editing one line
I don't expect any, to be honest. And it has not failed me yet.
Reply With Quote
  #185  
Old 02-24-2011, 01:00 AM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So glad to have this back.
Reply With Quote
  #186  
Old 02-24-2011, 03:49 AM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Usergroup Color Bar Legend
vBulletin 4.1.2

1) Download Product

2) Edit xml file: This Worked for me.

Quote:
Originally Posted by rhorman View Post
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 View Post
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

Code:
</span>

Example 2

First box

Code:
<span style="color: Blue;">
Second box

Code:
</span>
You can also do combination's by using more than one attribute in the style property:

7) Have Fun and Thanks!

Cheers,
Mr_Running
Reply With Quote
  #187  
Old 02-24-2011, 04:41 AM
evildon's Avatar
evildon evildon is offline
 
Join Date: Dec 2009
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you guys please update it for working with latest 4.1.2

Thanks
Reply With Quote
  #188  
Old 02-24-2011, 04:56 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look at the code right above your post and replace that and it is fixed.
Reply With Quote
  #189  
Old 02-24-2011, 06:07 AM
Jackie1 Jackie1 is offline
 
Join Date: Sep 2007
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my product feature:
fix with 4.1.2
count user in group
check it out
Attached Files
File Type: xml product-ugcb.xml (2.5 KB, 31 views)
Reply With Quote
  #190  
Old 02-24-2011, 08:06 AM
d2gaming d2gaming is offline
 
Join Date: Nov 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jackie1 View Post
my product feature:
fix with 4.1.2
count user in group
check it out
Awesome, thank you for that fix. Is there a way to take of the counter next
to the usergroup name?
Reply With Quote
  #191  
Old 02-24-2011, 08:30 AM
TeknoSounds TeknoSounds is offline
 
Join Date: Nov 2006
Location: TX
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to your AdminCP->Plugins and Products dropdown->Plugin Manager (NOT where you Install the product) ->Usergroup Color Bar -> Edit

Replace the code with:
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>';
}
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 03:26 AM.


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.05009 seconds
  • Memory Usage 2,360KB
  • Queries Executed 26 (?)
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
  • (9)bbcode_code
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete