![]() |
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.
|
When I add the fetch template header in the index.php, it makes the top line for the bbinactive to not show up on forumhome. It will show up on other pages, just not forumhome. If I take that out of the index.php, then it shows up again. Any way to fix that?
|
That's weird!
When ever I'm trying to add this on my top of my "phpinclude_start" template, I get a database error. Add this on top of my phpinclude_start temp Quote:
Quote:
Many thanks in advance.. |
Quote:
|
Quote:
|
Quote:
BTW, I noticed whenever I'm trying to check/repair my db, I got this line:- [code]soccerwi_soccerforum.soccerwi_soccerforumsession error : The handler for the table doesn't support check[/b] Any ideal why I got this? thanks |
Hi, I installed this hack (really cool btw) but the home page displays funny, although all the other pages display fine. Can you tell me what I did wrong? You can see the home page at http://doggiedoor.com/forums/index.php?
Thanks, Brandy :classic: |
3.0 Gold here, I get a blank page on index.php and forum.php (which I use as my main page) with this installed.
|
Tim, have you noticed that the board closed line doesn't show at the top of the forumhome when the baord is closed? It shows at the bottom but not at the top for me. Have you run into anything like this?
|
I've uninstalled this now... Sorry. :)
For me I've always had it top and bottom. |
Where did you have the code in the index.php? Maybe that's where I messed up.
|
My problem was fixed. I had my own variable named "$header" and this hack uses that variable name. I needed to change my variable to a different name.
Now it works, thanks! Brandy |
As far as I'm aware I had it where the instructions stated... If I remember rightly above the call of the navbar template.
I did also put it in the php include template (at the top) with my existing code below it, my existing code in that template is: Code:
// Example of how to include a seperate file: |
Got it! There is a line break in the code to be inserted due to your html file, I do run 1280.1024 but still missed it. ;)
|
installed without a hitch :D
|
I found out at your hack have error for this one:
'forumhome_subforumseparator_post' ); Replace with: 'forumhome_subforumseparator_post', 'header' ); The correct one should be this: 'forumhome_subforumseparator_post', 'header', ); |
Have a question: In #3 of the instructions it says to edit the header. Do you copy the header_include code and insert in there (and where)?
Thanks! Chris |
The number isn't showing up, why?
|
Nevermind -- forgot to upload the index.php file lol
|
Quote:
PHP Code:
|
first off, this hack rocks. it's perfectly elegant.
i've updated to 3.04 and it works fine. it also works on my vba cmps pages, but i think that may have to do with some of the other modules on it. however, i just uploaded the vba links directory hack. the links.php or main page resides in a subforum called links. for the life of me, i cannot get the number of online users to show up on the links.php page. help!! this makes my forum look totally non-uniform. i've already had to input $vboptions[bburl] (or something like that in front of every link because of the subforum issue. is there anything that can be done to make this hack work on subforum pages as well? -yinyang |
Worked like a charm, thanks! :)
|
Very easily added to VB3.06 running on CMPS1.01 and working fine - thank you!
|
Meant to ask if there is an easy way to add a line so it will show the sigma chat online users as well? Obviously, I have hacked that in to Who's Online already, but I am having trouble adding it to the CMPS index - this would solve that problem for me.)
Thanks in advance if someone can lend a hand here. |
Any port of this hack?
|
anyone know of this mod being ported to 3.5
|
anyone?
|
I'm interested in this hack... I think it should be pretty easy to import to 3.5....
can a nice coder please help? |
anybody?
|
I'm actually looking for something like this for 3.7.... great idea....
|
All times are GMT. The time now is 04:50 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:
|