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)

Dark Shogun 09-26-2002 04:18 AM

Can anyone tell me why my stats say php %100 and mysql 0% on all pages? I know that can't be true. Thats the only problem.

Dark Shogun

TECK 09-26-2002 04:20 AM

is because you didnt hack properly db_mysql.php

Dark Shogun 09-26-2002 04:25 AM

Seems I left out that step somehow. Well it is fixed now. Thanks Teck.

Dark Shogun

KimG 09-27-2002 12:54 PM

Hi there,
Looks a great hack and one I would find useful. My server load seems to magically increase from time to time so I would like to track down the culprit!

Unfortuneatly I have PHP 4.04 installed on my server, and a host who is very slow to do anything! Is there a version of microstats which would work under this version of PHP?

I have the first microstats which does work, butgives incorrect times/queries! The latest version does not parse the php when I update functions.php because of the php version. Is there an inbetween microstats I could use?

Many thanks,
Kim

TECK 09-27-2002 04:56 PM

hello KimG... unfortunatelly no. the lowest version that vbMicrostats will work is PHP 4.06.

N9ne 09-27-2002 07:40 PM

ignore post, matter resolved by myself

exTracT 10-01-2002 05:20 PM

Just curious how these stats look. I am on a shared server
13 members online. i have about 10 lil hacks installed.
almost 1000 members.

thanks

Page generated in 0.30253804 seconds (40.66% PHP - 59.34% MySQL) with 24 queries.
[Debug Mode OFF] [PHP v4.2.2] [GZIP enabled - level 1] [Server Load: 1.96 ยป 2.64 : 2.64]

Ian 10-01-2002 09:08 PM

exTracT, those stats look fine to me.

TECK 10-01-2002 09:19 PM

smart decision to leave the gzip to 1. that cuts the bandwidth alot. dont go higher then this.
24 queries on forumhome? make sure you installed properly your hacks.. not alot of hacks add queries.. and is defalut 17 for vbulletin.

so i would do an ?explain=1 on your forumhome just to see if i didnt forget any templates to add. that the most frequent mistake people do...
if you see in the explain=1 some template title then you missed that one...

NTLDR 10-01-2002 09:20 PM

Hi TECK,

I don't know if there is a soloution to this or not, but my current work around is a very long one, so I thought I'd ask ;)

On a board with FireFly's change { bbusername } to the viewers username hack installed and this one there is a section of code that allows you (at present) to either have this hack working or FireFly's.

PHP Code:

  $findwords=array(=> '{ getmicrostats }');
  
$replacewords=array(=> $microstats);
  
$i=1;

  while (
$var=$DB_site->fetch_array($vars) and $i++) {
    if (
$var['findword']!="") {
      
$findwords[$i]=$var['findword'];
      
$replacewords[$i]=$var['replaceword'];
    }
  } 

In the { bbusername } hack you have:

PHP Code:

$findwords=array(=> '{ bbusername }');
  
$replacewords=array(=> $bbuerinfo[username]); 

As well as the microstats code, but which ever one is directly before the while loop works and the other one just displays {text} I have tried everything I can to get it to work, but have failed :(

Any ideas? Currently I have edited a whole bunch of files and used str_replace everywhere I can think of that { bbusername } could appear.


All times are GMT. The time now is 08:24 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.01875 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_php_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