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

Reply
 
Thread Tools
YoBroMoFo - Countdown Timer Details »»
YoBroMoFo - Countdown Timer
Version: 1.00, by TimberFloorAu TimberFloorAu is offline
Developer Last Online: Jan 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.1 Rating:
Released: 01-23-2010 Last Update: Never Installs: 23
Template Edits
Re-useable Code Translations  
No support by the author.




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:
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 Now

File Type: zip yobromofo-counter.zip (6.6 KB, 159 views)

Show Your Support

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

Comments
  #22  
Old 03-22-2010, 10:17 AM
wampforum wampforum is offline
 
Join Date: Oct 2009
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not simple enough for me it seems!
re installed and managed to get it working!! (hard been a noob sometimes!)

Is it possible to show this elsewhere then?

thanks
Reply With Quote
  #23  
Old 04-13-2010, 06:17 PM
PHILLYFAN PHILLYFAN is offline
 
Join Date: Jul 2008
Location: Hell
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alittle new to this.. i believe I did everything correctly however, it's no counting down this is all it says

seconds until Advance to Divisional Round

any reason y?
Reply With Quote
  #24  
Old 04-13-2010, 07:08 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That image doesnt exist Philly.

Did you edit the count.js as per step one ?
Reply With Quote
  #25  
Old 04-13-2010, 08:00 PM
PHILLYFAN PHILLYFAN is offline
 
Join Date: Jul 2008
Location: Hell
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sure I did it wrong, so my early apologies... this is what i have. I was on the understanding to change the numbers, this is what I have

Quote:
var month = '0'; // 1 through 12 or '*' within the next month, '0' for the current month
var day = '13'; // 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 = 9; // 0 through 23 for the hour of the day
var min = 59; // 0 through 59 for minutes after the hour
var tz = 10; // offset in hours from UCT to your timezone
var lab = 'yobromofo-countdown-timer'; // id of the entry on the page where the counter is to be inserted

function start() {displayCountdown(setCountdown(month,day,hour,min, tz),lab);}
loaded(lab,start);
Reply With Quote
  #26  
Old 04-14-2010, 03:34 AM
mmacrypt's Avatar
mmacrypt mmacrypt is offline
 
Join Date: Feb 2010
Location: Colorado
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have it installed on my test page and link the image for the guys on the site to take a look at. If they like the feel, I'm going to install it. Would be nice if the edits were a tad easier but I do like it.
Reply With Quote
  #27  
Old 04-16-2010, 08:33 PM
PHILLYFAN PHILLYFAN is offline
 
Join Date: Jul 2008
Location: Hell
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PHILLYFAN View Post
I'm sure I did it wrong, so my early apologies... this is what i have. I was on the understanding to change the numbers, this is what I have
any help please?
Reply With Quote
  #28  
Old 04-16-2010, 08:42 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That IMAGE still does not exist for us to check.


Ahhh or is that your signature ?

OK You need to be SPECIFIC mate
Reply With Quote
  #29  
Old 04-17-2010, 01:10 AM
mmacrypt's Avatar
mmacrypt mmacrypt is offline
 
Join Date: Feb 2010
Location: Colorado
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, have it installed and working. Thank you. I went ahead and changed it so it upper left on our site. If people want to see it working, feel free to look at http://mmacrypt.com/forum/forum.php, I hope that's ok that I sent a link.
Reply With Quote
  #30  
Old 04-17-2010, 01:39 AM
PHILLYFAN PHILLYFAN is offline
 
Join Date: Jul 2008
Location: Hell
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is what my js file currently says.

Quote:
var month = '0'; // 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 = 11; // 0 through 23 for the hour of the day
var min = 11; // 0 through 59 for minutes after the hour
var tz = 10; // offset in hours from UTC to your timezone
var lab = 'yobromofo-countdown-timer'; // id of the entry on the page where the counter is to be inserted

function start() {displayCountdown(setCountdown(month,day,hour,min, tz),lab);}
loaded(lab,start);
First line - First like I added a "0" cause it says 0=current month.
Second line - left alone
Third line - left alone
4th and 5th line For hour and min i change to 11. I just added a number to see if it worked.
6th line - not sure what this is ???? offset hours?
7th line - not sure what this is.

I uploaded the js to my forum root ( forum/js)
I made the edit changes like it said.

all it says in the upper right corner is -- # seconds until Off Season Starts
Reply With Quote
  #31  
Old 04-17-2010, 01:40 AM
PHILLYFAN PHILLYFAN is offline
 
Join Date: Jul 2008
Location: Hell
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mmacrypt View Post
Ok, have it installed and working. Thank you. I went ahead and changed it so it upper left on our site. If people want to see it working, feel free to look at http://mmacrypt.com/forum/forum.php, I hope that's ok that I sent a link.
how did u get it to move to the left corner? Also how did u add color to the timer?
thanks
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 04:21 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.12636 seconds
  • Memory Usage 2,333KB
  • 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
  • (5)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
  • (3)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
  • (1)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