vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Usergroup Color Bar Legend (https://vborg.vbsupport.ru/showthread.php?t=228607)

rhorman 02-23-2011 12:54 PM

Quote:

Originally Posted by fxwoody (Post 2165753)
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 (Post 2165767)
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.

Robbed 02-23-2011 06:25 PM

You can just go to plugin manager and find the usergroup color bar and edit the code.

Boofo 02-23-2011 10:52 PM

Quote:

Originally Posted by emath (Post 2165766)
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.

venom2124 02-24-2011 01:00 AM

So glad to have this back.

Mr_Running 02-24-2011 03:49 AM

Usergroup Color Bar Legend
vBulletin 4.1.2

1) Download Product

2) Edit xml file: This Worked for me. :)

Quote:

Originally Posted by rhorman (Post 2165790)
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 (Post 1920496)
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

evildon 02-24-2011 04:41 AM

Can you guys please update it for working with latest 4.1.2

Thanks

Boofo 02-24-2011 04:56 AM

Look at the code right above your post and replace that and it is fixed.

Jackie1 02-24-2011 06:07 AM

1 Attachment(s)
my product feature:
fix with 4.1.2
count user in group :D
check it out :D

d2gaming 02-24-2011 08:06 AM

Quote:

Originally Posted by Jackie1 (Post 2166151)
my product feature:
fix with 4.1.2
count user in group :D
check it out :D

Awesome, thank you for that fix. Is there a way to take of the counter next
to the usergroup name?

TeknoSounds 02-24-2011 08:30 AM

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



All times are GMT. The time now is 04:45 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.01358 seconds
  • Memory Usage 1,755KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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