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)

nikki712 04-30-2008 05:22 AM

I'm running 3.7 Gold, and it still works for me, but I have two commas between each membername. It looks like:

Team: Michael

Premium Members: , jane, , john, , joe, , jack and so on. How can I get rid of these extra commas? Right now, they're only showing up for the premium usergroup.

Regular Members: joan, mark, andy, paul and so on.

VIRUS-T-HUNTER 04-30-2008 05:53 AM

Thanks a lot boss but cant find the opion to add the group????

nikki712 05-01-2008 02:32 AM

Quote:

Originally Posted by VIRUS-T-HUNTER (Post 1503033)
Thanks a lot boss but cant find the opion to add the group????

Vbulletin Options > Forum Home Page Options. You can enable it from there and add whatever groups you want.

MrD 05-01-2008 07:07 PM

Hi,
the Mod don?t work on vb3.7.x Gold.

No Settings where saved and the Usernames have a double comma between the names.
The Groups where not displayed.

@Nikki: clear your Browsercache :D

neolab 05-01-2008 08:24 PM

Up to 3.7.0 ;)

GoldenChaos 05-02-2008 09:24 PM

I have the same double comma issue that everyone else has. I'm disabling this until an update occurs. PLEASE update! This is a very great hack and it would be a shame for it to die off.

AdeptusAstartes 05-04-2008 05:48 PM

same problem here

RedTrinity 05-08-2008 04:53 AM

Quote:

Originally Posted by GoldenChaos (Post 1506189)
I have the same double comma issue that everyone else has. I'm disabling this until an update occurs. PLEASE update! This is a very great hack and it would be a shame for it to die off.

I did this to fix the double comma issue:

Open FORUMHOME_loggedinuser

Find:

Code:

<if condition="$show['comma_leader']">, </if>
Change to:

Code:

<if condition="$show['comma_leader']"> </if>
Removing the comma in that template worked for me :)

pedroenf 05-08-2008 10:26 AM

Yes! That solves the problem. Using 3.7 and this mod works fine.

neolab 05-08-2008 03:04 PM

Quote:

Originally Posted by MrD (Post 1504913)
Hi,
the Mod don?t work on vb3.7.x Gold.

No Settings where saved and the Usernames have a double comma between the names.
The Groups where not displayed.

@Nikki: clear your Browsercache :D

Saving groupe directly in xml (<defaultvalue>) ;)

Code:


$teamusergroups .= "\\t\\t<label for=\\"setting[$setting[varname]]$usergroupid\\" title=\\"usergroupid: $usergroupid\\"><input type=\\"checkbox\\" tabindex=\\"1\\"

name=\\"setting[$setting[varname]]"."[]\\" id=\\"setting[$setting[varname]]$usergroupid\\" value=\\"$usergroupid\\"" . iif(strpos(",$setting[value],", ",$usergroupid,") !== false, \'

checked="checked"\') . iif($vbulletin->debug, " title=\\"name=&quot;setting[$setting[varname]]&quot;\\"") . " />$usergroup[title]</label><br />\\n";
}
return "<span class=\\"smallfont\\">\\n$teamusergroups\\t</span>";')  . "<input type=\"hidden\" name=\"setting[$setting[varname]][]\" value=\"0\" />]]></optioncode>
                               

<defaultvalue>5,6,7</defaultvalue>
                        </setting>
                        <setting varname="split_useronline_premiumusers" displayorder="110">
                               

<datatype>free</datatype>
                                <optioncode><![CDATA[" . eval('foreach($vbulletin->usergroupcache AS $usergroupid => $usergroup)
{
        $premiumusergroups .= "\\t\\t<label for=\\"setting[$setting[varname]]$usergroupid\\" title=\\"usergroupid: $usergroupid\\"><input type=\\"checkbox\\" tabindex=\\"1\\"

name=\\"setting[$setting[varname]]"."[]\\" id=\\"setting[$setting[varname]]$usergroupid\\" value=\\"$usergroupid\\"" . iif(strpos(",$setting[value],", ",$usergroupid,") !== false, \'

checked="checked"\') . iif($vbulletin->debug, " title=\\"name=&quot;setting[$setting[varname]]&quot;\\"") . " />$usergroup[title]</label><br />\\n";
}
return "<span class=\\"smallfont\\">\\n$premiumusergroups\\t</span>";')  . "<input type=\"hidden\" name=\"setting[$setting[varname]][]\" value=\"0\" />]]></optioncode>
                       

<defaultvalue>98</defaultvalue>
                        </setting>
                        <setting varname="split_useronline_vipusers" displayorder="120">
                               

<datatype>free</datatype>
                                <optioncode><![CDATA[" . eval('foreach($vbulletin->usergroupcache AS $usergroupid => $usergroup)
{
        $vipusergroups .= "\\t\\t<label for=\\"setting[$setting[varname]]$usergroupid\\" title=\\"usergroupid: $usergroupid\\"><input type=\\"checkbox\\" tabindex=\\"1\\"

name=\\"setting[$setting[varname]]"."[]\\" id=\\"setting[$setting[varname]]$usergroupid\\" value=\\"$usergroupid\\"" . iif(strpos(",$setting[value],", ",$usergroupid,") !== false, \'

checked="checked"\') . iif($vbulletin->debug, " title=\\"name=&quot;setting[$setting[varname]]&quot;\\"") . " />$usergroup[title]</label><br />\\n";


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.

RedTrinity 05-26-2008 07:02 AM

Quote:

Originally Posted by consolegaming (Post 1530242)
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.

Its really not that hard to re-add the comma if you decide to disable/uninstall the plugin :rolleyes: And hasn't caused me any issues yet.

KanmaiseR 05-26-2008 05:54 PM

Thanks, installed

consolegaming 06-01-2008 06:37 PM

Ok guys got an 3.7 compatible version in action now:
https://vborg.vbsupport.ru/showthread.php?t=181212

Full credit goes to Surviver for allowing me to alter his original product and I've also given you credit GamerGirl for the template modification (as you found it), though I'm still going to try and find a solution that doesn't require any template edits (It's only a small one but may as well avoid them if it's possible).

The settings for which usergroups are in these different groups is now in the usergroup manager rather than the list in the vBulletin Options page. This was a change that I always wanted to see and made solving the saving issues of this hack much easier at the same time. Though it does mean that anyone with saved settings will lose them whilst upgrading especially as I was advised to create it as a seperate product.

lucky_1 06-09-2008 05:21 PM

Nice hack. But i want something more. I want that u recode this hack in which anyone can add extra legends because there are only three only. Also to change there name. I think u understood. I want this one because i needed this kind of legend bar i edited from existing one but errors errors errors on eval code on index page. Reply soon after modification. Regards!

sweetguy2004 12-01-2008 08:06 AM

when I configure profiles in forum homepage option & save it all ticks disappear from the selected profiles....any help m using 3.7.2 PL1

crouzmind 04-09-2009 06:43 PM

can i use this mod on vbulletin 3.8.1 ? reply quickly plz

Derekclarke 04-09-2009 06:56 PM

It is working on mine on 3.8.1 & 3.8.2

crouzmind 04-11-2009 10:56 AM

when I configure profiles in forum homepage option & save it all ticks disappear from the selected profiles....any help m using VB 3.8.1

s-p0k 06-27-2009 06:10 AM

installed ty .......

s-p0k 07-25-2009 02:09 AM

Quote:

Originally Posted by sweetguy2004 (Post 1676280)
when I configure profiles in forum homepage option & save it all ticks disappear from the selected profiles....any help m using 3.7.2 PL1

same here any info on this...........

Forumkentimiz 07-27-2009 08:28 PM

Thank You
A Plug for Plug-run portal VbAdvanced Cmps Do

ZuFett 08-16-2009 09:21 PM

i have the same problem like croumind

s-p0k 09-23-2009 05:02 PM

is there any update to this????????????????????????


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.01367 seconds
  • Memory Usage 1,829KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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