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)

nuno 06-01-2002 11:35 PM

Quote:

+-----------------------------------------------+
| FINAL STEPS |
+-----------------------------------------------+
| To call your vbMicroStats, simply place the string {getmicrostats}
| anywhere you want in your templates (for example in footer).
there's no need to call {getmicrostats} :confused:
replace
PHP Code:

$microstats='Page generated in '.$trimmedtime.' seconds ('.$percentphp.' - '.$percentsql.') with '.$query_count.' queries.<br>'.$adminstats

with
PHP Code:

$vartext .='<center><smallfont>Page generated in '.$trimmedtime.' seconds ('.$percentphp.' - '.$percentsql.') with '.$query_count.' queries.<br></smallfont></center>'.$adminstats

and no longer is needed template editing :paranoid:

Boofo 06-02-2002 07:53 AM

If you did it this way, you wouldn't be able to decide where it goes. :) And where would it show up with the way you have it here?

Quote:

Originally posted by nuno

there's no need to call {getmicrostats} :confused:
replace
PHP Code:

$microstats='Page generated in '.$trimmedtime.' seconds ('.$percentphp.' - '.$percentsql.') with '.$query_count.' queries.<br>'.$adminstats

with
PHP Code:

$vartext .='<center><smallfont>Page generated in '.$trimmedtime.' seconds ('.$percentphp.' - '.$percentsql.') with '.$query_count.' queries.<br></smallfont></center>'.$adminstats

and no longer is needed template editing :paranoid:


nuno 06-02-2002 10:07 AM

like this it goes below copyright text :)

Boofo 06-02-2002 06:18 PM

I tried it but couldn't get it to display right. The second line (for Admin only) was in normalfont and spaced an extra line below the first line. When I tried to moved the center and smallfont, if gave me a blank page when I tried to load my site. :)

TECK 06-03-2002 02:39 AM

nuno, the {getmicrostats} variable is useful to users who want more control over their html code.
for example, if you have vbPortal installed, it will show ur stats in every block, if you do it your way.

Henry-RS 06-05-2002 02:52 AM

Code:

$templatesused.=',pagenav,pagenav_curpage,pagenav_firstlink,pagenav_lastlink,pagenav_nextlink,pagenav_pagelink,pagenav_prevlink';
That code, is not even in /forum/global.php >=(

Ahh, nevermind. I was just having one of those moments. :) :embarrased:

Jadelit 06-06-2002 05:11 AM

I am getting this error..

Code:

Parse error:  parse error, expecting `','' or `';'' in C:\Inetpub\****\board\admin\functions.php</b> on line 474

Fatal error:  Call to undefined function:  iif() in C:\Inetpub\****\board\admin\functions.php on line 352

im using vb 2.2.6

The Piper 06-09-2002 08:53 PM

This script is really great, I have it working on my site and it's really useful. A suggestion I'd like to make: how about adding stats on the server loads as well?

Thanks a lot and congrats nakkid on an awesome script!

Paulo

TECK 06-10-2002 12:06 AM

thanks for your nice words. a quick thing.. i noticed you have 48queries on your main page. this is extremly high. over 40, your server goes on the red line, on a busy site.

The Piper 06-10-2002 01:42 AM

Thanks for the advice, nakkid. Yeah, I'm trying to lower that. I took the polls off but it's still pretty high. I'm planning on reinstalling vbIndex because I'm running an older version, so I'll be able to mess up with the code a bit to try and lower that.


All times are GMT. The time now is 10:14 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.01747 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_code_printable
  • (4)bbcode_php_printable
  • (2)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