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 04-07-2002 04:17 AM

yes. edit properly global.php

| 1. Find this code:
+--------------------------------------------------------------------------+
if (isset($showqueries)) {
$pagestarttime=microtime();
}
+--------------------------------------------------------------------------+
|
+-----------------------------------------------+
| Replace it with:
+--------------------------------------------------------------------------+
$pagestarttime=microtime();
+--------------------------------------------------------------------------+

Legacy 04-07-2002 04:19 AM

Yup...just saw that thread.....thx

FWC 04-07-2002 04:25 AM

Quote:

Originally posted by Legacy
Page generated in 1,018,162,977.218 seconds(100.00% PHP - 0.00% MySQL) with 28 queries.
PHP version 4.1.2 (Debug mode) with GZIP library compression enabled (level 2). [details]

MySQL always comes up 0.00%...anyone know why??

You modified admin/global.php instead of global.php in the forums root directory. Take the mods out of admin/global.php and add them to forums/global.php.

TECK 04-07-2002 04:29 AM

good point FWC. although.. is indicated in the install file clearly:
Code:

+-----------------------------------------------+
| File: forum/global.php (2 changes)            |
+-----------------------------------------------+
| 1. Find this code:
+--------------------------------------------------------------------------+
if (isset($showqueries)) {
  $pagestarttime=microtime();
}
+--------------------------------------------------------------------------+
|
+-----------------------------------------------+
| Replace it with:
+--------------------------------------------------------------------------+
$pagestarttime=microtime();
+--------------------------------------------------------------------------+

:)

FWC 04-07-2002 04:31 AM

Quote:

Originally posted by nakkid
good point FWC. although.. is indicated in the install file clearly
Yep. But, I made the same mistake so I know the cause of the symptom when I see it. :)

Legacy 04-07-2002 04:41 AM

I Edited the correct file..Problem is what your file is telling me and what my 2 Global files say are Diffrent
im on 2.2.5 and I just re-dl the VB files..

if (isset($showqueries)) {
$pagestarttime=microtime();
}

is in the /admin/global.php

My /forum/global.php has this

if (isset($showqueries)) {
$pagestarttime = microtime();
} else {
$pagestarttime = 0;
}

Thes came straight from VB where i just DL the files from

TECK 04-07-2002 04:46 AM

vBulletin v2.2.5 Update

In the new VB version, there is a little minor change in forum/global.php.
Find the code:
PHP Code:

if (isset($showqueries)) {
  
$pagestarttime microtime();
} else {
  
$pagestarttime 0;


Replace it with:
PHP Code:

$pagestarttime microtime(); 


Viruseater 04-07-2002 04:48 AM

Read back the rest of the thread.

You have to edit the global.php file if you've got 1.7 I don't think 1.6 instructs that.

FYI make sure you don't hack the one in the wrong directory, that's what I did.

Anyway, that's why it's giving yout those stats, like I said, read the thread, it's already been answered

TECK 04-07-2002 04:49 AM

Viruseater.. he's right. 225 changed. :ermm:

Legacy 04-07-2002 04:50 AM

That did the trick nakkid

Great Hack...thx for the Support...

Page generated in 0.277 seconds(78.57% PHP - 21.43% MySQL) with 28 queries.
PHP version 4.1.2 (Debug mode) with GZIP library compression enabled (level 2). [details]


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

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.01405 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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