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

  #16  
Old 12 Mar 2008, 18:41
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
It's actually called 'headinclude' - however as per my messages above, if you install it you have to refresh every time you send a message. I am waiting for a fix, i advise you to do the same until it's fixed!
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #17  
Old 12 Mar 2008, 22:55
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Version 1.1 has been released and includes the fix. Make sure to reupload all the files including the mod in the Admin CP.
Reply With Quote
  #18  
Old 13 Mar 2008, 16:18
Sandra_T Sandra_T is offline
 
Join Date: Jan 2008
Hello friends,

Iam so sorry but the programm don`t work.

Here ist a picture, please tell me if this settings are right or wrong.

http://my-pic.ath.cx/bilder/datei_1205424951.png


Thank you

Cu
Sandra_T
Reply With Quote
  #19  
Old 13 Mar 2008, 20:11
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by Sandra_T View Post
Hello friends,

Iam so sorry but the programm don`t work.

Here ist a picture, please tell me if this settings are right or wrong.

http://my-pic.ath.cx/bilder/datei_1205424951.png


Thank you

Cu
Sandra_T
You are supposed to upload the xml file by
Plugins & Products -> Manage Products -> [Add/Import Product] -> Then browse for the xml file and press upload.
Reply With Quote
  #20  
Old 14 Mar 2008, 18:02
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
What could i remove so that it just says days?
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #21  
Old 14 Mar 2008, 18:12
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
Also i noticed it says '01 Days, 16 Hours, 48 Minutes, 55 Seconds.' It should really say 1 Day (no s), can this be fixed, if possible?
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #22  
Old 14 Mar 2008, 21:34
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by Mum View Post
Also i noticed it says '01 Days, 16 Hours, 48 Minutes, 55 Seconds.' It should really say 1 Day (no s), can this be fixed, if possible?
Try this code. Find this in your countdown.js file

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And change it to this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #23  
Old 15 Mar 2008, 07:47
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
That will still say '1 Days' - won't it? Which is gramatically incorrect.
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #24  
Old 15 Mar 2008, 10:15
DragonBlade's Avatar
DragonBlade DragonBlade is offline
 
Join Date: May 2006
This would be perfect if it was not dependent on the user's time so they can exploit it.
Reply With Quote
  #25  
Old 17 Mar 2008, 07:36
Conner85 Conner85 is offline
 
Join Date: Jan 2008
When I go to save it in my sig, the page goes blank.
Reply With Quote
  #26  
Old 17 Mar 2008, 22:22
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by Conner85 View Post
When I go to save it in my sig, the page goes blank.
Did this start happening when you added this BB code?
Reply With Quote
  #27  
Old 18 Mar 2008, 08:06
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
Originally Posted by Mum View Post
What could i remove so that it just says days?
Just wondering if this is possible? I only want it to say 45 days... not hours, mins, seconds... etc.
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #28  
Old 18 Mar 2008, 08:56
Sandra_T Sandra_T is offline
 
Join Date: Jan 2008
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
Reply With Quote
  #29  
Old 18 Mar 2008, 19:32
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
Sandra_T - you need to follow the instructions in the top post
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #30  
Old 19 Mar 2008, 04:29
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Originally Posted by Mum View Post
Just wondering if this is possible? I only want it to say 45 days... not hours, mins, seconds... etc.
Yes you can change the the display of the countdown by the countdown.js file.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You just change the DisplayFormat to what you want it to be. Like if you only wanted days you can do something like this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

%%D%% = Days
%%H%% = Hours
%%M%% = Minutes
%%S%% = Seconds
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:22.

Layout Options | Width: Wide Color: