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)

AshMagic 02-24-2011 09:18 AM

Works great. Thanks!! Exactly what I needed.

Gemma 02-24-2011 12:24 PM

Excellent. Now all I need to do is figure out how to move the legend bar to below the active users.

Mikevet1984 02-24-2011 02:17 PM

Nope, in my opinion.... the only change that should be made is to be given more space between the color bar and the list of connected users because the are very close and this is not the best when viewing the WGO section.

Thank you, Boofo for your contribution! Really appreciate that! :)

''Michael''

Jazzinto 02-24-2011 04:53 PM

Quote:

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

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. ;)




Thanks. It works perfectly, I really like this mod.

Mikevet1984 02-24-2011 04:57 PM

Quote:

Originally Posted by FractalizeR (Post 2165724)
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.

$activeusers2 appears 3 times in the mod's script. Should I apply the html code you provided in all the $activeusers2 words or in a spesific one?

FractalizeR 02-25-2011 09:49 AM

No, of course. To the last one only

★Slap 02-25-2011 08:04 PM

Modification needs updating, as users online are not appearing when this modification is in use. Running vBulletin 4.1.2 works fine on other versions except this.

Boofo 02-25-2011 08:19 PM

Reading the last few pages of this thread might yield some surprising results.

https://vborg.vbsupport.ru/showpost....&postcount=169

★Slap 02-25-2011 09:20 PM

I got this error once I replaced the code in the XML file,

Code:

Unable to add cookies, header already sent.
File: /home/gamers/public_html/forum.php(653) : eval()'d code
Line: 2


Boofo 02-25-2011 11:18 PM

Then you must have missed something. I would try it again.


All times are GMT. The time now is 06:20 PM.

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.01467 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)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