Countdown timers
This module allows you write a post once with a future event date in mind, and then forget about it! Every time the forum post is viewed, the number of days until the event occurs will be updated. When the date arrives, the alternate text is displayed. Great for announcements!
The syntax for this TextPart is [countdown:eventDate:beforeText:afterText]
where
- countdown is the TextPart name (case-insensitive)
- eventDate is the date for the event
- beforeText is the text to display before the event date arrives (include _value_ in text for replacement with number of remaing days)
- afterText is the text to display after the event date has arrived (no replacement allowed)
Sample
[countdown:2/17/06:Only _value_ days until the final release of CS 2.0:CS 2.0 is finally here!]
Before Feb 17th users will see “Only xx days until the final release of CS 2.0″, where xx = (2/17/06 - DateTime.Now).Days
On & After Feb 17th users will see “CS 2.0 is finally here!”
[countdown:09/27/2006:Only _value_ days till my 29th Birthday:I'm 29! Happy Birthday NITROX!]
Filed Under: technology






Add A Comment
You must be logged in to post a comment.