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)

Admin 03-12-2002 09:29 AM

Quote:

Originally posted by Jadelit
Ok done.
Actuall you need to state that the forum is powered by vBulletin, which is copyright Jelsoft. (you can only omit the version)

dyt4 03-12-2002 11:29 AM

right now, when I click on the details link, I've got a nice blank page without details :(

can you again help me plz

thx

TECK 03-12-2002 01:31 PM

do you use some wierd java frames? you cannot get a blank page because look what i get me on your page... btw 66 queries? your server is exploding right now..

dyt4 03-12-2002 01:49 PM

ok the details link is made of
PHP Code:

$PHP_SELF$... 

and here are shots , I don't understand

sHORTYWZ 03-12-2002 02:14 PM

OK I was having 150ish queries on my frontpage too and I finally figured out what it is.. and I imagine it's the same for most people.

The "Number of Active User's Today" hack creates a HUGE amount of queries on your frontpage (one for every user who has visited today.)

Because of this hack I have 100+ on my main page yet my thread and other forum pages are around 15-20.. just thought I'd share some wisdom =)

TECK 03-12-2002 03:17 PM

Quote:

Originally posted by dyt4
ok the details link is made of
PHP Code:

$PHP_SELF$... 


i checked the attachment.. and in the file this is what i see:
PHP Code:

$PHP_SELF?explain=

check your code properly, you probably played with it.. ;)

sHORTYWZ, do you get a blank page? let me know people.
thanks.
btw, firefly have the same hack installed on the main page.. let's convince him to tell us how he did it (ofcourse on a new thread).
someone please open a thread in Help. ;)

dyt4 03-12-2002 03:56 PM

Maybe I'm stupid :paranoid: LOL
But I didn't play with the code here is a sample of my functions.php :

PHP Code:

// ###################### Start dooutput #######################
function dooutput($vartext,$sendheader=1) {

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

  
$pageendtime=microtime();

  
$starttime=explode(" ",$pagestarttime);
  
$endtime=explode(" ",$pageendtime);

  
// time format (how many digits you want to show)
  
$digits=7;

  
$totaltime=$endtime[0]-$starttime[0];
  
$trimmedtime=number_format($totaltime,$digits);
  
$percentphp=number_format(((($totaltime-$querytime)/$totaltime)*100), 2)."% PHP";
  
$percentsql=number_format((($querytime/$totaltime)*100), 2)."% MySQL";

  if (
$bbuserinfo['usergroupid']==6) {
    if (
$gzipoutput==1) {
      
$gziptext="biblioth?que GZIP disponible (niveau $gziplevel)";
    } else {
      
$gziptext="biblioth?que GZIP non disponible";
    }
    
$debugmode=(DEBUG)?" (Debug mode)":"";
    
$versionphp=phpversion();
    
$adminstats="Version PHP  $versionphp $debugmode avec $gziptext. [<a href=\"$PHP_SELF?explain=1\" target=\"_blank\">d?tails</a>]";
  } else {
    
$adminstats="";
  }

  if (
$showqueries) {
    
$vartext .= "<!-- Page generated in $totaltime seconds with $query_count queries -->";
  } else {
    eval(
"\$microstats = \"".gettemplate('home_microstats')."\";");
  }
  if (!
$showqueries) {
    echo 
dovars($vartext,$sendheader);
    
flush();
  } else {
    
$output=dovars($vartext,$sendheader);
    echo 
"\n<b>Page generated in $totaltime seconds with $query_count queries,\nspending $querytime doing MySQL queries and ".($totaltime-$querytime)." doing PHP things.</b></pre>";
    
flush();
  }


as you can see I didn't play with this code :classic:

TECK 03-12-2002 04:21 PM

you are correct. the code is perfect. and you are a smart person, never say this.. that you are stupid.
i'm sure you did a great job on installing it correctly.. however we still have that problem on hand, right?
anyone else had this problem?

PS. when you post code like that, please attach it to a .txt file due to jelsoft copyrights.. i think. firefly told me something about this. he will post a comment here i'm sure if something is wrong.. ;)

sHORTYWZ 03-12-2002 04:33 PM

No I don't have a blank page.. everything works great for me.

TECK 03-12-2002 05:40 PM

k ;) anyone else?


All times are GMT. The time now is 06:00 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.02796 seconds
  • Memory Usage 1,764KB
  • 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
  • (4)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