The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Logged in users optimization (1.0.1) Details »» | |||||||||||||||||||||||||
Note to users who have installed Xenon's Optimizing Forumhome v2.0 located here need not install this hack. Furthermore, should you wish to install that hack later on after installing this one, you will need to either uninstall it, or forego the section instructing you to modify the logged in users code.
------------- This simple hack modifies the Logged in users list on the forumhome, reducing queries by one. This is done by knocking off the extra query for guest counting and instead changing the way the while loop that is used for the logged in users list works. In other words, less queries = win. Versions of vBulletin: 2.2.x Tested on: 2.2.9 Modifications: File only (no database or template modifications) Example: http://www.otcentral.com/forum/index.php Except for the showing of one less query on the query count, you can see that the result is truly unnoticeable. Logged in users operates the same exact way as it does before the hack is made. Although there's not much that can go wrong with this hack, support will be provided in this thread and by email. Preferrably thread in case someone else runs across the same problem. Update: 12/29/2002 - 0:11 Version 1.0.1 released - Counter was still counting duplicate sessions but not displaying them. Show Your Support
|
Comments |
#2
|
||||
|
||||
nice hack. I'm going to test it on my local server
|
#3
|
||||
|
||||
looks nice, but i think it could be buggy, because you've thrown out the DISTINCT selection, which wasn't there without reason i think .
But we'll see, it's a beta, maybe everything works correct and the distinct was just a devs paranoia |
#4
|
||||
|
||||
DISTINCT is there to make sure no sessions get repeated in the logged in user list. I took that out because no matter how many guests would be there, it would only show up with the first. In its place I put a username token check to make sure the list doesn't already have the user in it.
|
#5
|
||||
|
||||
The number of users online on the index is after this mod not the same as the detaild list when you look at the locations and ip. On the index there were 20 and on the detailed list 13! So it looks there is a problem.
|
#6
|
||||
|
||||
It seems to work fine on my board. Have you applied any other hacks that affect the logged in users part of your forumhome? Can I get a link to the board you installed it on?
|
#7
|
||||
|
||||
Nevermind. I see the problem. The check which prevents duplicate sessions from showing is put outside of the registered user counter. The file is fixed, if you already installed this hack here is the code to move:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#8
|
||||
|
||||
Wow so we've found another way the vb dev's could reduce queries?
- miSt |
#9
|
||||
|
||||
Not quite yet
It appears for some mods and admins the dupe sessions are still counted and displayed. Edit: I know what I did wrong. Thank god this is only a beta hack, i would've been dead after the first bug Find this text (note: it's not its own line, there is text after it) PHP Code:
PHP Code:
Fixed the text file with the change, but didn't bother updating the version number. |
#10
|
||||
|
||||
Surely the vB devs would've thought of this for vB3, I think Kier said vB3's index.php is down to 8 queries... That's not bad considering all the info on it (number of users browsing each forum, last post title, etc)
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|