Mark,
Thanks works perfectly - you can see it in action in the header here - needs some styling, but it works. Off to a conference, be back in 2 days.
Mark, Thanks works perfectly - you can see it in action in the header here - needs some styling, but it works. Off to a conference, be back in 2 days.
No problem at all. Be sure to check out the messy yet grammatically correct version above 😉
Best wishes,
Mark
Plugin now updated to V1.4. Only change is now that the conditionals have been added in for each variable so instead of doing :
{if "{months}" > "2"}
Spit this out
{/if}
you can now do the more correct version of :
{if months > 2}
Spit this out
{/if}
Nothing really major but does help to keep the code a little leaner. Updated plugin in first post and also code shown above too.
Best wishes,
Mark
Hi Simon,
Mark - great little plug-in. I used it last Christmas to good effect and am again this year so thanks for the update. However I cannot work out how to set the countdown to be for a certain time of the day - say 13:00?
Thanks for the kind words. Glad it’s coming in of use for some people. As to the time thing I’m pretty sure (Don’t hold me to this though) that if you do something like this :
{exp:mb_countdown date="6th May 2010 13:00" event="My Birthday"}
<h2>Grammatically Correct Version</h2>
{if years > 0}{years} year{if years > 1}s{/if}, {/if}{if months > 0}{months} month{if months > 1}s{/if}, {/if}{if days > 0}{days} day{if days > 1}s{/if}, {/if}{if hours > 0}{hours} hour{if hours > 1}s{/if}, {/if}{if minutes > 0}and {minutes} minute{if minutes > 1}s{/if}{/if} left until {event}
{/exp:mb_countdown}
where you have specified date=”6th May 2010 13:00” as the full parameter then I’m pretty sure that should work.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.