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)

Micky_1 02-22-2011 06:09 PM

Quote:

Originally Posted by FractalizeR (Post 2165322)
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 :)

TeknoSounds 02-23-2011 02:23 AM

Quote:

Originally Posted by Mikevet1984 (Post 2165489)
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.

Mikevet1984 02-23-2011 03:56 AM

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

WEBDosser 02-23-2011 06:17 AM

tagged

mattballew 02-23-2011 08:15 AM

lol got it, Thx :)

FractalizeR 02-23-2011 08:45 AM

Quote:

Originally Posted by Mikevet1984 (Post 2165669)
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.

FractalizeR 02-23-2011 08:46 AM

Quote:

Originally Posted by Boofo (Post 2165326)
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.

Boofo 02-23-2011 09:09 AM

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.

Boofo 02-23-2011 10:20 AM

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

Jimandbob 02-23-2011 10:38 AM

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


You are a star Boofo :up: Works 100% Thak You.


All times are GMT. The time now is 01:16 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.01356 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)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