Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 10-19-2009, 09:58 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, marked installed.

However, you should put the instructions also into the zip file.
Reply With Quote
  #13  
Old 10-19-2009, 10:13 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disabled it for now, some problems occur.
For once... I don't like the box with the with backgrond.
Next to that, it's not working with me, it only gives a "plz wait" which I changed in "Please wait" but then it does not fit. That doesn't matter, but it does nog give the page loading time.

How do I get the page loading time and how do I get rid of the box? I would like it to be just plain text and transparant so it won't affect my background color.
This is how it looks at my forums now:
Attachment 105471

Would also be nice to have the text as small as the rest.
Reply With Quote
  #14  
Old 10-19-2009, 10:59 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod
and I assume it would be easy enough to add a condition to only show this to staff?
Reply With Quote
  #15  
Old 10-20-2009, 01:45 AM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Black Tiger View Post
Disabled it for now, some problems occur.
For once... I don't like the box with the with backgrond.
Next to that, it's not working with me, it only gives a "plz wait" which I changed in "Please wait" but then it does not fit. That doesn't matter, but it does nog give the page loading time.

How do I get the page loading time and how do I get rid of the box? I would like it to be just plain text and transparant so it won't affect my background color.
This is how it looks at my forums now:
Attachment 105471

Would also be nice to have the text as small as the rest.
I'm sorry your not getting this to work for you, because by all rights there is no reason for it not to. ( Unless your changing the script somehow )

And

Quote:
Loco.M
nice mod
and I assume it would be easy enough to add a condition to only show this to staff?
I'm going to start working with the vBulletin's <if condition >'s , maybe tomorrow for this "Hit Counter" Plugin I'm working on. And then I'll be able to tell you more about what you'd need to do to have it only show for certain groups etc..

I'm sure there's plenty of members here that could help you with that to though.

Thanks,
Reply With Quote
  #16  
Old 10-20-2009, 03:12 AM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loco.M View Post
nice mod
and I assume it would be easy enough to add a condition to only show this to staff?
Here use this

Code:
<if condition="is_member_of($vbulletin->userinfo, 6, 7)"><!--A1 --><body onLoad="show_loading_time()"><!-- -->
<!--A1 -->
<form name="f" onSubmit="0"> Page Loading Time:
<input Size="13" Name="t" Value="loading..."><!-- --></if>
Just change the usergroup id's to whoever you want to show the load time to.
6 and 7 are my Administrators and Moderators.

Hope that helps you.

Thanks,
Reply With Quote
  #17  
Old 10-20-2009, 03:32 AM
ZEHH's Avatar
ZEHH ZEHH is offline
 
Join Date: Oct 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very good this hack, I just test on my forum and it worked.

Congratulations!
Reply With Quote
  #18  
Old 10-20-2009, 05:14 AM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Black Tiger View Post
Disabled it for now, some problems occur.
For once... I don't like the box with the with backgrond.
Next to that, it's not working with me, it only gives a "plz wait" which I changed in "Please wait" but then it does not fit. That doesn't matter, but it does nog give the page loading time.

How do I get the page loading time and how do I get rid of the box? I would like it to be just plain text and transparant so it won't affect my background color.
This is how it looks at my forums now:
Attachment 105471

Would also be nice to have the text as small as the rest.
My bad "Black Tiger", you where partially right anyway.
I found it doesn't show while viewing threads.
But that is the Only place on My board that it doesn't load the time.

Once again, My Bad People, but its still a neat little hack regardless, is the only reason I don't delete it.

Plus I'm sure someone will come up with a fix and/or work around for us on this.

Cheers,
Reply With Quote
  #19  
Old 10-25-2009, 12:35 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks this will be useful for myself.
Reply With Quote
  #20  
Old 10-25-2009, 03:08 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I placed this only on Forumhome and changed the formatting to eliminate the ugly white box so it shows up simply as a line of text. You don't need the please wait. In the example below the text is white and background matches my site. Substitute your own colors.

<input size="10" name="t"/ style="color:white;border:none;background:#8C411C; ">
Attached Images
File Type: jpg screenshot_01.jpg (21.4 KB, 0 views)
Reply With Quote
  #21  
Old 10-25-2009, 08:20 PM
Andyrew Andyrew is offline
 
Join Date: Aug 2005
Location: UK
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This old mod will show you page load times and server load. Even works on 3.8

https://vborg.vbsupport.ru/showthrea...ght=microstats
Attached Images
File Type: jpg screen_2009-10-25 21.21.59.jpg (7.2 KB, 0 views)
Reply With Quote
Reply


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 07:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08043 seconds
  • Memory Usage 2,349KB
  • Queries Executed 26 (?)
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
  • (6)bbcode_code
  • (4)bbcode_quote
  • (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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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