The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Quick/Easy way to get $totalonline users (current active users number)
Does anyone know if there's a quick, clean and easy way to get the $totalonline active users number online (i.e. 50) without having to run a whole lot of MySQL and PHP crunching code?
I want to make this number available to vBAdvanced via the Plugin system. Something like this would be ideal: $totalonline = $vbulletin->userstats['totalonline']; I already use the following successfully: $numbermembers = vb_number_format($vbulletin->userstats['numbermembers']); $newusername = $vbulletin->userstats['newusername']; $newuserid = $vbulletin->userstats['newuserid']; Any ideas? |
#2
|
|||
|
|||
Try using this variable:
HTML Code:
$totalonline |
#3
|
||||
|
||||
Unfortunately $totalonline is not available as a global variable I can access in CMPS. Which is why CMPS has it's own PHP modules that build this data. I only want the current online user count so I was hoping for a clean and easy way to obtain the number. It looks like I'm going to need to run a bunch of code to get it done.
|
#4
|
|||
|
|||
nighteyes: Here you go, take a look at this, you might get what you want from this thread I found on vbadvanced.com: http://www.vbadvanced.com/forum/show...t=$totalonline
EDIT: 1 more link for you to check out: http://www.vbadvanced.com/forum/show...t=$totalonline Both of those should provide you with the necessary code, short code possibly, to achieve what you want. Let me know and I'll try to find a shorter way to pull total online users. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|