Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Split Useronline on Forumhome (Members / Team) Details »»
Split Useronline on Forumhome (Members / Team)
Version: 1.0.3, by Surviver Surviver is offline
Developer Last Online: May 2020 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.4 Rating:
Released: 01-06-2007 Last Update: 02-28-2007 Installs: 197
Uses Plugins Template Edits
 
No support by the author.

Split Useronline

Description

This Hack splits the User Onine Display on Forumhome.
In the ACP you can select Team-Usergroups. The Description (Team/Member) will only be shown up, if anybody of this Categorie is online.

Installation

Import the Product and configurate it in the vBulletin Settings (No Templateedit)

That's all, have fun

Changelog
v 1.0.2
[F] Fixed a bug (Usercount)
[F] Fixed a bug that the description was not showing up, when no team-member was online
[+] Added two Groups: Premiummembers & VIPs

v 1.0.3
[+] If only normal Members are online, the Description is not shown up now (Thanks to Snake)


Greetings Surviver

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 05-08-2008, 10:05 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Surviver View Post
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
Reply With Quote
  #93  
Old 05-09-2008, 02:25 AM
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Location: QLD, Australia
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi View Post
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
Reply With Quote
  #94  
Old 05-13-2008, 01:47 AM
nikki712 nikki712 is offline
 
Join Date: Sep 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #95  
Old 05-13-2008, 07:49 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #96  
Old 05-13-2008, 01:17 PM
nikki712 nikki712 is offline
 
Join Date: Sep 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi View Post
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.
Reply With Quote
  #97  
Old 05-16-2008, 12:00 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyone that can get this working on 3.7?
Reply With Quote
  #98  
Old 05-17-2008, 01:31 PM
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Location: QLD, Australia
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi View Post
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.
Reply With Quote
  #99  
Old 05-24-2008, 05:11 PM
akonami akonami is offline
 
Join Date: May 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can get this working on 3.7?
Reply With Quote
  #100  
Old 05-24-2008, 05:53 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #101  
Old 05-24-2008, 08:27 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05061 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete