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)

Humble Magii 04-22-2002 02:59 AM

Hi could someone maybe help me... I am trying to get this to display on my main page. I am using vBPortal and it only shows the amount of queries everything else is blank if I use what is in the getmicrostats template. Anyone else try doing this yet or what? I have to insert this into the VBP config.php file in the footer section I know just dunno how to get it to display :). I don't have a footer template for VBP from what I can gather sifting thru my templates. Anyhoo thx for any help and nakkid you did a fine job.

mashby 04-22-2002 04:04 PM

I'm trying to install this hack, but I'm running into a problem with the first edit. :ermm: In global.php I'm supposed to change
PHP Code:

if (isset($showqueries)) {
  
$pagestarttime microtime();
} else {
  
$pagestarttime 0;


But in my global.php I have the following:
PHP Code:

if (isset($explain)) {
  
$showqueries=1;
}
if (isset(
$showqueries)) {
  
$pagestarttime=microtime();


Before I proceeded, I wanted to check here and see what I should be replacing.

TECK 04-23-2002 12:01 AM

replace:
PHP Code:

if (isset($showqueries)) {
  
$pagestarttime=microtime();


with:
PHP Code:

$pagestarttime=microtime(); 

you probably dont have 225 installed. in the install file, read below the 225 segment, it will tell you how to install it for other versions.

mashby 04-23-2002 01:00 PM

Nakkid - thanks for the fast reply.

According to my control panel, I have 2.2.5 installed. I always keep up with the latest version of vB. However, now that I'm adding hacks to the mix, I may delay installing them so fast and wait until I know that my small collection of hacks will work.

The point is, I do have the latest version of vB installed. So, if this code does not look kosher, then perhaps it did not install correctly?

I'm going ahead with the code snippet you gave me and proceed from there and I'll let you know how it goes. Everything else appears like it will work just fine.

Thanks again Nakkid.

TECK 04-23-2002 10:55 PM

ok.. let me know. i'm sure you will get it working perfectly. :)
just make sure you follow at letter the instructions, there is alot of code to be changed.

all the best,
nakkid.

mashby 04-24-2002 02:12 AM

Nakkid,

Yes, thanks to your input the hack worked just fine. However, I've run into another bug with the register process, so I un-installed the hack just to make sure it wasn't your hack. It wasn't. :knockedout:

But it appears that the Country Flag Hack I installed the day before is the cultprit. So, once I track down the bug, I plan on re-installing your hack.

Thanks again for all your help and I'll let you know how it goes.

TECK 04-24-2002 02:42 AM

you are welcome mashby. ;)

tkeil69575 04-25-2002 01:01 AM

hi nakkid,

I'm having the same problems NTLDR was having, my templates arent working anymore, as soon as I upload the new function.php. What was the fix for NTLDR - was it a provider problem?

greetings Tina

TECK 04-25-2002 02:31 AM

he wasnt sure how to insert the code into the files.
also he had a problem with the PHP version, he was running a really old one on his localhost. read more in the thread here. about what version he had.

contact your host and ask him to upgrade asap. older php code have bugs.

mashby 04-25-2002 08:54 AM

Well, I found part of my problem. I re-installed 2.2.5 to clear out all the hacks and to make sure that everything was hack free.

I re-installed the Welcome Panel hack and then this hack. Everything appears to be ok, except now when I go into the Control Panel, I get nothing. No page renders at all.

Everything else appears to be working just perfectly. The stats are appearing on each page as expected, all other sections of the site are great, but I simply cannot access the Control Panel.

This is the source from the Control Panel
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>



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.01567 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_code_printable
  • (4)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