Back to vBulletin 4.x Add-ons

YoBroMoFo - Countdown Timer
Mod Version: 1.00, by TimberFloorAu

vB Version: 4.0.1 Rating: (1 vote - 5.00 average) Installs: 23
Released: 25 Jan 2010 Last Update: Never Downloads: 143
Not Supported Template Edits Re-usable Code Translations  



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
Click save

Then upload the js folder to forum root. Path should be:
http://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>
Add AFTER:

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-->
Change:
"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-->
Change: until Australia Day to match your event name

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-->
ensure the path is correct.

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

File Type: %1$s yobromofo-counter.zip (6.6 KB, 161 downloads)


vblts.ru supports vBulletin®, 2022-2024