The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Display Online Users Count Everywhere (vB 4) Details »» | ||||||||||||||||||||||||||||||
Display Online Users Count Everywhere (vB 4)
Developer Last Online: Oct 2021
Description: This mod will add online users count info to any vBulletin page.
Example: Quote:
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>{vb:raw msxtotal}</b> users online ({vb:rawphrase x_members_and_y_guests, {vb:raw msxmembers}, {vb:raw msxguests}}) <!-- / Display Online Users Count --> Edit Get Online Users Count plugin and change 'navbar' with the template name. vBulletin 3.8.x version is here: https://vborg.vbsupport.ru/showthread.php?t=239361 Download Now
Show Your Support
|
Благодарность от: | ||
rodriiverduguez |
Comments |
#22
|
||||
|
||||
A version with threads and posts would be great.
|
#23
|
|||
|
|||
Also ich bastel jetzt schon mehrere Tage an dem Teil und bekomme es NICHT nach ganz oben geschoben. Vielleicht hat ja einer eine Info für mich wie das geht.
Ausserdem bekomme ich auf der Startseite NIE die Useranzahl angezeigt und manchmal auch falsche Werte (so werde ich z.B. manchmal gar nicht angezeigt). Irgendwie ist das Teil nicht wirklich ausgereift - die Idee finde ich aber schon mal gut. Liebe Grüsse: Tammy Ps. Hoffe hier können auch einige Deutsch lesen - Englisch kann ich nämlich kein Wort. Also Sorry. |
#24
|
|||
|
|||
I did all the modification needed, and I changed the Hook to be global_start since I put it in the header, but It does not get the counters. You can see an example on www.thesims3.it on the top header.
Any idea? |
#25
|
|||
|
|||
Yes I did but still no results.
Here is the code I added in the header template: Code:
<!-- Display Online Users Count --> <b>{vb:raw msxtotal}</b> utenti online ({vb:rawphrase x_members_and_y_guests, {vb:raw msxmembers}, {vb:raw msxguests}}) <!-- / Display Online Users Count --> Code:
// get online users $datecut = TIMENOW - $vbulletin->options['cookietimeout']; $guestsarry = $db->query_first("SELECT COUNT(host) AS sessions FROM " . TABLE_PREFIX . "session WHERE userid = 0 AND lastactivity > $datecut"); $membersarry = $db->query_read("SELECT DISTINCT userid FROM " . TABLE_PREFIX . "session WHERE userid <> 0 AND lastactivity > $datecut"); $msxguests = intval($guestsarry['sessions']); $msxmembers = intval($db->num_rows($membersarry)); $msxtotal = $msxmembers + $msxguests; vB_Template::preRegister('header',array('msxtotal' => $msxtotal, 'msxmembers' => $msxmembers, 'msxguests' => $msxguests)); // get online users Execution order: 5 Plugin is active. But still no results, as you can see... any hint? |
#26
|
|||
|
|||
Well.. it seems working now... but I did not edit anything... wtf? :P
|
#27
|
|||
|
|||
Great. That happens to me sometimes - either I was looking at the wrong style, or I forgot to enable the plugin, or something.
|
#28
|
|||
|
|||
I donnow why now it works everywhere but in the home page (Http://www.thesims3.it) .. any idea?
|
#29
|
|||
|
|||
Up, anybody has an idea? It's so strange that it works everywhere but the home...
|
#30
|
||||
|
||||
nice mod, I'd add this to my forum if I was running vb right now
I'll keep it in mind for clients Thanks for sharing! |
#31
|
|||
|
|||
Two queries, bad.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|