vb.org Archive

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

UKBusinessLive 12-04-2008 10:00 PM

Forum Load Time Indicator
 
Ever wanted to see just how fast your board is loading?? Its a bit slow but your not sure how slow?? Just loaded a new hack - Is your board just as fast???

Well now you'll know with this simple little hack that sits queitly at the bottom of your footer. A timer starts when the page begins to parse and ends when it has completed loading all of the content. The result is the time in seconds of how fast (or slow) your forums are loading.

The Instructions are so simple too :D

ACP> Style Manager > Your Forum Style

1. Copy the code below into your forum's style headerinclude

Code:

<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Abraham Joffe :: http://www.abrahamjoffe.com.au/ */

var startTime=new Date();

function currentTime(){
  var a=Math.floor((new Date()-startTime)/100)/10;
  if (a%1==0) a+=".0";
  document.getElementById("endTime").innerHTML=a;
}

window.onload=function(){
  clearTimeout(loopTime);
}

// End -->
</script>

and post this code into the Footer

Code:

<div align="center">
<script type="text/javascript">
<!-- Begin
  document.write('This Page took <span id="endTime">0.0</span> seconds to load.');
  var loopTime=setInterval("currentTime()",100);
// End -->
</script>
</div>

Thats it, short, and sweet enjoy :p

Please Click install if you use this ;)

Original Script Created by : Abraham Joffe

UKBusinessLive 12-05-2008 03:21 PM

Reserved :p

movslow 12-05-2008 05:27 PM

Installed.

Question, how do you get it centered in the page, currently it installed to the left.

:up:


/edit found it.

<div align="center">

</div>

germinus 12-05-2008 05:30 PM

Think I will wait for some proper install instructions!

movslow 12-05-2008 05:50 PM

Btw, this doesn't work well with the WebSite thumbnail mod here.

https://vborg.vbsupport.ru/showthread.php?t=196702

I had just installed the timer here, worked like a charm. Installed the website thumbnail and the timer doesn't stop counting..lol.

Install and you will see what I mean.

UKBusinessLive 12-05-2008 05:58 PM

Quote:

Originally Posted by movslow (Post 1679177)
Installed.

Question, how do you get it centered in the page, currently it installed to the left.

:up:


/edit found it.

<div align="center">

</div>

Thanks i forgot that bit :rolleyes: Updated the code now to include it :up:

UKBusinessLive 12-05-2008 06:00 PM

Quote:

Originally Posted by germinus (Post 1679181)
Think I will wait for some proper install instructions!

Only 2 small bits of code to paste, one in the headerinclude, and one in your footer easy
;)

UKBusinessLive 12-05-2008 06:01 PM

Quote:

Originally Posted by movslow (Post 1679187)
Btw, this doesn't work well with the WebSite thumbnail mod here.

https://vborg.vbsupport.ru/showthread.php?t=196702

I had just installed the timer here, worked like a charm. Installed the website thumbnail and the timer doesn't stop counting..lol.

Install and you will see what I mean.

just noticed that :rolleyes:

movslow 12-05-2008 06:06 PM

It's a cool mod, simple, clean and effective.

However I had to uninstall it until the bugs get worked out b/c it looks funny watching it count forever..lol.

:up:

mark370 12-05-2008 06:12 PM

Quote:

Originally Posted by germinus (Post 1679181)
Think I will wait for some proper install instructions!

this will help you.

choose the skin you want this showing and,

Insert this bottom of the header template:
Code:

<script type="text/javascript">
<!-- Begin


var startTime=new Date();

function currentTime(){
  var a=Math.floor((new Date()-startTime)/100)/10;
  if (a%1==0) a+=".0";
  document.getElementById("endTime").innerHTML=a;
}

window.onload=function(){
  clearTimeout(loopTime);
}

// End -->
</script>

Ive Inserted this bit of code on the next line below the vb time code in footer template as i wanted it to show below the time but you can add it where you chose:
Code:

<div class="smallfont" align="center"><b><script type="text/javascript">
<!-- Begin
  document.write('This Page took <span id="endTime">0.0</span> seconds to load.');
  var loopTime=setInterval("currentTime()",100);
// End -->
</script>
</b>
<br />


Magnumutz 12-05-2008 08:38 PM

Nice, installed ;)

UKBusinessLive 12-06-2008 05:24 AM

Quote:

Originally Posted by mark370 (Post 1679206)
this will help you.

choose the skin you want this showing and,

Insert this bottom of the header template:
Code:

<script type="text/javascript">
<!-- Begin


var startTime=new Date();

function currentTime(){
  var a=Math.floor((new Date()-startTime)/100)/10;
  if (a%1==0) a+=".0";
  document.getElementById("endTime").innerHTML=a;
}

window.onload=function(){
  clearTimeout(loopTime);
}

// End -->
</script>

Ive Inserted this bit of code on the next line below the vb time code in footer template as i wanted it to show below the time but you can add it where you chose:
Code:

<div class="smallfont" align="center"><b><script type="text/javascript">
<!-- Begin
  document.write('This Page took <span id="endTime">0.0</span> seconds to load.');
  var loopTime=setInterval("currentTime()",100);
// End -->
</script>
</b>
<br />


Thanks, Looks nice under the time :up:

princeedward 12-06-2008 06:55 AM

great mod...simple and easy... work to vB 3.6.8 PL2 also...thanks... ;)

UKBusinessLive 12-06-2008 11:49 AM

Quote:

Originally Posted by princeedward (Post 1679501)
great mod...simple and easy... work to vB 3.6.8 PL2 also...thanks... ;)

Thanks , glad you liked it;)

apiasto 12-06-2008 01:18 PM

nice work

HasanSheriff 12-06-2008 01:50 PM

I've been looking for exactly this!
What sort of load times are we all getting? Mine fluctuates between 2.1 and 2.9 seconds.
I thought this was a bit excessive considering my vB running on a dedicated server.

..::INSTALLED::..

HasanSheriff 12-06-2008 01:59 PM

I've been looking for exactly this!
What sort of load times are we all getting? Mine fluctuates between 2.1 and 2.9 seconds.
I thought this was a bit excessive considering my vB running on a dedicated server.

..::INSTALLED::..

punchbowl 12-06-2008 02:16 PM

original code:

Code:

<!-- TWO STEPS TO INSTALL LOADING TIME INDICATOR:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Abraham Joffe :: http://www.abrahamjoffe.com.au/ */

var startTime=new Date();

function currentTime(){
  var a=Math.floor((new Date()-startTime)/100)/10;
  if (a%1==0) a+=".0";
  document.getElementById("endTime").innerHTML=a;
}

window.onload=function(){
  clearTimeout(loopTime);
}

// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<script type="text/javascript">
<!-- Begin
  document.write('This page took <span id="endTime">0.0</span> seconds to load.');
  var loopTime=setInterval("currentTime()",100);
// End -->
</script>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  1.14 KB -->

funny seeing the anti plagiarism button on uk's site.

UKBusinessLive 12-07-2008 06:27 AM

Thanks Punchbowl :D

I was sent the code by one of my members without any mention of author or copyright attached to it, I will now add it to the main post.

Funny how some people prefer to stir up on here, A nice pm would suffice rather than trying to embarrass me on this thread???

In my Snowflake mod i give the author all the credit. Had i known about this one i would of done the same.

Some people don't half jump to conclusions :rolleyes:

punchbowl 12-07-2008 08:53 AM

Quote:

Originally Posted by UKBusinessLive (Post 1680069)
Thanks Punchbowl :D

I was sent the code by one of my members without any mention of author or copyright attached to it, I will now add it to the main post.

Funny how some people prefer to stir up on here, A nice pm would suffice rather than trying to embarrass me on this thread???

In my Snowflake mod i give the author all the credit. Had i known about this one i would of done the same.

Some people don't half jump to conclusions :rolleyes:

Why would I want to pm you and why would it be nice?

Sorry if it was an innocent mistake but passing off other peoples work as your own is very common and I found it ironic when I saw the anti-plagiarism button on your site. If you had used that service or even a simple google you would have found the original code intact with credits.

Don't make out I'm the bad guy because I'm not. I just think that the coder deserves credit not you. I don't understand why some third party would forward you code only after removing the credit either but then again I don't believe a word you are saying.

Did a member pm you your brilliant divx bbcode too? http://www.adventuresinjms.com/forum...showtopic=7204

:rolleyes:

UKBusinessLive 12-07-2008 10:03 AM

Quote:

Originally Posted by punchbowl (Post 1680107)
Why would I want to pm you and why would it be nice?

Sorry if it was an innocent mistake but passing off other peoples work as your own is very common and I found it ironic when I saw the anti-plagiarism button on your site. If you had used that service or even a simple google you would have found the original code intact with credits.

Don't make out I'm the bad guy because I'm not. I just think that the coder deserves credit not you. I don't understand why some third party would forward you code only after removing the credit either but then again I don't believe a word you are saying.

Did a member pm you your brilliant divx bbcode too? http://www.adventuresinjms.com/forum...showtopic=7204

:rolleyes:

Why would i want to pass someones work as my own??? if you do a google on page Load times you'll come up with Loads of scripts that enable you to do this, some with authors and copyright and some without.

Apology accepted, But your wrong again :D about the divx player, i did that myself here http://labs.divx.com/Webplayer

Its the webmasters Toolkit which allows you to do this, I saw that Vbulletin didn't have a divx code so i made it using the above, mind you it didn't work first time, but then no ones perfect ;)

I'd appriciate it if you could keep on topic here and stop posting what you think i did without any proof.

Marco van Herwaarden 12-07-2008 10:29 AM

It is not enough to just name the author in this thread. You will need to include his copyright line in the script iteself:

Code:

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Abraham Joffe :: http://www.abrahamjoffe.com.au/ */

Also if someone "gives" you a script, you should ensure that he is the copyright holder and does have the authority to redistribute the script and to give permission for further distribution. You can not just assume it is legal because someone gives it to you.

If someone suspects a release on vB.org is not according to the copyright rules, then please report it and a staff memebr will investigate. There is absolutly no reason to start long discussions on the forums about this.

UKBusinessLive 12-07-2008 10:53 AM

Thanks marco I've updated the script :)

steve1966 12-11-2008 08:20 AM

thanks

meissenation 12-16-2008 04:51 PM

Timer never stops - great idea but uninstalling until the timer is fixed.

Lustikus 12-17-2008 03:57 PM

it is counting without end it does not work for me, uninstall sorry

DungBeetle 12-19-2008 06:45 AM

Quote:

Originally Posted by meissenation (Post 1686785)
Timer never stops - great idea but uninstalling until the timer is fixed.

same to me

movslow 12-22-2008 05:46 PM

Mentioned this on the first page, it's not been fixed yet.


All times are GMT. The time now is 05:03 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.01460 seconds
  • Memory Usage 1,811KB
  • 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
  • (8)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete