Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Page Loading Time Details »»
Page Loading Time
Version: Beta 1.00, by linuxututs linuxututs is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.4 Rating:
Released: 10-17-2009 Last Update: 10-19-2009 Installs: 19
Template Edits
Re-useable Code Translations  
No support by the author.

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 Now

File Type: zip pageloadingtime.zip (111.7 KB, 52 views)

Screenshots

File Type: png loadtimer.PNG (58.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 10-25-2009, 08:49 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sometimes less is more, microstats is fine for those who want all that but I'm liking this for simplicity.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:09 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.06337 seconds
  • Memory Usage 2,222KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete