vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Board Optimization - Forum Load Time Indicator (https://vborg.vbsupport.ru/showthread.php?t=198078)

UKBusinessLive 12-07-2008 06:24 AM

Quote:

Originally Posted by hIBEES (Post 1679829)
MY "timer" keeps going and going lol :eek:


For some reason i don't think this quite works if you use the "View website thumbnail" mod, not sure why?? :confused:

Darkstarproject 12-18-2008 02:38 AM

*Uninstalled* - Timer continues to count up.

7lanet 12-18-2008 06:16 PM

^_^

LGKeiz 12-21-2008 01:39 AM

vbseo causes the index timer to continue on and on and on, you need to make it so when the page ends loading, it stops counting.

wingrider 01-02-2009 06:38 PM

Same experience here, and I'm not using vbSEO. It just keeps on counting.

TimberFloorAu 01-02-2009 07:01 PM

Microtime is about the cleanest way of doing this.

Add this to very top of headerinclude ( i think ) above everything else ( must load first )

Code:

<?
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;

?>

In footer add:
Code:

<?
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ('Generated in %f seconds.', $totaltime);
?>


LGKeiz 01-16-2009 11:12 AM

php doesn't load properly I think with templates :P

porschinho 01-28-2009 02:22 PM

This has nothing to do with the real load-time of a php based website!
Java script ist interpreted by the client computer, not by the server.
This loadtime indicates how fast your webbrowser displays the page, not how fast the server generates the content...

ZomgStuff 01-29-2009 02:35 AM

Freaking awesome, thank you!
This looks great.
https://vborg.vbsupport.ru/external/2009/01/13.jpg

Edit: nevermind. This fails to stop counting sometimes - uninstalled.

UKBusinessLive 01-29-2009 05:03 AM

Quote:

Originally Posted by ZomgStuff (Post 1727742)
Freaking awesome, thank you!
This looks great.
https://vborg.vbsupport.ru/external/2009/01/13.jpg

Edit: nevermind. This fails to stop counting sometimes - uninstalled.

have you tried the code from TimberFloorAu??? above

Microtime is about the cleanest way of doing this.

Add this to very top of headerinclude ( i think ) above everything else ( must load first )


Code:

<?
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;

?>

In footer add

Code:

<?
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ('Generated in %f seconds.', $totaltime);
?>

I'll update the code later ;)


All times are GMT. The time now is 04:44 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.00966 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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