DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:countdown

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin:countdown [2012-04-17 16:47]
198.47.12.250 [Usage] added info about disabling caching of page
plugin:countdown [2019-01-15 20:52] (current)
ryan.chappelle corrected download URL
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description:​ Countdown to a specific date.+description:​ Countdown to a specific date
 author ​    : Luis Machuca Bezzaza (previous authors) author ​    : Luis Machuca Bezzaza (previous authors)
 email      : luis.machuca [at] gulix.cl email      : luis.machuca [at] gulix.cl
 type       : syntax type       : syntax
-lastupdate : 2011-06-06 +lastupdate : 2019-01-13 
-compatible : Lemming, Anteater+compatible : Lemming, Anteater, Weatherwax, Binky, Frusterick Manners, Greebo
 depends ​   : depends ​   :
 conflicts ​ : conflicts ​ :
Line 13: Line 13:
 tags       : counter, date tags       : counter, date
  
-downloadurl: ​http://ryan.gulix.cl/dw/_media/desarrollo/dokuwiki/dw-plugin-countdown-latest.zip+downloadurl: ​https://chiselapp.com/user/lmachucab/repository/​dokuwiki-plugin-countdown/​zip/​countdown.zip 
 +sourceurl ​ : https://​chiselapp.com/​user/​lmachucab/​repository/​dokuwiki-plugin-clacks 
 +bugtracker : https://​chiselapp.com/​user/​lmachucab/​repository/​dokuwiki-plugin-countdown/​reportlist 
 +donationurl: ​
  
 ---- ----
Line 19: Line 22:
 The **Countdown Plugin** shows a countdown to a specific (target) date. The **Countdown Plugin** shows a countdown to a specific (target) date.
  
-**Under new management since June 11, 2009**. +**Under new management since June 11, 2009**.\\ 
- +-Previously maintained by [[ekkart@ekkart.de|Ekkart Kleinod]] (since version 2.x).\\ 
-Previously maintained by [[ekkart@ekkart.de|Ekkart Kleinod]] (since version 2.x). +-Based on even earlier work by [[rbpeters@peterro.com|Ron Peters]] (version 1.0).\\ 
- +-Which was itself a modified version of the [[http://​wakka.xiffy.nl/​countdown|nucleuswiki]] plugin by Trent Adams and Edmond Hui\\
-Based on even earlier work by [[rbpeters@peterro.com|Ron Peters]] (version 1.0). +
- +
-Which was itself a modified version of the [[http://​wakka.xiffy.nl/​countdown|nucleuswiki]] plugin by Trent Adams and Edmond Hui+
  
 **Important:​** version 2.x is not compatible with version 1.0 (syntax change of date) **Important:​** version 2.x is not compatible with version 1.0 (syntax change of date)
  
 ===== Download and Installation ===== ===== Download and Installation =====
 +Search and install the plugin using the [[plugin:​extension|Extension Manager]]. Refer to [[:​Plugins]] on how to install plugins manually.
  
-Download and install the plugin via the [[plugin:​plugin|Plugin Manager]] using the above link which always points to the **latest version**, or check the [[#​Demo|demo page]] for earlier versoins. ​As of the date of March 2011, the latest version is the version ''​2.5rc2''​, with a 2.5 //final// planned for May 2011. +As of the date of January 2019, the latest version is the version ''​2.6''​.
- +
-Refer to [[:​Plugins]] on how to install plugins manually.+
  
-:!: If you are using a previous version of the plugin, it is recommended that you **uninstall** ​the previous version before installing ​the RC.+:!: It is recommended ​you upgrade ​the plugin ​if you are using PHP>=7.0 to avoid some warnings in the code, thanks to Stefan Huehner for the corrections.
  
 ==== Previous Versions ==== ==== Previous Versions ====
  
 **Download links for previous version**: **Download links for previous version**:
 +  * [[https://​chiselapp.com/​user/​lmachucab/​repository/​dokuwiki-plugin-countdown/​]] - source control.
   * [[http://​ryan.gulix.cl/​dw/​desarrollo/​dokuwiki/​inicio]] (archive of released 2.x versions)   * [[http://​ryan.gulix.cl/​dw/​desarrollo/​dokuwiki/​inicio]] (archive of released 2.x versions)
   * [[http://​www.ekkart.de/​wp-content/​plugins/​download-monitor/​download.php?​id=6]].   * [[http://​www.ekkart.de/​wp-content/​plugins/​download-monitor/​download.php?​id=6]].
Line 151: Line 151:
 ===== Versions ===== ===== Versions =====
  
 +  * :!: version 2.6 (2019-01-13):​ corrections for PHP >= 7.0. The source code is moved to an online repository as well.
   * version 2.5rc2 (2011-03-11) maintained by Luis Machuca Bezzaza: correction of a one-day-time bug and addition of the option to display business days and server time; minor overall improvements;​ plugin.info.txt compatibility.   * version 2.5rc2 (2011-03-11) maintained by Luis Machuca Bezzaza: correction of a one-day-time bug and addition of the option to display business days and server time; minor overall improvements;​ plugin.info.txt compatibility.
   * version 2.5rc (2009-12-19) maintained by Luis Machuca Bezzaza: Czech, Spanish and Br-Portuguese language files, ability to display hours, general code rewrite to use getLang(), [[xref>​getConf]] capabilities,​ added README, CHANGELOG and VERSION.   * version 2.5rc (2009-12-19) maintained by Luis Machuca Bezzaza: Czech, Spanish and Br-Portuguese language files, ability to display hours, general code rewrite to use getLang(), [[xref>​getConf]] capabilities,​ added README, CHANGELOG and VERSION.
Line 258: Line 259:
  
 >Fixed in the latest update. Can't believe I just missed one or two lines of code. --  --- [[user>​ryan.chappelle|Luis Machuca Bezzaza]] //​2011/​06/​06 00:14// >Fixed in the latest update. Can't believe I just missed one or two lines of code. --  --- [[user>​ryan.chappelle|Luis Machuca Bezzaza]] //​2011/​06/​06 00:14//
- 
 >> updated and it works, thx  --- [[user>​oh-mark|oh-mark]] //​2011/​06/​11 02:52// >> updated and it works, thx  --- [[user>​oh-mark|oh-mark]] //​2011/​06/​11 02:52//
  
Line 396: Line 396:
 </​code>​ </​code>​
  
 +==== Feature: Annual Timer ====
 +Is it possible to have it so the countdown automatically rolls over once it has reached its target so it has a new target of next year. 
 +
 +The idea I have in mind is to have a countdown to someones birthday, and once it has reached the end of the birthday day, it increments the target year by 1 and starts the countdown all over again.
 +
 +Cheers ​
 +
 + --- [[user>​Jaella|Jaella]] //​2012/​11/​23 15:44//
 +
 +
 +==== 1250 days? ====
 +>Is it a way to show up how many **Years, Month, Days, Hours** - till to the target in 2045? There are too many days to be able to figure out when will take actually place the event...
 +
 + --- [[user>​florinko-gmail|Florin]] //​2015/​03/​24//​
 +
 +==== 1 day miscount ====
 +In the latest version there is still a problem with day count.
 +To fix that problem next code:
 +<code php>
 +$difference = $diffseconds / 86400;
 +</​code>​
 +has to be replaced by the following:
 +<code php>
 +$difference = ceil($diffseconds / 86400);
 +</​code>​
 +in plugin'​s **syntax.php** file.
  
 + --- [[user>​florinko-gmail|Anders]] //​2015/​11/​13//​
plugin/countdown.1334674066.txt.gz · Last modified: 2012-04-17 16:47 by 198.47.12.250