![]() |
Total Number of Users Online Now on Every Page
Again, all credit goes to Chen for the original hack.
I've merely modified it, so that two extra queries are saved on forumhome - there's no point running the queries again since index.php has already calculated it. This hack modifies 1 php file and 2 templates. It's easy. Using my method, you save yourself 2 queries on forumhome. We use this at vB.org too. ;) Instructions in the HTML file zipped below. |
Am I fast or what? Anyway.. I'm installing this one too since I installed it for vb2. If needed, I might just use users online to save myself a query.
You can also use $headerusers and $headerguests in the templates as well correct? As in there are $headerusers users and $headerguests guests online. |
Nice work Erwin, I used the original until recently. When I eventually move over I shall definitely install this.
|
Nice!! I'll definetily use this!
/me clicks Install MGM out |
Thank You Erwin For Sharing !!! It's Installed.
Destee |
Erwin, does this handle private and password protected forums, too? I have an area on my site that is password protected as well as private and if you are in there, it only shows I user online no matter how many there are online. Any way to fix that?
|
Quote:
|
Quote:
|
So far so good.
|
I found the problem. I had put the code in the navbar instead of the header. Apparently although the navbar shows up on every page, something messes it up when you go into any threads.
|
All times are GMT. The time now is 03:22 AM. |
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:
|