![]() |
Quote:
2. go to bottom above eval('$navbar = "' . fetch_template('navbar') . '";'); 3. put echo " "; 4. open includes/functions.php 5. find exec_shut_down() 6. at bottom, of function place echo "Queries: $query_count <br />"; 7. there you go. At the bottom the other queries hack is from erwin/teck, but like i said theirs doesn't count shutdown queries.. And without my small mod, the number to the right will show 9 everytime, instead of 8. |
Update;
Scripts whosonline and misc, are allowed to update page. |
If you want to confirm when this query is being run, just add:
Code:
echo "."; Code:
$DB_site->shutdown_query(" Which means the query on the line after it disappears too. This hack is pretty neat and will help to shave this unneeded query. If you have a large board 200+ users online the it's a good hack to install. And no, it doesn't add queries anywhere :) Whilst TrigunFlame is on a roll we should point him towards the index page to see if he can miraculously find some way of improving that too... I'm down to 0.06 seconds generate time... but I know it can be lower ;) |
please edit this, a if else if is not really appropriate... just change the first one:
PHP Code:
|
Quote:
PHP Code:
|
nevermind ;)
just installed :) |
http://www.vbulletin.com/docs/html/codestandards_and_or
You're using || ;) Nice hack by the way, very usefull for big boards. /me installs |
Lord above, I never knew that file existed or that vBulletin had coding standards!
I now fear for my own hacks if standards police are going to come knocking ;) |
Hehe ;).
It's a very usefull file, nice to read through it when you are bored :p. Many authors make this mistake, but I just happened to notice it while scrolling his code. |
Quote:
I prefer using || instead of OR; They just suggest using it for readability, in PHP Documentation, it does not matter. |
All times are GMT. The time now is 08:16 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:
|