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)

Viruseater 04-07-2002 04:55 AM

Quote:

Originally posted by nakkid
Viruseater.. he's right. 225 changed. :ermm:
Well crap.

Looks like I'm the one that needs to re-read the thread. Sorry.

:D

TECK 04-07-2002 04:57 AM

dont worry.. :) i did this mistake one zillion times.. :D

FWC 04-07-2002 05:05 AM

Quote:

Originally posted by nakkid
dont worry.. :) i did this mistake one zillion times.. :D
Damn, that's one more than me! :)

TECK 04-07-2002 05:08 AM

lol.. :D

NTLDR 04-10-2002 10:13 PM

Hi nakkid,

I've tried loads of times to install this hack, on both a fresh install of 2.2.5 and a hacked install of 2.2.4.

I've tried manually applying the hack... and creating a vbhacker file to make the changes, but I've yet to get it working, I know the hack works as its on so many other forums.

I've attached a screenshout of the output I get on a fresh unhacked (other than the vbmicrostats hack) 2.2.5 install, any ideas on what I'm doing wrong?

Thanks In Advance,
Lee

Xelation 04-10-2002 11:12 PM

um nakkid, when I go to put the {getmicrostats} in the footer... this is what comes up...

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.
{getmicrostats}

you know whats wrong?

Xanthine 04-10-2002 11:18 PM

Sounds like you forgot to add something to your replacements?

*edit* Maybe not, I dont see a step to add them in the install file. Not sure now.

NTLDR 04-10-2002 11:52 PM

Quote:

Originally posted by Xelation
um nakkid, when I go to put the {getmicrostats} in the footer... this is what comes up...

Powered by: vBulletin Version 2.2.5
Copyright ?2000, 2001, Jelsoft Enterprises Limited.
{getmicrostats}

you know whats wrong?

Thats the same as what I get (see the screen shot on the last page), but my templates don't work properly either though :(

I don't think this hack likes me :p

TECK 04-10-2002 11:57 PM

i just installed the hack in v225, following at letter the instructions included in the text file. it works perfectly. please check your steps carefully, especially the files you have to edit (forum/global.php and NOT [high]forum/admin/global.php[/high])

NTLDR 04-11-2002 01:06 PM

Hi nakkid,

I've tried installing it again, and I know I've edited the correct files, the part that is causing the error for me is replacing the follwoing in admin/fuctions.php:

This:
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);
    }
  } 

With This:
PHP Code:

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

  
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel,$newpmmsg,$microstats;
  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);
  }

  
$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'];
    }
  }

  
$newtext=str_replace($findwords,$replacewords,$newtext); 

Which causes my templates not to work and my forums look like this https://vborg.vbsupport.ru/attachmen...&postid=239359 (Screen Shot From Earlier Post).

I know I must be doing something stupid for it not to work!


All times are GMT. The time now is 08:04 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.01493 seconds
  • Memory Usage 1,758KB
  • 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
  • (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