Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [SOLVED] Plugin which counts days
etc wrote:
Why wouldn’t you put these dates in cf, and then call…
Hi Oleg, the plugin’s tag is <txp:glx_countdown month="2" year="2013" day="4" delimiter=" " titletxt="passed" usetitle="false">passed</txp:glx_countdown> so it makes difficult to separate the dates.
I guess it is one of those rear txp walls so the only way is to edit the glx plugin so as to output last day when $now - $when ≤ 1 but I just can’t figure out how to do it.
Last edited by colak (2013-02-04 06:27:21)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [SOLVED] Plugin which counts days
Yiannis, try to replace
$output = ($count == 1) ? "1 ".$name : "$count {$nameMulti}";
by
$output = $count ? ($count == 1 ? "1 ".$name : "$count {$nameMulti}") : "last ".$name;
Offline
Re: [SOLVED] Plugin which counts days
Thanks so much Oleg. That did it. I tested it and all is working just fine.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline