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 08-20-2002 05:02 PM

the 0-100% is the db_mysql.php issue discussed several times here... please check your file properly and let me know if it's working.
about 93 queries, nobody had 93 queries on forumhome. please let me know exacly what hacks you installed. on the main page (not forumhome) i think you have installed vbIndex, the champion of busting servers with it's extremly high number of queries. a normal unhacked forumhome have 17queries.

DWZ 08-30-2002 12:57 PM

Has this been tested with 2.2.7? I'm in the middle of adding all my hacks to the 2.2.7 code, just wondering if it will work or not :)

TLfuRy 08-30-2002 03:19 PM

Quote:

Originally posted by DWZ
Has this been tested with 2.2.7? I'm in the middle of adding all my hacks to the 2.2.7 code, just wondering if it will work or not :)
You just have to re-apply the hack after you upgrade. I upgraded today and re-applied the hack and it's working fine.

N9ne 08-30-2002 03:32 PM

There shouldn't be any reason why this shouldn't work.

TECK 08-30-2002 03:32 PM

it should work in VB227 without any probs.

N9ne 08-30-2002 03:37 PM

lol @ your sig Nakkid :D :D

jediguy 09-01-2002 09:10 AM

Thanks for the beaut hack! Took me a while to go through the thread and find out what I did wrong, but in the end it works like a charm. :)

Quote:

Powered by: vBulletin Version 2.2.6
Copyright ?2000, 2001, Jelsoft Enterprises Limited.
Page generated in 0.36839294 seconds (31.64% PHP - 68.36% MySQL) with 28 queries.
[Debug Mode OFF] [PHP v4.2.2] [GZIP enabled - level 1] [Server Load: 0.62 ? 0.86 : 0.96]
Thanks a lot!

Gohan 09-01-2002 07:23 PM

Great hack and fine working on 2.2.7

Boogle 09-02-2002 12:36 PM

I have a problem with the db_mysql.php file. Locally everything works, but if I upload to me webserver I get an error, like so:

Quote:

Database error in vBulletin 2.2.7:

Invalid SQL: INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,al thash,location) VALUES ('32a41a8546984be8115d0e92b1a55701','1','62.60.41. 40','Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;','1030973130','','/')
mysql error: Duplicate entry '32a41a8546984be8115d0e92b1a55701' for key 1

mysql error number: 1062
Any advice?

TECK 09-02-2002 01:02 PM

check your code.

Boogle 09-02-2002 01:45 PM

Its a perfect cut 'n paste. The fact it works locally should mean the code is fine anyway.

Why doesn't it work when the file is uploaded to the webserver?

TECK 09-02-2002 02:17 PM

let me guess, you have a local host clean install forum with no hacks and your online forums with hacks, right?
probably some of your hacks are interefering with it. it doesnt make sense because it should not. i wish i could help you more on this but i really cant... especially that you did get it working on the localhost.

Boogle 09-02-2002 02:31 PM

Damn, thanks anyway.

TECK 09-05-2002 02:03 AM

Quote:

Originally posted by Boogle
Damn, thanks anyway.
many users posted here the same story like you did. "is not working... i did the mods perfectly..." 99% of the cases were always little code mistakes.
my hack never interfered with any other hacks... is imposible due to the nature of it's code.
let me know if you got it working. :)

PHiXTiT 09-13-2002 12:46 PM

Great hack!

ThanX

5 Stars

Neo 09-17-2002 07:08 PM

I couldnt get it to show in the footer template :\

TECK 09-18-2002 01:34 AM

lol, get out of town... :)

havefun 09-21-2002 04:57 PM

thanks for that nice hack! :banana:

lg, havefun

Sc0rp 09-21-2002 07:14 PM

any way I could show this nfo to all my members instead of only the admins?:)

Dark Shogun 09-21-2002 08:46 PM

I put {getmicrostats} in my footer but it just shows {getmicrostats}. Does anyone know how to fix this? I have VB 2.2.7.

Dark Shogun

Ian 09-21-2002 09:51 PM

Quote:

Originally posted by Dark Shogun
I put {getmicrostats} in my footer but it just shows {getmicrostats}. Does anyone know how to fix this? I have VB 2.2.7.
Sounds like you didn't follow the directions properly. Try re-installing and make sure you follow the directions precisely.

Dark Shogun 09-21-2002 10:08 PM

I reinstalled it and it still doesn't work. I did the php version and it worked but the text of the stats were to big so I redid it and used the template version and it doesn't work.

These are the instructions I downloaded.

Dark Shogun

TECK 09-22-2002 12:32 AM

Dark Shogun, check your steps. if for 377 people worked perfectly, i dont see why it should not work for you also.
this hack doesnt interact with any other hacks that's why is a real statistics hack.

TECK 09-22-2002 12:40 AM

here, is working perfectly in my super hacked forum.

Coreace 09-25-2002 10:17 AM

Is there a way to disable the PHP version on display?

TECK 09-25-2002 10:19 AM

yes. just remove the code segment. it will not be called anymore.
Code:

$versionnum=phpversion();
also delete the [PHP v'.$versionnum.'] code segment.

Erwin 09-25-2002 11:19 AM

Everytime I upgrade vB, I need to reinstall this hack - it's always the forum/global.php file - this line to be specific:

$pagestarttime = microtime();

I always revert it back to default by accident using Araxis Merge. :) You'd think that I'd learn by now after so many upgrades. :D

TECK 09-25-2002 11:21 AM

you are not the only one... :) me too.......

Coreace 09-25-2002 11:54 AM

Quote:

Originally posted by TECK
yes. just remove the code segment. it will not be called anymore.
Code:

$versionnum=phpversion();
also delete the [PHP v'.$versionnum.'] code segment.

Thank you, that worked fine. By the way, nice website you have there! Great design - open for some freelance work?

TECK 09-25-2002 12:13 PM

actually, that's ugly... here it is the new one:
https://vborg.vbsupport.ru/showthrea...threadid=43447

should be open in about 2 weeks...

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 11:30 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.04511 seconds
  • Memory Usage 1,819KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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