Loading...
 
Skip to main content

Architecture / Installation


[Solved] Contdown plugin error - need help

posts: 82 Norway
this code:
Copy to clipboard
{COUNTDOWN(enddate=>April 1 2020)}countdown message{COUNTDOWN}


correctly produces this when i "Preview"
3964 days, 9 hours, 8 minutes and 19 seconds countdown message

but when I "Save" the final result is this:
-14388 days, -19 hours, -53 minutes and -42 seconds countdown message

any ideas to fix this would be appreciated. Im on tikiwiki v3
(It worked correctly when I wrote the code in this forum post)

Kai

posts: 215

I can recreate what you are seeing if I include the ">" after the equal sign. Change it to "=>", or remove it and just use the "=".

{COUNTDOWN(enddate=>April 1 2020)}countdown message{COUNTDOWN}
countdown message is over

or

{COUNTDOWN(enddate=April 1 2020)}countdown message{COUNTDOWN}
countdown message is over


posts: 82 Norway

Thanks that is great 😀

I went to the tiki doc document http://doc.tikiwiki.org/tiki-index.php?page=PluginCountdown&bl=n where I got this error from to correct it. It > is there when I view the page, but when I go to edit it, it is not there.

If anyone understands how to take away the >, it would be great for everyone reading those instructions.

Thanks again TomJarvis (who ever you are) you made my morning.😊

Kai Gilb www.gilb.com


posts: 215
I updated the countdown document page you refereed to so it displays correctly. I think there was a change to the CODE plugin which was causing the ">" to be changed to ">", I added the "ishtml=1" parameter to the CODE plugin which told it not to alter HTML special characters.

posts: 1817 Catalan Countries
Yes, this comes from a known bug in Tiki 3.0, ans is being patched in order to work without the need of this extra param in folowing releases (4.0 for sure, and 3.1, hopefully).