vb.org Archive

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

BlackLord2008 08-15-2008 07:11 AM

Hey, it works for me, Make sure you edit each users HTML Markup ;)

jackey666 08-16-2008 05:25 PM

Here's my PHP version:
PHP Code:

if (THIS_SCRIPT == "index" and $vbulletin->options['ugcb_onoff'])
{
$activeusers2 .= '<div class="smallfont"><b>' $vbphrase[legend] . ':</b> ';
$userbuls split(','$vbulletin->options['sirala']);
$isnotfirst 0;
foreach(
$userbuls AS $userbul) {
if (
$isnotfirst)
$activeusers2 .= '• ';
$activeusers2 .= $vbulletin->usergroupcache["$userbul"]['opentag'] . ' ' $vbulletin->usergroupcache["$userbul"]['title'] . $vbulletin->usergroupcache["$userbul"]['closetag'].' ';
$isnotfirst 1;
}
$activeusers ''.$activeusers2 .'<br /><br />'$activeusers;


The modifications removes the bullet from the first element, add a "Legend" title, and remove the default BOLD from all the groups. "$legend" phrase need to be created.

See the attached images for a screenshot.

shotkey 08-19-2008 04:07 PM

Colors work fine - but when I enable this hack it adds a second legend bar (shown below). When I disable it the legend and users are shown correctly. Anyone have any ideas on what's causing this?

With hack enabled:
Most users ever online was X, Today at 12:01 AM.

[ Administrators ] [ Super Moderators ] [ Moderators ] [ Registered Users ]
? Administrators ? Super Moderators ? Moderators ? Registered Users

admin

Legend:
[ Administrators ] [ Super Moderators ] [ Moderators ] [ Registered Users ]

With hack disabled

Most users ever online was x, Today at 12:02 AM.

Legend:
[ Administrators ] [ Super Moderators ] [ Moderators ] [ Registered Users ]

fatal1980 08-23-2008 07:59 PM

Just a suggestion, I've installed this mod on many sites. Each time I've had to have two AdminCP's open so I could remember what each Usergroup's number is. It would be great to have some sort of preview option as well as a list of Usergroups and their number.

Cheers.

SSJB_7 08-24-2008 11:28 PM

thanks it's working fine but i don't know how to make it working with the last member.
if you can help me it would be just fine!

OTForums 08-29-2008 03:58 PM

Thankyou, I have added this to my forums.

Stryker412 08-29-2008 04:56 PM

Quote:

Originally Posted by loonytune15 (Post 1409833)
I have specific colors for each skin as colors dont look right when you change between dark and light styles...

Will this do that?

How do you do this?

Einjeher 09-03-2008 03:49 PM

working fine for me

KillerStefan 09-19-2008 02:13 PM

Installed.

HemoOo Nana 09-21-2008 06:03 PM

thanks


All times are GMT. The time now is 04:59 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.01192 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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