vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Page Loading Time (https://vborg.vbsupport.ru/showthread.php?t=225476)

linuxututs 10-17-2009 10:00 PM

Page Loading Time
 
1 Attachment(s)
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 :cool: )


I Placed mine before
Code:

$ad_location[ad_footer_start]
Cheers,

COL NIL SATIS 10-18-2009 01:19 PM

Nice

clicked installed!!!

BucWiLd 10-18-2009 08:43 PM

gonna give it a shot..maybe, waiting for more feedback

Daryn 10-19-2009 12:30 AM

Using vbAdvanced. I get a time on the homepage, but just get plz wait on every other page.

dacho 10-19-2009 12:35 AM

10x man

drbox 10-19-2009 03:47 AM

thanks

installed

how make show as text not in text box

abdobasha2004 10-19-2009 04:59 AM

thanks, it is good

linuxututs 10-19-2009 05:05 AM

1 Attachment(s)
Quote:

Originally Posted by Daryn (Post 1901872)
Using vbAdvanced. I get a time on the homepage, but just get plz wait on every other page.

I have vBadvanced Installed also, and Having no problems with showing.
( Anyone else seen this ? )

( I've also done implemented this hack on 3 other sites )

And as far as customizing the box. I studied the code myself before ever posting it here, and don't see how to do it myself with my meager coding skills ( I get by though ... )

All of you are welcome to improve this anyway you see fit.
But, please post how you done it so the rest of Us can benefit from it.

I have a counter plugin I've created ( re-done someone elses code ) also, but its counting every page load and I'm not that good with vBulletin code as of yet.

If anyone is interested in improving that plugin, It would be GREAT for the community !

No need for linkbacks to the free web-counters that's out there.

Cheers,

meissenation 10-19-2009 12:28 PM

Installed on my board - changed "Plz Wait" to "Please Wait" - Plz just seems too immature to have on a public board.

linuxututs 10-19-2009 03:12 PM

Good idea, but I have only even seen it a couple of times when I had added some extra forum from the admin panel. ( Took a little longer for the page to load )

Glad everyone's liking it.

Thanks,

P.S. Think I'll change mine to " loading... " :D


All times are GMT. The time now is 12:37 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.01113 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
  • (5)bbcode_code_printable
  • (1)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