plugin:countdown
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:countdown [2015-03-25 02:59] – [Feature: Annual Timer] 78.97.226.2 | plugin:countdown [2022-05-31 17:08] (current) – [Fix for "DateInterval::format() expects exactly 1 parameter, 0 given”] kkue | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : luis.machuca [at] gulix.cl | email : luis.machuca [at] gulix.cl | ||
type : syntax | type : syntax | ||
- | lastupdate : 2011-06-06 | + | lastupdate : 2020-11-01 |
- | compatible : Lemming, Anteater | + | compatible : Lemming, Anteater, Weatherwax, Binky, Frusterick Manners, Greebo |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
tags : counter, date | tags : counter, date | ||
+ | version | ||
- | downloadurl: | + | downloadurl: |
+ | sourceurl | ||
+ | bugtracker : https:// | ||
+ | donationurl: | ||
---- | ---- | ||
Line 23: | Line 27: | ||
-Based on even earlier work by [[rbpeters@peterro.com|Ron Peters]] (version 1.0).\\ | -Based on even earlier work by [[rbpeters@peterro.com|Ron Peters]] (version 1.0).\\ | ||
-Which was itself a modified version of the [[http:// | -Which was itself a modified version of the [[http:// | ||
+ | |||
+ | **Important: | ||
**Important: | **Important: | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
+ | Search and install the plugin using the [[plugin: | ||
- | Download and install the plugin via the [[plugin: | + | :!: 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. |
- | + | ||
- | Refer to [[: | + | |
- | + | ||
- | :!: If you are using a previous version of the plugin, it is recommended that you **uninstall** the previous version before installing | + | |
==== Previous Versions ==== | ==== Previous Versions ==== | ||
**Download links for previous version**: | **Download links for previous version**: | ||
- | * [[http://ryan.gulix.cl/dw/desarrollo/dokuwiki/inicio]] (archive of released 2.x versions) | + | * [[https://chiselapp.com/user/lmachucab/repository/dokuwiki-plugin-countdown/]] - source control. |
* [[http:// | * [[http:// | ||
- | ==== Demo ==== | ||
- | |||
- | :!: [[http:// | ||
- | |||
- | Examples of use and more information can be found on [[http:// | ||
- | |||
- | ^ {{http:// | ||
- | | The output of the '' | ||
===== Usage ===== | ===== Usage ===== | ||
Line 62: | Line 57: | ||
XX days [HH:MM] since description | XX days [HH:MM] since description | ||
- | (where the '' | + | (where the '' |
Possible formats of //date// are all [[http:// | Possible formats of //date// are all [[http:// | ||
Line 79: | Line 74: | ||
The plugin is configurable in some ways since version 2.0. | The plugin is configurable in some ways since version 2.0. | ||
- | There are six parameters that are configurable, | + | There are seven parameters that are configurable, |
- | **Visibility of Countdown | + | ^ Visibility of Target |
- | + | ^ Parameter | |
- | The parameter | + | |
Example: | Example: | ||
Line 91: | Line 85: | ||
XX days until description (mm/ | XX days until description (mm/ | ||
- | **Short form for Today**: | + | ^ Short form for today || |
- | + | | Parameter | |
- | The parameter | + | |
Example: | Example: | ||
Line 99: | Line 92: | ||
Today is description | Today is description | ||
- | **Display | + | ^ Display |
- | + | | Parameter | |
- | The parameter | + | |
Examples: | Examples: | ||
Line 107: | Line 99: | ||
XX days HH:MM until description (mm/ | XX days HH:MM until description (mm/ | ||
- | ==== Parameters in the Latest Release ==== | + | ^ Display All Days || |
+ | ^ Parameter '' | ||
- | **Display business | + | Examples: |
+ | (with option diabled) | ||
+ | BB months DD days HH:MM until description (mm/ | ||
+ | (with option enabled) | ||
+ | NNNNN days HH:MM until description (mm/ | ||
- | The parameter | + | ^ Display Business Days (estimate) |
+ | ^ Parameter | ||
Examples: | Examples: | ||
Line 117: | Line 115: | ||
XX (BB) days until description | XX (BB) days until description | ||
- | **Server Time Message** | + | ^ Announce |
- | + | ^ Parameter '' | |
- | This parameter is a Boolean that determines whether | + | |
Examples: | Examples: | ||
Line 148: | Line 145: | ||
===== Versions ===== | ===== Versions ===== | ||
+ | * :!: version 3.0 (2020-11-01): | ||
+ | * version 2.6 (2019-01-13): | ||
* 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; | * 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; | ||
* 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> | * 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> | ||
Line 159: | Line 158: | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | '' | ||
Does this plugin work properly with leap years? | Does this plugin work properly with leap years? | ||
Line 406: | Line 406: | ||
--- [[user> | --- [[user> | ||
+ | |||
+ | > This one is in the plans, but is unfortunately not yet tested, as the strategy used for internationalization inherited from legacy versions of the plugin, makes it // | ||
+ | |||
+ | ==== 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; | ||
+ | </ | ||
+ | has to be replaced by the following: | ||
+ | <code php> | ||
+ | $difference = ceil($diffseconds / 86400); | ||
+ | </ | ||
+ | in plugin' | ||
+ | |||
+ | --- [[user> | ||
+ | |||
+ | > The plugin now uses PHP's '' | ||
+ | |||
+ | ==== Fix for " | ||
+ | Add quotes in format-brackets, | ||
+ | <code php> | ||
+ | $Text1= $dt_diff-> | ||
+ | </ | ||
+ | --- [[user> | ||
+ |
plugin/countdown.1427248799.txt.gz · Last modified: 2015-03-25 03:00 (external edit)