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)

tkeil69575 02-15-2003 11:04 AM

@kakarot
this worked for me with vb 2.3.0

PHP Code:

        while ($replacement $DB_site->fetch_array($replacements))
        {
            if (
$replacement['findword'] != '')
            {
                
$vars["$replacement[findword]"] = $replacement['replaceword'];
            }
            if (
$replacement['findword'] = '{getmicrostats}')
            {
            
$vars["$replacement[findword]"] = $microstats;
            }
        } 


Sebastian 02-16-2003 09:49 PM

@tkeil69575, what code chunk did you find to replace that with?

can't seem to get it to work with 2.3.0.

tkeil69575 02-16-2003 11:31 PM

sebastian,

see attached file

tina

ChuanSE 02-17-2003 03:18 AM

changed the requested lines in the php files without backing up those three :/

result

Parse error: parse error, unexpected $ in /usr/local/psa/home/vhosts/forums.puredj.com/httpdocs/admin/functions.php on line 2331

Fatal error: Call to undefined function: iif() in /usr/local/psa/home/vhosts/forums.puredj.com/httpdocs/admin/functions.php on line 352

I can't enter the board anymore :(
does anyone can pass me the global.php from root/ and db_msql.php & functions.php from root/admin/ for vb 2.2.9 plz

Thx,
PureDJ.com

Serge 02-17-2003 06:33 AM

You know you could just unzip vbulletin and take the those files from it.

blackice912 02-17-2003 06:41 PM

Quote:

Originally posted by tkeil69575
sebastian,

see attached file

tina

Works, thanks! :D

Tim Wheatley 02-22-2003 08:39 AM

Works for me too. If it doesn't, be sure you're not selecting the tags = [php]

TECK 02-22-2003 09:52 AM

Quote:

Originally posted by tkeil69575
@kakarot
this worked for me with vb 2.3.0

Code:

if ($replacement['findword'] = '{getmicrostats}')

Code:

if ( $replacement['findword'] =[high]=[/high] '{getmicrostats}' )

peanut666 02-24-2003 12:20 AM

thanks great hack

running fine on 2.2.9 with vbindex

Page generated in 0.13454604 seconds (81.56% PHP - 18.44% MySQL) with 19 queries.
[Debug Mode OFF] [PHP v4.3.0] [GZIP enabled - level 1] [Server Load: 0.14 ยป 0.12 : 0.09]

dont know what you recon on stats if there average or not

but hay it worked and im a newbie at this lol :banana:

Jawelin 02-25-2003 12:14 PM

Quote:

Originally posted by TECK

Code:

if ( $replacement['findword'] =[high]=[/high] '{getmicrostats}' )

I also noticed such assignment within the if-clause, but with this fix, question is: who puts '{getmicrostats}' value into replacement table ? :nervous:

Thank you very much for supporting this hack yet.
:)


All times are GMT. The time now is 11:10 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.02043 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_code_printable
  • (1)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