Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Countdown BB Code Details »»
Countdown BB Code
Version: 1.1, by MoT3rror MoT3rror is offline
Developer Last Online: Jul 2009 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.7.x Rating:
Released: 02-28-2008 Last Update: 03-11-2008 Installs: 82
Uses Plugins Template Edits
Re-useable Code Additional Files  
No support by the author.

Description

This is a countdown hack that allows users to put a custom countdown using BB Code.

Example:
Quote:
[countdown=12/31/2020 5:00 AM;It is finally here]Count down:[/countdown]
The countdown will count down till it reaches the date then it will show the text in the option after the date. The param is the text before the countdown.

The date is in the format of m/d/yyyy h:mm AM.
m is for month.
d is for day.
y is for Year with 4 digits like 2008 not 08.
h is for the hour.
The last m is for minute and needs to be 2 digits.
The AM can be AM or PM.

Features


* Processing is done by Javascript.
* There can be multiple countdowns on a page without effecting the other countdowns on the page.

Installation With Product


1. Upload everything in the upload folder.
2. Login to your Admin Control Panel
3. Go to Plugins & Products -> Manage products
4. Click on Add/Import product
5. Browse for product-countdown37.xml and click import.
6. Edit your headinclude template and put this code at the bottom.
Quote:
<!-- Begin Countdown Javascript code -->

<script type="text/javascript" src="clientscript/countdown.js"></script>

<!-- End Countdown Javascript code -->
Installation without Product
  1. Upload everything in the upload folder.
  2. Login to your Admin Control Panel
  3. Edit your headinclude template and put this code at the bottom.
    Quote:
    <!-- Begin Countdown Javascript code -->

    <script type="text/javascript" src="clientscript/countdown.js"></script>

    <!-- End Countdown Javascript code -->
  4. Create new BB Code with these settings.
    Title: Countdown (You can make this whatever you want)
    Tag: countdown
    Replacement:
    Code:
    <span id="cntdwn"></span>
    <script type="text/javascript">
    init_countdown("{param}", "{option}");
    </script>
    Example:
    Quote:
    [countdown=12/31/2020 5:00 AM;It is finally here]Count down:[/countdown]
    Use {option}: Yes

Version Changes
  • 1.1 Fix countdown only showing when using quick reply.

Show Your Support

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

Comments
  #32  
Old 05-25-2008, 06:55 AM
Mum Mum is offline
 
Join Date: Jun 2006
Location: New Zealand
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have uninstalled this. It doesn't matter what you write on [countdown=12/31/2020 5:00 AM;It is finally here]THIS SPACE[/countdown] - it doesn't show
Reply With Quote
  #33  
Old 05-27-2008, 02:14 PM
LisaJH LisaJH is offline
 
Join Date: Nov 2007
Location: South Australia
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have to click uninstall aswell.. because it shows in preview siggy but it wont show up in posts???
Reply With Quote
  #34  
Old 06-26-2008, 10:34 PM
RickyG RickyG is offline
 
Join Date: Jan 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can this be used in the header and not in sig? I am looking to have the timers on the frontpage to advertise an event.

RickyG
Reply With Quote
  #35  
Old 06-28-2008, 01:29 AM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RickyG View Post
How can this be used in the header and not in sig? I am looking to have the timers on the frontpage to advertise an event.

RickyG
This mod was based off of this. You can use that on any page through the template system or on another page. The mod was made to be used as bb code not as something to add on to a template or page.
Reply With Quote
  #36  
Old 06-29-2008, 01:46 AM
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Location: QLD, Australia
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great here, thanks
Reply With Quote
  #37  
Old 08-28-2008, 07:40 AM
Daisyboo Daisyboo is offline
 
Join Date: Jul 2008
Location: Somerset UK
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't show for me either
Reply With Quote
  #38  
Old 08-28-2008, 01:09 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this take into account time zones?

For instance if I'm in America and another user is in New Zealand will they count down to same time despite the time differences?

Cheers
Reply With Quote
  #39  
Old 08-29-2008, 04:31 AM
Cigarcritic Cigarcritic is offline
 
Join Date: Aug 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is incomplete, text does not work and there is no child.
Reply With Quote
  #40  
Old 02-06-2009, 06:33 PM
lenzo lenzo is offline
 
Join Date: Nov 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you write better instructions about what the following and what the parameters do?

Code:
<span id="cntdwn"></span>
<script type="text/javascript">
init_countdown("{param}", "{option}");
</script>
Your description is vague and it seems a lot of people are confused by this. I understand that {option} is set to "Yes", but what do we put in the {param} part? Or do we even need this?

An actual example code with the fields put in there would be great...
Reply With Quote
  #41  
Old 07-17-2009, 01:11 PM
xyzmary2001 xyzmary2001 is offline
 
Join Date: May 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone knows if it still works on vBulletin 3.8.2?
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 03:36 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.04850 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete