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)

Mickie D 02-06-2003 08:37 PM

ok no one replied for me but i decided to check a few things out :)

i installed XENON'S hack to drop queries and some how it fixed my problem but sometimes the main forum home calls 21 queries and i have seen it call 28 also ????

can anyone explain ???

SpeedStreet 02-06-2003 11:10 PM

Quote:

Originally posted by ranger2kxlt
speedstreet i get the same error

anyone have the fix? im on 2.2.9

FIXED

I simply removed the following code from the Start Dooutput replacement:

PHP Code:

 if ($debug==1) {
      
$debugmode='Debug Mode <font color="{ hovercolor}">ON</font>';
    } else {
      
$debugmode='Debug Mode OFF';
    }
    if (
$gzipoutput==1) {
      
$gziptext='GZIP <font color="{ hovercolor}">enabled</font> - level '.$gziplevel;
    } else {
      
$gziptext='GZIP disabled';
    } 


mhardin 02-09-2003 08:17 PM

Thanks Teck!

I installed it on two servers today. Works Great!

Mike

NexDog 02-10-2003 02:22 AM

Hmm, I seem to get 31 queries on the index page. Before I go ahead with Xenon's query decreasing hack, I'd like to know how to identify alot of these queries and cut down if possible.

Hacks installed:

Quick Reply
Chat
Arcade
Journal
Default PM
Karma
Local Time
Member Of The Day
ShoutBox
TopList
VBstory
Who was online today

There are a few others but those and a few of the above mentioned ones probably don't apply. What does anyone recommend?

NexDog 02-11-2003 04:09 AM

Surely someone could help me out? Got a few grand waiting here for the lucky fellow. :P

TECK 02-11-2003 09:16 AM

Please feel free to open a new thread in General Hacking Discussions, it has nothing to do with troubleshooting the hack itself.

NexDog 02-11-2003 09:45 AM

Good idea, Teck - will do. :)

Stu 02-11-2003 10:38 AM

Thanks Teck,
clicked Installed.... :)
I'm using this to evaluate a new Host Server so it's very useful.
I just had to alter it so that ALL Members could see the server loads, so I could get feedback from different users at different times, on the performance of the Server on test.

Kakarot 02-13-2003 08:51 PM

This hack doesn't quite work with vBulletin 2.3.0 installation-wise, simply because the....

PHP Code:

// ###################### Start dovars #######################
function dovars($newtext,$sendheader=1) {
  
// parses replacement vars

  
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel,$newpmmsg;
  static 
$vars;

  if (
connection_status()) {
    exit;
  }

  if (!isset(
$vars)) {
    
$vars=$DB_site->query("SELECT findword,replaceword FROM replacement WHERE replacementsetid IN(-1,'$replacementsetid') ORDER BY replacementsetid DESC,replacementid DESC");
  } else {
    
$DB_site->data_seek(0,$vars);
  }

  while (
$var=$DB_site->fetch_array($vars)) {
    if (
$var['findword']!="") {
      
$newtext=str_replace($var['findword'],$var['replaceword'],$newtext);
    }
  } 

..isn't found in the functions.php file...

TECK 02-13-2003 10:09 PM

I'm going to install vb230 and release an update when I have time. :)


All times are GMT. The time now is 11:02 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.01848 seconds
  • Memory Usage 1,749KB
  • 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)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