Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Countdown BB Code Details »
Countdown BB Code
Mod Version: 1.1, by MoT3rror (Member) MoT3rror is offline
Developer Last Online: Jul 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (2 votes - 4.50 average) Installs: 20
Released: 29 Feb 2008 Last Update: 12 Mar 2008 Downloads: 158
Not Supported Uses Plugins Template Edits Additional Files Re-usable Code  

Description

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

Example:
[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.
<!-- 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.
    <!-- 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:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Example:
    [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.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	screenshot.jpg
Views:	672
Size:	30.8 KB
ID:	76493  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements Countdown BB Code MoT3rror vBulletin 3.7 Add-ons 43 27 Feb 2012 09:56

  #31  
Old 19 Mar 2008, 04:32
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by Sandra_T View Post
Hi... Iam to stupid because this countdown woun`t be play on my Board.

I load the file in this folder

"/board/includes/xml/product-countdown368.xml"

and the *.js file in this folder

"/board/clientscript/countdown.js"

Is this correct?

Hier are some screenshots:

http://www.pic-share.eu/image/1cd116becd

http://www.pic-share.eu/image/21aed92655

http://www.pic-share.eu/image/e3a2e9b85b

Are these settings also correct?


Thank you all people


Sandra_T
Also I would like to suggest the website PhotoBucket. You don't have to deal with ads as much as the www.pic-share.eu.
Reply With Quote
  #32  
Old 20 Mar 2008, 04:39
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
Originally Posted by DragonBlade View Post
This would be perfect if it was not dependent on the user's time so they can exploit it.
How could they expliot it?
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #33  
Old 22 Mar 2008, 19:24
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by Mum View Post
How could they expliot it?
Sorry about the slow response. The time for the countdown is based on the user time because it uses Javascript. One user could be in Europe and another in the US, the Europe and US users would each see different times.
Reply With Quote
  #34  
Old 22 Mar 2008, 20:06
LilSniper LilSniper is offline
 
Join Date: May 2007
does NOT work for 3.6.7: database error
Reply With Quote
  #35  
Old 23 Mar 2008, 02:40
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
So how would you make it the same for everyone then? I'd love something that really works. I've uninstalled this one at present.
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #36  
Old 23 Mar 2008, 05:34
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by LilSniper View Post
does NOT work for 3.6.7: database error
Install the with out uploading the plugin. The instructions are in the first post.
Reply With Quote
  #37  
Old 23 Mar 2008, 05:37
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by Mum View Post
So how would you make it the same for everyone then? I'd love something that really works. I've uninstalled this one at present.
There is really no way without sending requests to the server. This would lead to using up a lot of bandwidth and causing the load to go up on the server.
Reply With Quote
  #38  
Old 23 Mar 2008, 11:19
gibigbig gibigbig is offline
 
Join Date: Jul 2007
Database SQL error when importing product in vb 3.6.8 level patch 2
Reply With Quote
  #39  
Old 24 Mar 2008, 01:14
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by gibigbig View Post
Database SQL error when importing product in vb 3.6.8 level patch 2
Can you copy and paste the error here?
Reply With Quote
  #40  
Old 24 Mar 2008, 01:45
gibigbig gibigbig is offline
 
Join Date: Jul 2007
sorry im not going to expose my forum to a database error again, its too important. thankfully nothing was harmed.
it may be because i have vbseo installed?
Reply With Quote
  #41  
Old 24 Mar 2008, 02:21
Elenna Elenna is offline
 
Join Date: Jan 2006
Location: St. Charles, MO
Real name: Dana
Database error doesn't mean that it will harm your database, it just means that the commands you're trying to run on it aren't working. It's hard to troubleshoot without an error message.
Reply With Quote
  #42  
Old 26 Mar 2008, 20:25
Elenna Elenna is offline
 
Join Date: Jan 2006
Location: St. Charles, MO
Real name: Dana
Does anyone know how to have this take time zones into consideration?

For example, I have this code set to countdown until 8pm tonight. Members of other time zones are seeing it count down until 8pm their time, but I want it to countdown until my time, as this is an event.
Reply With Quote
  #43  
Old 26 Mar 2008, 20:47
Elenna Elenna is offline
 
Join Date: Jan 2006
Location: St. Charles, MO
Real name: Dana
Update to above. The javascript author's web site mentions using an additional UTC or time zone entry in it:
http://www.hashemian.com/tools/javas...own-faq.htm#q3

Q3- How does the UTC time work?
A- If your target date signifies an event at a certain location, you should append your UTC (Coordinated Universal Time) to your date. UTC is also referred to as GMT (Greenwich Mean Time). See Wikipedia article on UTC.
The UTC time is never adjusted so if you are in a Daylight savings zone, time changes could complicate matters. For example The US northeast is 5 hours behind UTC in standard time and 4 hours behind UTC in daylight savings time.
So if you are hosting an event in northeastern United States on July 11, 2015 at 4 PM, you would specify "07/11/2015 4:00 PM UTC-0400", as that region is generally under daylight savings during that time. Alternatively you could specify "07/11/2015 4:00 PM EDT". In this case EDT is used to indicate Eastern Daylight Time, rather than EST (Eastern Standard Time).
Reply With Quote
  #44  
Old 28 Aug 2008, 08:16
Daisyboo Daisyboo is offline
 
Join Date: Jul 2008
Never mind found an updated one *doh*
Reply With Quote
  #45  
Old 02 Oct 2009, 08:17
ricardoNJ's Avatar
ricardoNJ ricardoNJ is offline
 
Join Date: Sep 2008
Hi, I want to translate it to other language [spanish]. How can I do that?
Thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 20:19.

Layout Options | Width: Wide Color: