The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Microstats - load times, server loads, queries, uncached templates Details »» | |||||||||||||||||||||||||||
Microstats - load times, server loads, queries, uncached templates
Developer Last Online: Nov 2023
This is a derivative of Erwin's microstats hack for vBulletin 3.5.0's plugin system. The main difference is that by default it shows the page generation time and query count to the public. Server loads and Uncached Queries are shown only to administrators.
I had sent this to Erwin so he could release if he wanted to but instead he told me that I had permission to release it; hence why I am releasing it. This should work with vBulletin 3.5.0 RC 1 through vBulletin 3.6.1 and later. Installation is very simple. Just import the plugin via vBulletin's "Download / Upload Plugins" page in the Plugin System in the Admin Control Panel and you're done. I'll try to correct any bugs that you find. Let me know if you like this plugin and don't forget to click the install link if you install this. Optional config.php Variables $config['Microstats']['replacementvariable'] Setting this variable will make microstats place its data before any instance of whatever you set this variable to. Be careful with this as you might see microstats in mutiple places. My suggestion is to use a unique comment in the HTML source to prevent any issues. E.g. $config['Microstats']['replacementvariable'] = '<!-- display microstats here -->'; $config['Microstats']['adminonly'] Setting this variable to anything will make microstats display itself only to administrators. E.g. $config['Microstats']['adminonly'] = true; Update History Product File: Uploaded a product file that replaced the plugin file. Version 1.2.1: Fixed a bug that broke optional config.php settings Version 1.2.0: Added OpenBSD, FreeBSD and NetBSD support; added Replacement variable setting in config.php; added Display only to Administrators Setting in config.php; fixed bug affecting Linux/Unix servers that have exec('uptime') support and not /proc/loadavg support Version 1.1.0: Added names of uncached templates, included a bugfix for people who don't have proc avaliable on their system and made the code look a little nicer as well Version 1.0.1: Bugfix for Windows users, sanitized the code to make it look nicer Version 1.0.0: Initial Release Show Your Support
|
Comments |
#282
|
|||
|
|||
Have you checked the HTML source to make sure that the comment is being sent to the browser?
|
#283
|
|||
|
|||
Quote:
|
#284
|
|||
|
|||
Yeah nevermind...I have no idea why (unless 3.6.1 fixed something?) but it works fine with the variable now.
|
#285
|
|||
|
|||
This is probably a dumb question but I'm trying to make this mod display to admins only.
I do not see: $config['Microstats']['adminonly'] in here: plugin manager --> microstats --> edit I found something close, but not exact & tried changing it and got errors. Any help would be much appreciated. |
#286
|
||||
|
||||
Quote:
Open ./forum/includes/config.php & put this code anywhere above ?> Quote:
|
#287
|
|||
|
|||
Thanks for you help, Icy... that worked.
I viewed this thread and kept seeing config.php but was thinking it didn't come with the modification, lol... didn't realize they meant vb's config file. |
#288
|
||||
|
||||
Microstats! lol - I searched for everything but! I've been looking for this for a while . . . *Installed* and a it's very, very helpful tool. Thank you.
As for the "Modification Questions" forum, where I posted my original request for info on this (and got no reply) . . maybe they should take a lesson from IPB, since it was one of their users that told me where to find this! 3 words was all I needed: "search for microstats" - but did the folks here bother to tell me? 3 words to help someone out, and no-one could be bothered - that sucks. Anyway, thanks again to ShiningArcanine for this hack - it's much appreciated. |
#289
|
||||
|
||||
Page generated in 0.19277 seconds with 21 queries (1 queries for uncached templates) [Server Loads: 2.47 2.13 : 2.23]
Uncached templates: groups_usercp_groupsbits (1) I get this when in usercp, is that bad? (The bit in red) |
#290
|
|||
|
|||
Quote:
tip: Read this tutorial [How-To] Cache Templates |
#291
|
||||
|
||||
3.6.1 compatible?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|