vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Split Useronline on Forumhome (Members / Team) (https://vborg.vbsupport.ru/showthread.php?t=135771)

Chadi 05-08-2008 10:05 PM

Quote:

Originally Posted by Surviver (Post 1189898)
In the Plugin forumhome_complete find:

PHP Code:

$activeusers .= "<b>".$vbphrase['team'].":</b>&nbsp;".$activeonlineusers['team']."<br /><br />"

Replace with:
PHP Code:

$activeusers .= "<b>".$vbphrase['team'].":</b>&nbsp;".$activeonlineusers['team']."<br />"


I upgraded to 3.7.0 today and this is still the same, yet the list shows up this way:

member, , member,

How can I correct this? Thank you

RedTrinity 05-09-2008 02:25 AM

Quote:

Originally Posted by chadi (Post 1513150)
I upgraded to 3.7.0 today and this is still the same, yet the list shows up this way:

member, , member,

How can I correct this? Thank you

Dude, I provided a fix for this at the bottom of the last page :confused:

nikki712 05-13-2008 01:47 AM

I installed the "Site Life Status" hack (https://vborg.vbsupport.ru/showthread.php?t=174416). Once installed, I noticed that my split user online hack wasn't working. I went to my forum homepage options and all of the boxes were unchecked, which I thought odd. So I went and rechecked them. It said it saved the settings, but it didn't. The boxes still come up blank, and the homepage doesn't show my users in the groups they're supposed to be in. I UNINSTALLED and deleted all of the files for the Site Life Status hack, and then uninstalled and REinstalled this hack. It still won't work! Any ideas as to how I can fix it? I really like this hack and want it to work. I didn't have to manually edit any templates w/the Site Life Status hack, so that shouldn't be an issue. Please help!

Chadi 05-13-2008 07:49 AM

I had this working in 3.7 without a problem. I went to bed for a few hours, come back and suddenly its not working anymore. Reinstalling this did not correct the problem. Anyone has a definite working version for 3.7? I checked vboptions, it is enabled but nothing was checked. So I re-checked them, saved. It refreshes the page, nothing saved

nikki712 05-13-2008 01:17 PM

Quote:

Originally Posted by chadi (Post 1518004)
I had this working in 3.7 without a problem. I went to bed for a few hours, come back and suddenly its not working anymore. Reinstalling this did not correct the problem. Anyone has a definite working version for 3.7? I checked vboptions, it is enabled but nothing was checked. So I re-checked them, saved. It refreshes the page, nothing saved

I feel better knowing that I'm not the only one w/this problem. Guess I'll uninstall it until there's a fix.

Chadi 05-16-2008 12:00 PM

Is there anyone that can get this working on 3.7?

RedTrinity 05-17-2008 01:31 PM

Quote:

Originally Posted by chadi (Post 1521521)
Is there anyone that can get this working on 3.7?

Yes, I am using a copy on 3.7 ;) I just had to make the edit I mentioned on the previous page in order to fix the double comma issue.

There is some problem with the group selections not saving properly on its config page, but this doesn't really bother me as I am only using it for default groups anyway.

akonami 05-24-2008 05:11 PM

can get this working on 3.7?

consolegaming 05-24-2008 05:53 PM

Ok got a better fix to the double comma issue. One that won't bugger up when the plugin is disabled. The previous fix would cause no comma's to be shown if you disabled the plugin.

Firstly undo the steps highlighted by GamerGirl27 if you indeed followed them.

It then requires changes to 2 of the 3 plugins used for this Product.

On the Aufteilen plugin (the one attached to the forumhome_loggedinuser hook ).

Find (appears several times - be sure to replace each one):
Code:

", '
Replace with:
Code:

"'
This will appear inside the eval function for each of the member groups. And all we're doing is removing the , and space from each function. This then causes a slight error with a missing <a for the first user. To fix this you need to do the second plugin alteration.

On the Ausgeben plugin (the one attached to the forumhome-complete hook).

Replace your entire plugin code with the following:

Code:

if(($activeonlineusers['team'] OR $activeonlineusers['members'] OR $activeonlineusers['premiummembers'] OR $activeonlineusers['vips']) AND $vbulletin->options['split_useronline_active'])
{
    unset($activeusers);
    if($activeonlineusers['team'])
    {
        $activeusers .= "<b>".$vbphrase['team'].":</b>&nbsp;".$activeonlineusers['team']."<br /><br />"; }
    if($activeonlineusers['vips'])
    {
        $activeusers .= "<b>".$vbphrase['vips'].":</b>&nbsp;".$activeonlineusers['vips']."<br /><br />";
    }
    if($activeonlineusers['premiummembers'])
    {
        $activeusers .= "<b>".$vbphrase['premiummembers'].":</b>&nbsp;".$activeonlineusers['premiummembers']."<br /><br />";
    }
    if($activeonlineusers['members'])
    {
        $activeusers .= iif($show['othergroups'], "<b>".$vbphrase['members'].":</b>&nbsp;").$activeonlineusers['members']."<br />";
    }
}


All I did was remove every instance of the substr function. Originally this was used to delete the extra ", " that would have been produced by the first plugin we altered. As this is no longer produced it is deleting code that we no longer need it to.

Congratulations the online users will display correctly now whether you have the plugin enabled or disabled.

consolegaming 05-24-2008 08:27 PM

Ok, not quite as perfect as I thought it was.

It seems depending on the nyumber of people in a group that it ++++s up the first one in all the groups. i.e. sometimes for a staff member their name has no space after it and the first user has a spare commar before it. And other times for a user their name doenst have a space after it and the staff has an extra , before the first one. Seems to alternate based on number of staff online I believe (possibly odds/evens).

Trying to get to the bottom of it.


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