![]() |
Microstats (only for admin) - load times, server loads, queries, uncached templates!
Version 1.0 - works for most servers
Updated 1.1 - optimized code Updated 1.2 - added names of uncached templates! Okay, the original was by TECK. This is NOT based on his code - it is based on vB3's native code. If TECK wants me to remove this, I will do so. This is just my version that I use for my private forums. Information shown: 1) Page loading times 2) Number of Queries 3) Server Loads 4) Number of Any Uncached Templates 5) Name of Uncached Templates (NEW!) By default only an Admin (usergroup 6) can see it. Feel free to modify this bit. It's very easy to install. Open includes/functions.php: Find: PHP Code:
Version 1.2 - more optimized but requires /proc on your server - try this, if server loads don't show up use Version 1.02 below PHP Code:
Version 1.02 - Use this if Version 1.1 doesn't work for you. PHP Code:
Done! As simple as that. No need to enable debug mode. If you want only yourself to have this information, change: if ($bbuserinfo[usergroupid]==6) { to if ($bbuserinfo[userid]==1) { And replace 1 with your userid. To let everyone see it, remove that line, and the last } of the code above. Below is a screenshot of how my forumhome microstats look. :) EDIT: Thanks to kmike, I optimized the code. This should lessen the load when checking the server loads slightly. Version 1.2 and 1.02 now has added code to show NAMES OF UNCACHED TEMPLATES! :) |
Interesting ... I might use this
- DestinyIslands |
Alright sweet, this should help out in lookin at page loads and such
/me clicks install MGM out |
Whoohoo. Will install :) Thanks Erwin!
|
thanks Erwin.
|
Wow Erwin's on a modding spree :p Nice one :)!
|
Nice job erwin!
|
Oooo, installed it right away.
|
Nice and easy!
THX |
If you are getting 2.55 is that bad for server load? I am on a shared server is that ok as it is shared or is that still bad?
EDIT: Actually server load seems to stay around the 2.0 range. |
Quote:
|
There were 9 but I was the only registered user on the rest where bots I'm guessing although I didn't check.
|
Nice job. :) Thanks!
|
Are 26 queries for forumhome too bad?
|
Quote:
|
Quote:
|
Quote:
|
How many queries does a normal non-modded forumhome page have?
I am going to upgrade to RC2 and then install the hacks again... |
The normal install at least for me has 8. Today I was look though and I have 8 people on my forums me and 8 guest 7 of which are bots and my server load shows up at 5.01 I am running on a shared server but still 5.01 still sounds a little high does it to you all? Should I report this to my host?
|
Quote:
|
How exactly would I adjust this so ANYONE can view it, not just admins?
|
Quote:
PHP Code:
|
Actually if you know what I'm talking about just take the frist if line out and then delete the } at the very end before the comment. That will do it I will work on that post although I have no clue why that happened might be a bug.
EDIT: I fixed the post above when I copied Erwin's code it came though with the color on it as well in the WYSISWG and it left it on there as well and then when I changed everything to black it didn't work but in the end I got it fixed. |
Could you add gzip stats to it? please!
|
Quote:
Is for a reason I released originally this hack part for admins only... Hope, this helps. PS. Yes Erwin, you have my permission to publish any modifications for MicroStats and port it to VB3 software. Thank you for asking. |
Nice hack Erwin! Great to have while developing my vbWar 3.0. Thanks!
|
Ahh, so this and even the one for vB2x were server killers, TECK? :)
I honestly never saw a difference in the server hmm. I guess I can just set it up for admins to view if so... Serge: Thanks for that help tho, much appreciated. |
Thanks Erwin,
nice & easy:squareeyed: |
Page generated in 0.25738 seconds with 12 queries (3 queries for uncached templates)
Ok.. call me a knob if ya want, but what is the '3 queries for uncached templates' part trying to tell me? I'm presuming its something I need to fix. |
Quote:
|
Quote:
all I've done is PHP Code:
|
Quote:
|
Works great!
Code:
Page generated in 0.09473 seconds with 8 queries [Server Loads: 0.00 - 0.02 - 0.07] PHP Code:
|
thanks Erwin very nice & easy
L. |
Maybe you should phrases for this hack, by the way :D
|
* clicks install*
|
just the hack i was looking for ^^
|
Parse error: parse error in /home/xxxxx/public_html/xxxxxx/includes/functions.php on line 1782
Fatal error: Call to undefined function: is_browser() in /home/xxxxxx/public_html/xxxxxx/global.php on line 59 =/ |
Don't edit functions.php with Dreamweaver.
|
Quote:
argh. thanks a bunch for the heads up! that is like....the only thing i use :S can you suggest an alternative please? |
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:
|