Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-12-2008, 06:02 AM
BTLSDREDD BTLSDREDD is offline
 
Join Date: Jul 2008
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Event Timer for Home page

I've seen a bunch of BB code timers for users to put count downs in the signatures.

I need help, I'm running 3.7.2 & need a timer which would be tied in with calendar events. So if I schedule an event in the calendar I'd like it to be displayed at the top of my forum for my members to see right away.

I'd like to to look something like this, with editable colors:


I'd greatly appreciate any help & if one is already made please point me in the right direction.
Reply With Quote
  #2  
Old 10-24-2008, 06:38 PM
MDeLuca MDeLuca is offline
 
Join Date: Mar 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found this and it works great.

We're stil running 3.6.5 so no sure about 3.7x

You can change the notices for various days left to target date or just delete what you don't need.

You can see it in action here:
http://www.doofclenasmc.com/forums/

Go to Edit Header:

Find this:
<!-- content table -->

Add the following code below:

<div align='center'>
<script type="text/javascript">
<!-- Begin
var date = new Date("June 15, 2009");
var description = " --ES June 15-18, 2009--";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<h3><center>")
if (days > 100) {
document.write(days+1 + " Days 'til Eureka Springs!" + description);
}
else if (days > 60) {
document.write(days+1 + " Days 'til Eureka Springs! Gettin Closer!" + description);
}
else if (days > 30) {
document.write(days+1 + " Days 'til Eureka Springs! Please review the safety info and send ICE info!" + description);
}
else if (days > 14) {
document.write(days+1 + " Days 'til Eureka Springs! We are talking way less than 100s of days here!" + description);
}
else if (days > 8) {
document.write(days+1 + " Days 'til Eureka Springs! Moistness levels are rising!" + description);
}
else if (days == 8) {
document.write(days+1 + " Days 'til Eureka Springs! Get your bike back together!!!" + description);
}
else if (days == 7) {
document.write(days+1 + " Days 'til Eureka Springs! Check your list!!!" + description);
}
else if (days == 6) {
document.write("One week 'til Eureka Springs! Its almost here!!!" + description);
}
else if (days == 5) {
document.write(days+1 + " Days 'til Eureka Springs! We are talking days here!!!" + description);
}
else if (days == 4) {
document.write(days+1 + " Days 'til Eureka Springs! Pack the bike!!!" + description);
}
else if (days == 3) {
document.write(days+1 + " Days 'til Eureka Springs! Don't do anything stupid now!!!" + description);
}
else if (days == 2) {
document.write(days+1 + " Days 'til Eureka Springs! Some of us are heading out!!!" + description);
}
else if (days == 1) {
document.write("C'YA!!!... We have left the building! " + description);
}
else if (days == 0) {
document.write("We are having a GREAT TIME... Wish you were here!" + description);
}
else if (days == -1) {
document.write("Let me check, yup we are still having a GREAT TIME... Wish you were here!" + description);
}
else if (days == -2) {
document.write("Oh my God... It doesn't get any better!" + description);
}
else if (days == -3) {
document.write("Maybe drakle toof muccch... Miss you!" + description);
}
else if (days == -4) {
document.write("Heading home... can't wait til next year!" + description);
}
else {
document.write("2009 Doofapalooza ... Yet To Be Decided ... Date To Be Decided... but it will be a great time!!!" + description + "!");
}
document.write("");
// End -->
</script></div>
Reply With Quote
  #3  
Old 10-29-2008, 10:36 PM
BTLSDREDD BTLSDREDD is offline
 
Join Date: Jul 2008
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thnx but this doesn't countdown by the second. What I'm looking for is something that will allow me to post several events & have a count down timer for each separate event.
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 02:44 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.03336 seconds
  • Memory Usage 2,178KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete