vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbMicroStats: page load time, queries, GZIP and PHP version (https://vborg.vbsupport.ru/showthread.php?t=35811)

TECK 03-06-2002 10:00 PM

vbMicroStats: page load time, queries, GZIP and PHP version
 
[high]Looking for VB3 version? Is here.[/high]

This hack will add at the bottom of each vBulletin(powered) page the following stats:

- load time of specified page in microseconds (with custom no. of digits to show)
- number of queries executed
- server GZIP library compression status
- vBulletin DEBUG mode
- PHP version
- PHP percent page usage
- MySQL percent page usage
- Server Load
[high]This is not only estethic, it will also help you troubleshoot any wierd queries that you have in your scripts.
The hack is template based so you can edit it the way you want in few seconds.[/high]
NOTE: From users experiences, this hack will work only with PHP 4.0.6 or higher. Let me know if it works with a lower PHP version.

THE FIX FOR VB2.3.0 IS HERE.

HACK UPDATES
Version 2.1
------------------------------------
Changes:
- added Server Load

NOTE: I spoked with Kevin 'tubedogg' from vBulletin Support team and he explained to me that not all the servers are configured to support the [high]@exec("uptime")[/high].
Contact your host for more details and ask them about this issue.
For a full explanation of your 3 server load values, read more here.

*If you want to have the stats viewable only by admins, read this post.

Version 2.0
------------------------------------
Changes:
- added vBulletin DEBUG Mode
- removed the Details link
- cleaned a little the code to match VB2.2.6
- better explanations into the install file.

Version 1.7
------------------------------------
[high]VB2.2.5:[/high]
Minor change in admin/db_mysql.php. Read more here on how to update your hack.
Minor change in forum/global.php. Read more here on how to update your hack.

Changes:
- corrected negative values on certain servers.

Version 1.6
------------------------------------
Changes:
- PHP version and GZIP library status viewable only to admin.
- added a link to Detailed Stats View (generated by vBulletin), for that specific page. Only admins can view that link.

To see how it looks a Detailed View, click here.

Version 1.5
------------------------------------
Added:
- GZIP library status is now related to your vBulletion options.
- GZIP library compression level.

Version 1.4
------------------------------------
Bugs corrected:
- GZIP library status not displayed properly on certain servers.

Version 1.3
------------------------------------
Bugs corrected:
- vbPortal display code in modules

The hack is template based now.
All you have to do is call it with the {getmicrostats} string, anywhere you want (for example in footer).
You also have the choice to install it as template based or coded directly into your functions.php file.

Version 1.2
------------------------------------
Added the PHP and MySQL page percentage.
(Addon by Chen 'FireFly' Avinadav)

Version 1.1
------------------------------------
vB.org decided to add this hack to their board. ;)

Bugs corrected:
- incorrect time load
- incorrect query count


You like this hack? Please click on the [high]Install[/high] button.
To download the latest version of this hack, click below:

TECK 03-07-2002 03:31 AM

a screenshot for vbMicrostats v2.1
look at the bottom of the page...

sleepbirdcyp 03-07-2002 03:38 AM

Great Hack

THX~

Gamingforce 03-07-2002 03:54 AM

Excellent. Works perfectly.

sleepbirdcyp 03-07-2002 03:57 AM

how abt the server loads after install this hack??

TECK 03-07-2002 04:02 AM

ther are no queries to be performed.. so the server load is null ;)

sleepbirdcyp 03-07-2002 04:25 AM

Great!

SaintDog 03-07-2002 05:54 AM

Nice one!

Going to place this on my board...tomorrow, too tired to tonight :)

SaintDog

Admin 03-07-2002 08:53 AM

This works but doesn't... it shows the wrong info. nakkid, I told you more in an e-mail, read it and understand what I'm talking about.

Floris 03-07-2002 09:36 AM

Oi, just read firefly's post .. I think I will wait for the upgrade :D

nafae 03-07-2002 09:40 AM

yes but this is a fantastic concept, hopefully the bugs will get worked out :)

Xelation 03-07-2002 10:46 AM

cool, great hack... I hope you can get the bugz fixed soon. :D

TECK 03-07-2002 12:50 PM

Quote:

Originally posted by FireFly
This works but doesn't... it shows the wrong info. nakkid, I told you more in an e-mail, read it and understand what I'm talking about.
Firefly, ok.. i know where is the problem. i didnt grabbed properly the start and end_time, i mean not from the moment the script starts until it's loaded. that's all. i will release a new version tonite, to correct this little problem, so it will show the correct load time.

regards,
nakkid.

wooolF[RM] 03-07-2002 01:14 PM

*G* hacker-waker... *G*

TECK 03-08-2002 05:02 AM

ok.. i updated the file. enjoy ;)

Admin 03-08-2002 12:07 PM

Nice going nakkid. :)

Sho 03-08-2002 01:13 PM

Nice one, thanks a lot!

Lesane 03-08-2002 02:54 PM

Great, well done Nakkid :up:

TECK 03-08-2002 03:02 PM

hmm.. firefly installed this hack on this site. thanks :)
he also made an interesting mod to if to show the %. i will add that mod to the hack (with proper credit, of course).

sHORTYWZ 03-08-2002 03:23 PM

I run an IIS server and even though my page is using gzip compression it is showing as disabled with this mod... any ideas?

TECK 03-08-2002 03:33 PM

the gzip variables are called properly. check your server config.

regards,
nakkid.

Admin 03-08-2002 04:26 PM

sHORTYWZ -- have you added $gziptext to the string? It's not there by default.

ptbyjason 03-08-2002 04:44 PM

thanks nakkid :D

dyt4 03-08-2002 05:27 PM

how can we display 71.11% PHP - 28.89% MySQL ???

thx

Xelation 03-08-2002 05:30 PM

Great Hack! :D I'll install at soon as I have time!

sHORTYWZ 03-08-2002 05:35 PM

Yeah I actually did Firefly and it showed disabled.. shrug - I don't really want it there anyways =)

TECK 03-08-2002 05:44 PM

Quote:

Originally posted by dyt4
how can we display 71.11% PHP - 28.89% MySQL ???

thx

i will mod the hack tonight... before i live in my honey moon.. did you checked The Lounge? ;)

Quote:

Originally posted by sHORTYWZ
Yeah I actually did Firefly and it showed disabled.. shrug - I don't really want it there anyways =)
the browser check to see if the server have GZIP enabled. if it is, it will show it as enabled.

Gamingforce 03-08-2002 07:01 PM

Hey Nakkid, how would you uninstall the first version? Do you have the original text file?

I get an error with global.php about unable to get function microstats().

TECK 03-08-2002 07:11 PM

i dont have the original version.. but i will make one.. is really easy.. :) as soon as i go home i will email you.
for now search for $microstats and delete those lines.. they must be under $footer

regards,
nakkid.

nafae 03-08-2002 07:17 PM

Hmm Nakkid I am not sure what is wrong here, but I get the following error:

Code:

Parse error: parse error in /home/coderfor/public_html/admin/functions.php on line 2109

Warning: Cannot add header information - headers already sent by (output started at /home/coderfor/public_html/admin/functions.php:2109) in /home/coderfor/public_html/admin/functions.php on line 1553

Any ideas?

TECK 03-08-2002 07:21 PM

you called twice the headers. check your code. what vB version you have? this was tested only in 222 and 223.

regards,
nakkid.

nafae 03-08-2002 07:25 PM

its 222... I'm not sure where to check for this...

TECK 03-08-2002 07:36 PM

function dooutput()... do you still have your original file before you edit it? follow the install steps exacly and you will do great. probably you copied an extra line in there.

let me know.

nafae 03-08-2002 08:02 PM

Alright, thanks Nakkid i got it working, When copying I had missed a few characters lol -Thanks again, hack looks great.

TECK 03-08-2002 08:06 PM

dont worry it happens to everyone ;)
i'm glad you like it.

freakyshiat 03-08-2002 08:14 PM

i need to uninstall the first one. can u post that one?

TECK 03-08-2002 08:16 PM

Quote:

Originally posted by Fazle
i need to uninstall the first one. can u post that one?
i'm at work now. i will post the uninstall as soon as i get home. you should always save the readme files related to any hacks.

regards,
nakkid.

freakyshiat 03-08-2002 08:25 PM

I saved the readme, but its at home :p

okrogius 03-08-2002 08:26 PM

Quote:

Originally posted by FireFly
sHORTYWZ -- have you added $gziptext to the string? It's not there by default.
What string?

dyt4 03-08-2002 08:37 PM

Quote:

Originally posted by nakkid
i will mod the hack tonight... before i live in my honey moon.. did you checked The Lounge? ;)

the browser check to see if the server have GZIP enabled. if it is, it will show it as enabled.

thx again for all :)


All times are GMT. The time now is 09:35 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
  • Page Generation 0.04229 seconds
  • Memory Usage 1,810KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete