Back to vBulletin 3.8 Add-ons

Page Loading Time
Mod Version: Beta 1.00, by linuxututs

vB Version: 3.8.4 Rating: (0 vote - 0 average) Installs: 20
Released: 18 Oct 2009 Last Update: 20 Oct 2009 Downloads: 71
Not Supported Template Edits Re-usable Code Translations  

Changed to Beta Version !!
Bug Found !


Its no biggy, but still doesn't do what its meant to do on "ALL" pages.
The timer does not load while viewing thread !!!

Sorry, I call myself testing this on "ALL" pages before releasing it, but apparently I overlooked that one page loading.

Please if anyone can come up with a fix, Please post.

The Mod/Hack works fine other than that. ( Works as should on Joomla, and phpbb )
This is a vBulletin thing, and I'm still learning vBulletin code, so please bare with me.

Updated the Instructions in the download attachment also.

Page Loading Time ( Hack )

I Searched for nearly two hours to find this hack. Either all the scripts I found had backlinks in them or they plain just didn't work.

2 Step Page Loading Time ( Hack )

1) Place this code at the bottom of your " headinclude "

( Style Manager/your_style/All Style Options/ >>Go )

Code:
<script Language="JavaScript">
<!-- hide script from non compliant broswers
// author: Susan Lee
var from_time = new Date();
from_time = from_time.getTime();
function  show_loading_time()
{
var to_time = new Date();
to_time = to_time.getTime();
var secs = (to_time - from_time) /1000;
document.f.t.value = secs + " seconds";
}
// end hiding from non compliant browsers-->
</script>
2) Now Place this code anywhere in your " footer " you'd like to see the Page Load Time.

( Style Manager/your_style/All Style Options/ >>Go )

Code:
<!--A1 --><body onLoad="show_loading_time()"><!-- -->
<!--A1 -->
<form name="f" onSubmit="0"> Page Loading Time:
<input Size="15" Name="t" Value="Plz Wait"><!-- -->
If you don't want the white box you can use "Front Range 4x4" code and and change it to plain text with what-ever color you chose.

Replace:
Code:
<input Size="15" Name="t" Value="Plz Wait"><!-- -->
With:
Code:
<input size="10" name="t"/ style="color:white;border:none;background:#8C411C;"><!-- -->
Change to your desired colors.

( Thanks "Front Range 4x4" for the help )

I Placed mine before
Code:
$ad_location[ad_footer_start]
Cheers,

Download

File Type: %1$s pageloadingtime.zip (111.7 KB, 56 downloads)

Screenshots

Click image for larger version
Name:	loadtimer.PNG
Views:	685
Size:	58.5 KB
ID:	105432  

Similar Mods

Board Optimization CSS Compression - Improve Loading Time and Decrease Bandwidth! vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2025