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
  #162  
Old 02-22-2011, 06:09 PM
Micky_1 Micky_1 is offline
 
Join Date: Apr 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FractalizeR View Post
Go to /admincp/plugin.php?do=modify and replace there the contents of the forumhome_complete module, that belongs to Usergroup Colorbar plugin with the following:
thanks
Reply With Quote
  #163  
Old 02-23-2011, 02:23 AM
TeknoSounds TeknoSounds is offline
 
Join Date: Nov 2006
Location: TX
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mikevet1984 View Post
Because not everybody is expert in coding and vBulletin software, could sb please do the patch that the coder FractalizeR shared with us and export the xml file of the updated version of this mod and share it with us in this topic?
to get to where to change the plugin at, go to AdminCP->Plugins & Products dropdown-> Plugin Manager -> find Usergroup Color Legend and edit it, replace the code with the code above.

Note it is changing the location of where the color bar it appears, it sounds like.
Reply With Quote
  #164  
Old 02-23-2011, 03:56 AM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much for the instructions....Just did it and workded!

One more question please. Is it possible to change the allignment of the colorbar to be shown in center and not start from the left of the page, just like the usergroup colorbar of the VSa - Visitors In Last X Hours mod?

Is it possible to move the usergroup colorbar to be the first in the raw in the What's going on section? That would be useful to know in case another mod is installed and appears in a not desired place in the whats going on section....

Really thank you to everybody for the help....
Reply With Quote
  #165  
Old 02-23-2011, 06:17 AM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged
Reply With Quote
  #166  
Old 02-23-2011, 08:15 AM
mattballew mattballew is offline
 
Join Date: Jan 2011
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol got it, Thx
Reply With Quote
  #167  
Old 02-23-2011, 08:45 AM
FractalizeR's Avatar
FractalizeR FractalizeR is offline
 
Join Date: Oct 2005
Location: Russia, Moscow
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mikevet1984 View Post
Thank you very much for the instructions....Just did it and workded!

One more question please. Is it possible to change the allignment of the colorbar to be shown in center and not start from the left of the page, just like the usergroup colorbar of the VSa - Visitors In Last X Hours mod?

Is it possible to move the usergroup colorbar to be the first in the raw in the What's going on section? That would be useful to know in case another mod is installed and appears in a not desired place in the whats going on section....

Really thank you to everybody for the help....
To make style adjustments just surround $activeusers2 with necessary HTML code. To make it centered try this:

PHP Code:
$activemembers .= '<br /><div align="center"><b>'.$activeusers2 .'</b></div><br /><br />'
To change the placement... It would be a little difficult, but you can open whosonlinebit template and look for some suitable variable there. And then change $activemembers into this variable name in the code of the plugin.
Reply With Quote
  #168  
Old 02-23-2011, 08:46 AM
FractalizeR's Avatar
FractalizeR FractalizeR is offline
 
Join Date: Oct 2005
Location: Russia, Moscow
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
I'm just curious here... where are you getting $activemembers from? That throws it down in the statistics block.
Just open whosonlinebit template and you will see. You can also search VBulletin source for "forumhome_complete" string and you will see a list of assignments there.
Reply With Quote
  #169  
Old 02-23-2011, 09:09 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was a rhetorical question. Moving it all the way down into the stats really doesn't serve the original purpose of the mod, is what I was meaning.
Reply With Quote
  #170  
Old 02-23-2011, 10:20 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

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>';
}

I expect to see lots of Boofo donations for this.
Reply With Quote
  #171  
Old 02-23-2011, 10:38 AM
Jimandbob Jimandbob is offline
 
Join Date: Apr 2006
Location: Hull
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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>';
}
I expect to see lots of Boofo donations for this.

You are a star Boofo :up: Works 100% Thak You.
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 11:17 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.05148 seconds
  • Memory Usage 2,362KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (5)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
  • (3)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