Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBMicroStats Details »
vBMicroStats
Mod Version: 1.1.0, by TECK (Member) TECK is offline
Developer Last Online: Aug 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.5 Rating: (16 votes - 4.94 average) Installs: 278
Released: 25 Feb 2007 Last Update: 03 Mar 2007 Downloads: 2390
Not Supported Uses Plugins Template Edits Code Changes  

This hack will add at the bottom of each vBulletin (powered) page, the statistics listed below.
Also, it will help you troubleshoot and optimize your vBulletin board by viewing or comparing PHP/MySQL options and other statistics that are normally hidden in your forum pages.

Regular Users:
• Load time of specified page in microseconds
• Number of queries executed
• PHP percent page usage
• MySQL percent page usage

Administrators Only:
• Active users browsing the forum (members and guests) new in 1.1.0
• Server memory usage per page (in Kb)
• Display DEBUG mode status
• Browser GZIP library compression status
Server average loads
• Uncached templates (useful to troubleshoot the code)

The code modifications were tested into a clean installed vBulletin board. They work 100%.
The hack was tested in vBulletin 3.6.4 and 3.6.5.
If you want to test it into a lower version (3.6.x), let me know.
Also, if you encounter any problems, feel free to post your questions here.

Step by step install instructions are posted into readme.html file.
In order to perform an efficient modification of your files, I recommend you to use Komodo Edit or Textpad.
Both editors will allow you to complete all steps without any coding errors.

The code changes are very safe and designed not to interfere in any way with the vBulletin performance/functionality.
Make sure you modify, save and upload one file at the time to your server.
Then, simply run the product-vbmicrostats.xml file.

The PLUGIN itself is DISABLED by default.
This was done in order to make sure you properly edit your code first and to avoid surprises.
You will need to enable it, once your code modifications are completed:
Plugins and Products > Manage Products > vB Microstats > Enable (dropdown)
Then, go to your vBulletin Options, click on BB MicroStats setting group and set all your options.

Upgrade to version 1.0.2.
Upgrade to version 1.0.3.
Upgrade to version 1.1.0.

Want to be a guinea pig and try this hack into a higher vBulletin version?
Post your results, so others can read your feedback.

Download Now

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

Screenshots

Click image for larger version

Name:	microstats.jpg
Views:	4546
Size:	22.4 KB
ID:	61365   Click image for larger version

Name:	microstats_templates.jpg
Views:	3905
Size:	33.1 KB
ID:	61366   Click image for larger version

Name:	microstats_admin.jpg
Views:	1647
Size:	77.9 KB
ID:	61368  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vBMicrostats TECK vBulletin 3.5 Add-ons 258 25 Feb 2007 21:44
vbMicroStats: page load time, queries, GZIP and PHP version TECK vBulletin 2.x Full Releases 942 15 Jan 2005 00:43

  #31  
Old 26 Feb 2007, 03:47
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Mr. F, welcome back.
Reply With Quote
  #32  
Old 26 Feb 2007, 03:50
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
Originally Posted by Smoothie View Post
Mr. F, welcome back.
Thanks.
Originally Posted by ncweb View Post
Any Ideas on this; it happens on both my winXP and CentOS 4.4 dev box. Has anyone else seen results like this? I'd provide some details of my LAMP setup but don't know what would be helpful. I was getting normal results before and this has me scratching my head
Yes, you need to replace ONLY the very last one.
Will update the readme file.

About the negative values, is all related to server time clock, microtime(). It's a confirmed bug.
Freddie (vB dev) managed to reproduce the bug but did not released a fix.
Since I use the vB core functions, this error is reflected into your time, if you are not lucky.

Read more here:
http://www.vbulletin.com/forum/bugs3...iew&bugid=2481
Reply With Quote
  #33  
Old 26 Feb 2007, 03:57
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
Thinking out loud, what PHP version you have? I have 5.2.1, working perfectly here:
http://67.68.90.79/forum/
Reply With Quote
  #34  
Old 26 Feb 2007, 04:08
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Originally Posted by TECK View Post
Reeve of shinra is checking my thread, as I type.
Good to see you, old school friend.
Sup man! Its been ages since we last chatted so im gonna hijack your thread! how you been?


The stats are awesome, this has always been one of my favorite mods.

Things are working like a charm but I forgot that I had an older version (1.0.5) installed. I didn't choose to over write and I have two options in the admincp for the mod. No biggie, I disabled it for now and will probably uninstall later when I do a backup. Just thought I'd point that out if anyone else runs across it.
Reply With Quote
  #35  
Old 26 Feb 2007, 04:11
ncweb ncweb is offline
 
Join Date: Feb 2007
Originally Posted by TECK View Post
About the negative values, is all related to server time clock, microtime(). It's a confirmed bug.
Freddie (vB dev) managed to reproduce the bug but did not released a fix.
Since I use the vB core functions, this error is reflected into your time, if you are not lucky.

Read more here:
http://www.vbulletin.com/forum/bugs3...iew&bugid=2481

Looks like the bug referenced at http://www.vbulletin.com/forum/bugs3...iew&bugid=2481
never got fixed in 3.6.x.

Originally Posted by TECK View Post
Thinking out loud, what PHP version you have? I have 5.2.1, working perfectly here:
http://67.68.90.79/forum/

I'm running PHP 4.4.4; I saw on http://67.68.90.79/forum/ that the mysql % was higher than that of php. If that basically a default install then I guess that’s normal. Thanks for your time and the replies TECK
Reply With Quote
  #36  
Old 26 Feb 2007, 04:12
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
Originally Posted by ncweb View Post
I'm running PHP 4.4.4; I saw on http://67.68.90.79/forum/ that the mysql % was higher than that of php. If that basically a default install then I guess that’s normal. Thanks for your time and the replies TECK
Ya, is normal. The easiest way to see if you have the stats right is to enable the debug mode, the do an explain. Look at the time spent to do PHP and MySQl things, they are pretty balanced.
Those times reflect the percentage. You will also see there negative results, so that should answer your questions related to the vB bug.

Let's take an example shall we?
http://67.68.90.79/forum/showthread.php?t=1
Page generated in 0.13296827 seconds (61.87% PHP - 38.13% MySQL) with 9 queries
And the Explain:
Page generated in 0.13317393951416 seconds with 9 queries, spending 0.011376857757568 doing MySQL queries and 0.12249708175659 doing PHP things.

Glad I could help.
Originally Posted by Reeve of shinra View Post
Sup man! Its been ages since we last chatted so im gonna hijack your thread! how you been?
Good to see you to Reeve. Trying to make people happy, since many wanted the microstats for 3.6.4.
I remember when people used to queue on your board for your hacks... good times.
If you feel like talking on MSN, drop me a PM, I'll send you the ID.

Last edited by TECK; 26 Feb 2007 at 07:49.
Reply With Quote
  #37  
Old 26 Feb 2007, 04:29
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Real name: Jack
Thanks for updating this m8
__________________
cobraws
Reply With Quote
  #38  
Old 26 Feb 2007, 04:56
Lizard King's Avatar
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Real name: Mert
Thanks for updating this after my request Floren

It is also nice to see you back alive at vb.org
__________________
Mert Gökçeimam / Crawlability Inc.

DepKaç | vBSEO 3.3.0 - vBulletin Search Engine Optimisation
Reply With Quote
  #39  
Old 26 Feb 2007, 10:20
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Real name: Atakan KOÇ
Nice. Thanks.
__________________
vBulletin 5 : http://www.atabb.com/
Reply With Quote
  #40  
Old 26 Feb 2007, 10:22
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Real name: Call me X
0KB Used | DEBUG Mode OFF | GZIP ON (level 1) | 0.54 : 0.59 : 0.55 | NO Uncached Template
I have turned debug on in ACP options but it does not show on the forum.
Reply With Quote
  #41  
Old 26 Feb 2007, 11:03
maxicep maxicep is offline
 
Join Date: Oct 2006
thanks nice hack,
i got a question how we uncached templates to cached ?
Reply With Quote
  #42  
Old 26 Feb 2007, 12:19
blockbusted's Avatar
blockbusted blockbusted is offline
 
Join Date: Apr 2006
Location: Indiana, USA
Thanks for update.
Reply With Quote
  #43  
Old 26 Feb 2007, 13:11
Pyrix Pyrix is offline
 
Join Date: Jul 2004
Can I suggest a small change?

Change '{microstats}' to '<!--{microstats}-->' in the template and in the str_replace in the plugin.

This way, on pages where the vb footer is used but it's not designed 'for' vbulletin (for example photopost, mediawiki) it doesn't leave the text {microstats} breaking your table, as it sees it as a comment.

It's what I've done on my site and it works a lot better.

Ollie
Reply With Quote
  #44  
Old 26 Feb 2007, 14:17
abramelin's Avatar
abramelin abramelin is offline
 
Join Date: Mar 2006
i dont want regular users to see anything, what must i do?
Reply With Quote
  #45  
Old 26 Feb 2007, 18:05
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Oh my god! I have been dying to see this hack to be ported over to 3.6.x. Hehe thank you very much, TECK, and welcome back of all sudden!
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


New To Site? Need Help?

All times are GMT. The time now is 14:50.

Layout Options | Width: Wide Color: