PDA

View Full Version : Statistics Modifications - Display Online Users Count Everywhere


NeutralizeR
03-28-2010, 10:00 PM
Description: This mod will add online users count info to any vBulletin page.

Example:
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:
https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

Installation:
1-) Import product-msx_online_count_vb3.xml
2-) Edit navbar template (or any template you prefer) and add:
<!-- 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:
msxtotal
msxmembers
msxguests

NeutralizeR
03-30-2010, 11:49 AM
For vBadvanced (vBulletin 3):

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

shmuel24
03-30-2010, 07:58 PM
Thanks ,works great =]

Kaelon
03-30-2010, 08:34 PM
How many queries does this add globally?

NeutralizeR
03-30-2010, 11:43 PM
How many queries does this add globally?
Two small queries are executed, same with the Admin CP online users stat.

Abhik
03-31-2010, 04:26 AM
Thanks..
But is there any way to put this on Custom 404 Page?

NeutralizeR
03-31-2010, 12:03 PM
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:

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

Polo
08-09-2010, 06:55 PM
Thank you! this has always been one of my favorite modifications of vbulletin...

Polo
08-09-2010, 07:06 PM
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

77 Users Online (https://vborg.vbsupport.ru/online.php)

To use it like this use the following code:

<!-- Display Online Users Count -->
<b><a href=/online.php>$msxtotal $vbphrase[users_online]</a></b>
<!-- / Display Online Users Count -->

slobra
09-03-2010, 04:28 PM
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! :D

EDIT: Nevermind, fixed it. I was editing the Variables in the vBadvanced page itself, instead of Default Settings > Main Options.

kralex
09-06-2010, 12:09 AM
güzel eklenti eline sağlık usta. 5 yıldızlık oyu verdim.

thanks for this mod.