The Arcive of vBulletin Modifications Site. |
|
YoBroMoFo - Countdown Timer Details »»
|
|||||||||||||||||||||||||||
![]() YoBroMoFo - Countdown Timer Takes 5 minutes to upload, and do 2 template edits. Please mark installed if you use, as all of our modifications are totally free of charge and openly shared with the vbulletin community. Anyhoo - Let's Get started. ************* STEP ONE ************* Open count.js from the js folder Change these lines below to match the event you are counting down to: Code:
var month = '*'; // 1 through 12 or '*' within the next month, '0' for the current month var day = '26'; // day of month or + day offset var dow = 3; // day of week sun=1 sat=7 or 0 for whatever day it falls on var hour = 0; // 0 through 23 for the hour of the day var min = 0; // 0 through 59 for minutes after the hour var tz = 10; // offset in hours from UTC to your timezone Then upload the js folder to forum root. Path should be: www.yoursite.com/forum/js click merge if this folder exists ************* STEP TWO ************* goto admincp >> styles and templates >> your template >> search for: header and open it find: Code:
<input type="hidden" name="vb_login_md5password_utf" />
</form>
</vb:if>
Code:
<!--yobromofo.com countdown timer start--> <li><span id="yobromofo-countdown-timer"></span> seconds <a href="http://www.yobromofo.com/forum/f3/the-australia-day-thread-17840/">until Australia Day</a></li> <!--yobromofo.com countdown timer end--> "http://www.yobromofo.com/forum/f3/the-australia-day-thread-17840/" to the forum thread this countdown refers to. If you dont need a link, then change to... Code:
<!--yobromofo.com countdown timer start--> <li><span id="yobromofo-countdown-timer"></span> seconds until Australia Day</li> <!--yobromofo.com countdown timer end--> Click SAVE ************* STEP TWO ( final step ) ************* open headinclude at very bottom add Code:
<!--yobromofo.com countdown js file start--> <script type="text/javascript" src="js/count.js"> </script> <!--yobromofo.com countdown js file end--> Click save. You are DONE ! to change the event date etc. just edit the js file, reupload you are done. to change the event title, change it in the header template. Have fun. Steve aka timberfloorau from YoBroMoFo.com British Expats Forum Download Now
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Pretty cool tagged
|
|
#3
|
||||
|
||||
|
FMD Von you are on the ball today :up:
|
|
#4
|
||||
|
||||
|
You can remove hours and minutes quite easily and replace with :
Open the js file. find: Code:
= days+' days + '+hours+' hours '+mins+' minutes ' Code:
= days+' days + '+hours+' : '+mins+' : ' To get rid of seconds. open header template: find: Code:
</span> seconds Code:
</span> |
|
#5
|
||||
|
||||
|
|
|
#6
|
||||
|
||||
|
Thanks Dr.
It complies in FF and Chrome, but not in IE. Hope it comes in useful. Ste |
|
#7
|
|||
|
|||
|
Is it possible to inside this in a widget....?
|
|
#8
|
||||
|
||||
|
Of course, but can you tell me what you would want it to look like ?
|
|
#9
|
|||
|
|||
|
I would put it as a Widget to countdown to change the time.
etg 2011 |
|
#10
|
||||
|
||||
|
I dont have much to do with widgets, is this for forum or cms
|
![]() |
|
|