Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Display Online Users Count Everywhere Details »»
Display Online Users Count Everywhere
Version: 1.00, by NeutralizeR NeutralizeR is offline
Developer Last Online: Oct 2021 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 3.8.x Rating:
Released: 03-28-2010 Last Update: 03-28-2010 Installs: 11
Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

Description: This mod will add online users count info to any vBulletin page.

Example:
Quote:
23 Users Online (6 members and 17 guests)
Two small queries are executed, same with the Admin CP online users stat.

Details: You don't have to enable "Display Logged in Users?" options (forumhome,showthread,forumdisplay) which requires serious resources to run this mod. I haven't noticed any performance problems with more than 10k online users.

Screenshots:




Installation:

1-) Import product-msx_online_count_vb3.xml
2-) Edit navbar template (or any template you prefer) and add:
Code:
<!-- Display Online Users Count -->
<b>$msxtotal</b> $vbphrase[users_online] (<phrase 1="$msxmembers" 2="$msxguests">$vbphrase[x_members_and_y_guests]</phrase>)
<!-- / Display Online Users Count -->
vBulletin 4.0.x version is here: https://vborg.vbsupport.ru/showthread.php?t=239363

For vBadvanced (vBulletin 3):

Open Portal Output Global Variables and add the lines below to the list:
Code:
msxtotal
msxmembers
msxguests

Download Now

File Type: zip product-msx_online_count_vb3.zip (3.5 KB, 91 views)

Show Your Support

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

Comments
  #2  
Old 03-30-2010, 11:49 AM
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For vBadvanced (vBulletin 3):

Open Portal Output Global Variables and add the lines below to the list:
Code:
msxtotal
msxmembers
msxguests
Reply With Quote
  #3  
Old 03-30-2010, 07:58 PM
shmuel24 shmuel24 is offline
 
Join Date: Oct 2009
Location: Israel
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ,works great =]
Reply With Quote
  #4  
Old 03-30-2010, 08:34 PM
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How many queries does this add globally?
Reply With Quote
  #5  
Old 03-30-2010, 11:43 PM
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kaelon View Post
How many queries does this add globally?
Two small queries are executed, same with the Admin CP online users stat.
Reply With Quote
  #6  
Old 03-31-2010, 04:26 AM
Abhik's Avatar
Abhik Abhik is offline
 
Join Date: Jun 2006
Location: Kolkata, India
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks..
But is there any way to put this on Custom 404 Page?
Reply With Quote
  #7  
Old 03-31-2010, 12:03 PM
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abhik View Post
Thanks..
But is there any way to put this on Custom 404 Page?
Yes. But you have to integrate that page with vBulletin first. Adding these lines at the top of your custom 404 page will do the trick:

Code:
<?php
$forumpath = '/home/youraccountname/public_html/forum';
chdir($forumpath);
require_once('./global.php');
exec_shut_down();
?>
Edit the $forumpath with config.php's $config['Misc']['forumpath'] = setting.
Reply With Quote
  #8  
Old 08-09-2010, 06:55 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! this has always been one of my favorite modifications of vbulletin...
Reply With Quote
  #9  
Old 08-09-2010, 07:06 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like to use it a little bit different, I like to only show the total number of users and for the total count to link the users online page

To use it like this use the following code:

HTML Code:
<!-- Display Online Users Count -->
<b><a href=/online.php>$msxtotal $vbphrase[users_online]</a></b>
<!-- / Display Online Users Count -->
Reply With Quote
  #10  
Old 09-03-2010, 04:28 PM
slobra slobra is offline
 
Join Date: Jul 2008
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod, installed and voted 5, been trying to figure this out.

Question for vBadvanced. I added msxtotal, msxmembers, and msxguests to Portal Output Global Variables but it's still showing "Online Users: ( members, guests)" but it works fine everywhere else on the forum. Is there something I'm missing? Thanks for any help!

EDIT: Nevermind, fixed it. I was editing the Variables in the vBadvanced page itself, instead of Default Settings > Main Options.
Attached Images
File Type: jpg pogv.jpg (14.6 KB, 0 views)
Reply With Quote
Reply

Thread Tools

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 01:29 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.04736 seconds
  • Memory Usage 2,318KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete