The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Page Loading Time Details »» | |||||||||||||||||||||||||||||
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> ( 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"><!-- --> Replace: Code:
<input Size="15" Name="t" Value="Plz Wait"><!-- --> Code:
<input size="10" name="t"/ style="color:white;border:none;background:#8C411C;"><!-- --> ( Thanks "Front Range 4x4" for the help ) I Placed mine before Code:
$ad_location[ad_footer_start] Download Now
Screenshots
Show Your Support
|
Comments |
#12
|
||||
|
||||
Nice, marked installed.
However, you should put the instructions also into the zip file. |
#13
|
||||
|
||||
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. |
#14
|
||||
|
||||
nice mod
and I assume it would be easy enough to add a condition to only show this to staff? |
#15
|
|||
|
|||
Quote:
And Quote:
I'm sure there's plenty of members here that could help you with that to though. Thanks, |
#16
|
|||
|
|||
Quote:
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> 6 and 7 are my Administrators and Moderators. Hope that helps you. Thanks, |
#17
|
||||
|
||||
Very good this hack, I just test on my forum and it worked.
Congratulations! |
#18
|
|||
|
|||
Quote:
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, |
#19
|
|||
|
|||
Thanks this will be useful for myself.
|
#20
|
|||
|
|||
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; "> |
#21
|
|||
|
|||
This old mod will show you page load times and server load. Even works on 3.8
https://vborg.vbsupport.ru/showthrea...ght=microstats |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|