Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Microstats - load times, server loads, queries, uncached templates Details »»
Microstats - load times, server loads, queries, uncached templates
Version: 1.2.1, by ShiningArcanine ShiningArcanine is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-10-2005 Last Update: 06-08-2006 Installs: 680
Uses Plugins
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #242  
Old 05-29-2006, 04:25 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ShiningArcanine
You are probably on a Windows server. That would be normal behavior as server load averages do not exist under Windows.
No, it isn't Windows..

It used to display the server load averages when I first installed the hack. But it doesn't show them anymore .
Reply With Quote
  #243  
Old 05-29-2006, 11:59 PM
Sidewindr Sidewindr is offline
 
Join Date: Oct 2002
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BeaLzeBuB
fixed.

thanks for Lizard King and ShiningArcanine
How did you fix it?? .. I am having the same report for anotehr mod.
Reply With Quote
  #244  
Old 05-30-2006, 07:07 AM
ShiningArcanine ShiningArcanine is offline
 
Join Date: May 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eagle Creek
No, it isn't Windows..

It used to display the server load averages when I first installed the hack. But it doesn't show them anymore .
File a support ticket with your host.
Reply With Quote
  #245  
Old 06-02-2006, 05:46 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question. What does all these stats mean?

Page generated in 0,71435 seconds with 34 queries [Server Loads: 0.65 0.50 : 0.58]

Those stats are not mine, only an example.

What are good stats? What should we be really looking for? and when is it time to think about getting rid of hacks, or upgrading server.

Thanks
Reply With Quote
  #246  
Old 06-06-2006, 06:05 PM
KOKS@LN KOKS@LN is offline
 
Join Date: Dec 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Thanks for this great plugin. Installed on a vB 3.5.4 forum.
I've a problem. The stats are shown twice, one under the other on the forumhome page. The other pages are not affected by this issue.

I found out what causes this problem. In FORUMHOME template, I use a popup code for a FlatCast Radio Server. The code is as following.

Code:
<!-- FlatCast Code --->
<body LANGUAGE=javascript onload="window.open ('http://www.********.com/Player.aspx?sid=******','_blank','scrollbars=yes,menubar=no,width=900,height=600,left=0,top=0');return;"></body>
<!-- FlatCast Code --->
Even though I've changed the place of the code in the same template, the stats are still shown twice (one is shown in where FlatCast code resides).
It seems to me that the </body> tag in the FlatCast code causes the problem.

Does anybody know how to sort this out?

Thanks.
Reply With Quote
  #247  
Old 06-06-2006, 06:21 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
Question. What does all these stats mean?

Page generated in 0,71435 seconds with 34 queries [Server Loads: 0.65 0.50 : 0.58]

Those stats are not mine, only an example.


What are good stats? What should we be really looking for? and when is it time to think about getting rid of hacks, or upgrading server.

Thanks
A normal indexpage should be loaded before 1 second and should not have 'too many' query's. But that depens on the amound of hacks installed.

Server loads should not be higer then 3.0 at all time. (except when you are asking extreme things like making MYSQL dumps, etc..).
If your serverload is very high and the page load is slow this isn't immediate a problem. Only is this problem occurs every day you should consider talking to your webhost for processess going crazy, or maybe upgrading.
Reply With Quote
  #248  
Old 06-06-2006, 11:15 PM
ShiningArcanine ShiningArcanine is offline
 
Join Date: May 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KOKS@LN
Hi,
Thanks for this great plugin. Installed on a vB 3.5.4 forum.
I've a problem. The stats are shown twice, one under the other on the forumhome page. The other pages are not affected by this issue.

I found out what causes this problem. In FORUMHOME template, I use a popup code for a FlatCast Radio Server. The code is as following.

Code:
<!-- FlatCast Code --->
<body LANGUAGE=javascript onload="window.open ('http://www.********.com/Player.aspx?sid=******','_blank','scrollbars=yes,menubar=no,width=900,height=600,left=0,top=0');return;"></body>
<!-- FlatCast Code --->
Even though I've changed the place of the code in the same template, the stats are still shown twice (one is shown in where FlatCast code resides).
It seems to me that the </body> tag in the FlatCast code causes the problem.

Does anybody know how to sort this out?

Thanks.
Try removing the extra body tag. You could also try using the "Optional config.php Variable" I outlined above.
Reply With Quote
  #249  
Old 06-07-2006, 11:55 PM
eclectica eclectica is offline
 
Join Date: Sep 2003
Location: Brooklyn, New York
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some of you who are not seeing the server loads, check that you are in the usergroupid 6, which is the admin usergroup by default. But if you had made another group with a different id number as admin, the hack won't show server loads for that group. To fix that you can then edit the xml file to change the 6 to whatever your admin useridgroupid is.

Also see this post where I figured out a way to show the server loads to all usergroups:
https://vborg.vbsupport.ru/showpost.php?p=841699

Has anyone tested this hack on vBulletin 3.6? Please post here.
Reply With Quote
  #250  
Old 06-11-2006, 04:00 PM
havefun's Avatar
havefun havefun is offline
 
Join Date: Jan 2002
Location: Spain & Austria
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THX 4 it.

helped me out to find 1 plugin that made my board more
than one sec. slower
Reply With Quote
  #251  
Old 06-11-2006, 10:47 PM
eclectica eclectica is offline
 
Join Date: Sep 2003
Location: Brooklyn, New York
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Today is the one year anniversary of the modification.

This hack was updated June 9th according to the first post. Also I received an email June 9th that said the following:

Quote:
ShiningArcanine has updated their hack:

Microstats - load times, server loads, queries, uncached templates
https://vborg.vbsupport.ru/showthrea...threadid=82900

This is the update that the user gave:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I uploaded a product file of microstats today that supercedes the plugin file.

If you have the plugin installed, there is no need to upgrade as there are no changes other than the usage of the product manager.

In the event of a future release, you will want to remove the old plugin from the plugin manager and upload the new product in the product manager.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Yours,
vBulletin.org Forum team
Reply With Quote
Reply


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


All times are GMT. The time now is 08:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04932 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete