Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Microstats - load times, server loads, queries, uncached templates Details »
Microstats - load times, server loads, queries, uncached templates
Mod Version: 1.2.1, by ShiningArcanine (Member) ShiningArcanine is offline
Developer Last Online: Oct 2008 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (28 votes - 4.68 average) Installs: 683
Released: 11 Jun 2005 Last Update: 09 Jun 2006 Downloads: 1450
Not Supported Uses Plugins  

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Microstats (only for admin) - load times, server loads, queries, uncached templates! Erwin vBulletin 3.0 Full Releases 270 02 Mar 2009 10:16

Comments
  #2  
Old 11 Jun 2005, 12:43
WiBu WiBu is offline
 
Join Date: Feb 2005
I don't like the way the public see the stats, even if it is only queries and page load. Oh well, edited it to my liking.
Reply With Quote
  #3  
Old 11 Jun 2005, 14:28
Logikos Logikos is offline
 
Join Date: Jan 2003
Good work ShiningArcanine!
__________________
Full Time PHP Developer
Please feel free to contact me if you have any paid work to be done.
Reply With Quote
  #4  
Old 11 Jun 2005, 14:41
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Nice work!
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #5  
Old 11 Jun 2005, 14:48
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Even as admin I am only seeing:
Page generated in 0.06230 seconds with 9 queries

All other versions of MS have worked out of the box on my server. Any ideas?
__________________
Hi.
Reply With Quote
  #6  
Old 11 Jun 2005, 15:00
Svenna Svenna is offline
 
Join Date: May 2005
Real name: Sven
nice job ShiningArcanine
Reply With Quote
  #7  
Old 11 Jun 2005, 16:16
mOdEtWo mOdEtWo is offline
 
Join Date: Dec 2003
I was waiting for this one.
Reply With Quote
  #8  
Old 11 Jun 2005, 16:26
ShiningArcanine ShiningArcanine is offline
 
Join Date: May 2003
Originally Posted by RMS-Chef
Even as admin I am only seeing:
Page generated in 0.06230 seconds with 9 queries

All other versions of MS have worked out of the box on my server. Any ideas?
Is that your primary usergroup? Does the administrator usergroup have 6 as its id on your forums? This is probably a stupid question but what version of vBulletin are you running?
Reply With Quote
  #9  
Old 11 Jun 2005, 18:51
Jenta Jenta is offline
 
Join Date: Dec 2004
gj, this is one hack i have installed on 3.0.7
now i need about 5 more converted so i can upgrade

im really starting to like this plugin idea
Reply With Quote
  #10  
Old 11 Jun 2005, 19:46
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Originally Posted by ShiningArcanine
Is that your primary usergroup? Does the administrator usergroup have 6 as its id on your forums? This is probably a stupid question but what version of vBulletin are you running?
It's just a fresh install of v3.5 beta 1. Nothing other than this plugin has been done except for some styles I have ported over. I get the same result on the untouched default style as well as the 3 I have moved over to 3.5.
I as the admin am the only member and yes, Admin is default group 6.

EDIT:
I even took out

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and still get the same result. Wierd. It must have something to do with my server config? I have the vB3x version running fine on 2 other boards www.StaticServer.com (only admins can view) and my main board at www.Chefhost.com where you should see limited stats as unregistered.
__________________
Hi.

Last edited by RMS-Chef; 11 Jun 2005 at 19:57.
Reply With Quote
  #11  
Old 11 Jun 2005, 23:11
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Real name: Tim Yarbrough
Are you on windows? Windows wont show server loads. Also can we get debug info and gzip level in here for admins?
Reply With Quote
  #12  
Old 12 Jun 2005, 03:04
ShiningArcanine ShiningArcanine is offline
 
Join Date: May 2003
Originally Posted by eXtremeTim
Are you on windows? Windows wont show server loads. Also can we get debug info and gzip level in here for admins?
Debug Information? What debug information are you proposing?

As for gzip, I'm not sure if it can be accurately detected as it can be enabled via .htaccess.
Reply With Quote
  #13  
Old 12 Jun 2005, 05:04
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Originally Posted by RMS-Chef
Are you on windows? Windows wont show server loads.
No, it's a Linux machine.
Like I said, I have the vB3.x.x version running fine on my public board.
__________________
Hi.
Reply With Quote
  #14  
Old 12 Jun 2005, 05:23
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Real name: Tim Yarbrough
You need to redo this part right here.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Like me im on windows so I dont have proc meaning that I dont get to see any of the admin stats becuase of the way you have it laid out.
Reply With Quote
  #15  
Old 12 Jun 2005, 05:34
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Real name: Mike
Works like a charm! Thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 01:30.

Layout Options | Width: Wide Color: