Warning: Undefined variable $filepath in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_tikidocfromcode.php on line 146 PluginCountdown | Documentation for Tiki Wiki CMS Groupware
Loading...
Plugin Countdown
This wiki plugin displays a countdown to a future date from a date in the past, together with default or custom text if desired.
{COUNTDOWN(enddate="01-Apr-2020")} __the project is done!__ {COUNTDOWN}
Would produce: the project is done! is over
2. This code,
Copy to clipboard
{COUNTDOWN(enddate="2020-03-05T22:00" show="m")} __the project is done!__ {COUNTDOWN}
Would produce: the project is done! is over
3. This code,
Copy to clipboard
{COUNTDOWN(enddate="01-Apr-2020" caldays="y" show="yod")} __the project is done!__ {COUNTDOWN}
Would produce: the project is done! is over
Note for above example
Uses caldays to count calendar days even if less than 24 hours away
4. This code,
Copy to clipboard
{COUNTDOWN(enddate="01-Apr-2010" since="n" text="before|is happening in less than a month|after|happened way less than a month ago|has passed")} __the project start date__ {COUNTDOWN}
Would produce: the project start date has passed
Note for above example
Show custom text instead of time elapsed for a date in the past.
Would produce:
14 years, 11 months, 2 days, 19 hours, 10 minutes and 58 seconds since the project start date
Note for above example
Show time elapsed since a date in the past down to the second
If you want to automatically refresh the page every 60 seconds you could either use this code:
Copy to clipboard
{HTML()}{HTML}
or get a JavaScript or jQuery plugin to get this done, maybe an Ajax call for the plugin .... if you find a better method than above, please feel free to document here.