RSS Feed Subscribe to RSS Feed

Countdown Timer v1.95 Technical Preview

Okay folks, this is a technical preview of version 2.0 of the Countdown Timer.

The biggest change is that timers can now countdown automagically with JavaScript. Now, a word on the JS. This is the first version and there are only two modes: on and off. That means that you can’t change the format of the Javascript countdown (it will always display the years, months, days, hours, minutes, and seconds). I’m working on an elegant solution to this problem and would welcome any code, comments, suggestions, feedback, etc.

Other updates include:

  • Tabbed $afdnOptions array to make it more readable
  • Fixed strtotime typo
  • Brought time display inline with current WordPress practice. This fixes the dreaded timezone glitch.
  • Strip non-sig zeros option added
  • Fixed bug where “No dates present” would _not_ show if the data was returned instead of echo’d

In terms of stability, everything seems fine; I am currently using this Technical Preview on AFdN.

Download the file and try the goodness

Tags: , , , , , ,

Reader's Comments

  1. harry | November 13th, 2007 at 9:01 pm

    Sound interesting, this supports WP 2.3.1 version?

    Reply to this comment
  2. Andrew Ferguson | November 14th, 2007 at 3:46 pm

    Yes. I’m currently running WP 2.3.1 and it works fine for me.

    Reply to this comment
  3. harry | November 17th, 2007 at 8:43 am

    Pretty easy, thanks a lot.

    Reply to this comment
  4. Andrew Ferguson dot NET » Blog Archive » Countdown Timer v1.91 | December 5th, 2007 at 10:42 am

    [...] this is a step back because I already released 1.95 as a Technical Preview. However, I wanted to fix a bug without having to release the incomplete features included in the [...]

    Reply to this comment
  5. Andrew Ferguson dot NET » Blog Archive » Countdown Timer v1.97 Technical Preview 2 | December 28th, 2007 at 3:50 am

    [...] I had and then taking the PHP code I was already using and converted it to Javascript. This is the “elegant solution” I mentioned I was looking for [...]

    Reply to this comment

Leave a Comment

Gravatar: Get your picture displayed next to your comment: http://gravatar.com

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Plugin Help: If your requesting help about a plugin, please provide as much information as possible. At the very least, include your WordPress Version and the Plugin Version!