![]() |
Display Online Users Count Everywhere (vB 4)
1 Attachment(s)
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: https://vborg.vbsupport.ru/ http://img149.imageshack.us/img149/4370/snap2l.png 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 --> 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 |
I guess this could be very useful in some cases :)
|
Quote:
|
Neat mod, I can't get it to work in the header after changing navbar to header in the plugin and putting the code in the header though. Works fine in the navbar but I would prefer to have it in the header.
|
Quote:
Code:
vB_Template::preRegister('header',array('msxtotal' => $msxtotal, 'msxmembers' => $msxmembers, 'msxguests' => $msxguests)); |
Quote:
|
Weird. The site i tested is using vb 4.0.2 PL4 with vBSEO and no other mods installed. Any caching system etc enabled? Sorry for not being able to suggest solutions as i don't have vb4 :( How you tried any other templates?
Maybe another user installs this mod and tells us if it works for him in the header... |
Quote:
|
One last try... Add this code to the header template just before the last </div> to test...
Code:
<!-- Display Online Users Count --> |
Quote:
|
any demo or screenshot?
|
Any idea on how to get this working with vbadvanced as well?
Edit: figured it out, just added on Code:
vB_Template::preRegister('adv_portal',array('msxtotal' => $msxtotal, 'msxmembers' => $msxmembers, 'msxguests' => $msxguests)); |
For vBadvanced (vBulletin 3):
Open Portal Output Global Variables and add the lines below to the list: Code:
msxtotal |
Quote:
|
Thank you!
|
wanna use like this how and where i add code for it .
http://img6.imageshack.us/img6/2918/snap1sw.png |
still no luck for me too, its doesn't show anything just " Users online ( members and guests) " and it plus 2 more mysql queries
|
Quote:
It's custom design in the navbar template. @valendono Have you done the installation step two? It should work at navbar. I'm gonna install a local version of vb4 and test it in the header. |
1 Attachment(s)
Fresh vBulletin 4 installation.
I edited the plugin code (changed navbar to header) and the header template (added the HTML) and it simply worked. Check the screenshots. |
what is the possibility to add forum thread and post to it?
|
A version with threads and posts would be great.
|
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. |
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? |
Yes I did but still no results.
Here is the code I added in the header template: Code:
<!-- Display Online Users Count --> Code:
// get online users Execution order: 5 Plugin is active. But still no results, as you can see... any hint? |
Well.. it seems working now... but I did not edit anything... wtf? :P
|
Great. :) That happens to me sometimes - either I was looking at the wrong style, or I forgot to enable the plugin, or something.
|
I donnow why now it works everywhere but in the home page (Http://www.thesims3.it) .. any idea?
|
Up, anybody has an idea? It's so strange that it works everywhere but the home...
|
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! |
Two queries, bad.
|
What does each of those queries do? I want to show just the total number of users and nothing else. Also how can I make it work on the CMS?
|
edit the plugin part of "PreRegister ('navbar', array ..." by "PreRegister ('header', array ..." and it is showing in Header or wherever you want.
run 4.2.5 Google Translate |
All times are GMT. The time now is 07:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|