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)

tkeil69575 04-25-2002 10:08 AM

Quote:

Originally posted by nakkid
he wasnt sure how to insert the code into the files.
also he had a problem with the PHP version, he was running a really old one on his localhost. read more in the thread here. about what version he had.

contact your host and ask him to upgrade asap. older php code have bugs.

Hi Nakkid,
thanks for your reply. I've read all that, but he doesnt really go into detail. Well, the newest verison of PHP is installed on my server, so that's not the problem. I do admit I have some hacks installed on 2.2.5 and I guess that's what's causing the problems. However, I dont want to miss out on those hacks. The hacks I have installed are the same ones FireFly has here and he's obviously got the vbmicrostats working, so theoretically there must be some way that it should also work for me ... It's really a pity that it's such a senstive, although cool script.

greetings Tina.

TECK 04-25-2002 12:52 PM

you edited admin/global.php
read carefully the install instructions.

Thomas P 04-26-2002 05:53 PM

Hi,

thanks for this hack, great stuff. :)
cu,
-Tom


Hack installed in 0.87553499 minutes (80.31% Copy - 19.69% Paste) with 0 queries. ;)

TECK 04-27-2002 12:09 AM

Quote:

Originally posted by tkeil69575
I dont want to miss out on those hacks. The hacks I have installed are the same ones FireFly has here and he's obviously got the vbmicrostats working, so theoretically there must be some way that it should also work for me...
tina, the hack should not interfere with any other one.. it's all related to microtime.

Erwin 04-27-2002 12:45 AM

I've got over a hundred hacks on my forum, and this hack does not interfere with any of them.

Admin 04-27-2002 04:55 PM

nakkid, you are using an undefined constant in your code (DEBUG). This causes the "Debug Mode" flag to be on no matter what.

TECK 04-27-2002 05:11 PM

you are referring at $PHP_SELF? it doesnt really matter since i want to read the actual file i view. let me know if i'm correct.

Admin 04-27-2002 05:17 PM

Quote:

Originally posted by nakkid
yr referring at $PHP_SELF? it doesnt really matter since i want to read the actual file i view. let me know if i'm correct.
No, I am talking about DEBUG - a constand. You have in your code something like this:
Code:

$debug = (DEBUG) ? 'Debug Mode' : '';
Which is not correct, because there is no such constant. Not in PHP nor in vBulletin.
And since vBulletin runs on error reporting level of 7, PHP doesn't warn you and treats it as a string. And since that string always evaluates to TRUE, you will always get 'Debug Mode'.

TECK 04-27-2002 05:39 PM

you are right firefly... doughh.. :cross-eyed:
here it is what i did:
---------------------------------
in functions.php add $debug, before $microstats, like that:
PHP Code:

global $pagestarttime,$query_count,$showqueries,$querytime,$DB_site,$gzipoutput,$gziplevel,$bbuserinfo,$debug,$microstats

then i inserted this code:
PHP Code:

if ($debug==0) {
  
$debugmode="";
} else {
  
$debugmode="(Debug mode)"

should i use the define();? all i want to do is check what is the DEBUG mode on the apache server. let me know if the code is reliable. thanks.

Admin 04-28-2002 10:05 AM

Apache's configuration has nothing to do with PHP. $debug is a variable set by vBulletin (well, the admin sets it in config.php if he wants to use debugging options). Debug mode refers to vBulletin, not PHP / the server.


All times are GMT. The time now is 11:11 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.01433 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)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