A
acpan author
Hi Cristian, Today, I bought the CountDown Plugin at http://codemechanicslab.com/marketplace/plugin_demo/countdown_list.php
and it is really nice and shows the real time update of time counter on my list page which is exactly what i want.
Thanks for the nice plugin. I have some questions regarding customization:
- How can i add the other field data to the count down, basically i want the date to be shown on top of the count down.
i am thinking at the custom code:
$value = $data["date_schedule"]."<br/>".$value;
- How can i add color to it? Example if less than 30 minutes, make the time red, else green (Possible?)
- How can i format the time, i read the help, there is compact setting and other customization help but not much idea after reading a few times.
In short, Could you advise how can i achieve the following for the count down field: 12 Jan 2014 14:12:01 (This is from another field $data["date_shcedule"])
Waiting in (This is just a text i want to prepend)
23h 12m 43s (This is the new format for count down) And format it red if less than 30 minutes else green. Also can you give example for the help below: / Build your own layout for the countdown.
Create your own customised layout for more control over the countdown appearance.
Indicate substitution points with '{desc}' for the description,
'{sep}' for the time separator,
'{pv}' where p is 'y' for years, 'o' for months, 'w' for weeks,
'd' for days, 'h' for hours, 'm' for minutes, or 's' for seconds
and v is 'n' for the period value, 'nn' for the period value with
a minimum of two digits, 'nnn' for the period value with a minimum
of three digits, or 'l' for the period label (long or short form depending on the compact setting),
or '{pd}' where p is as above and d is '1' for the units digit, '10' for the tens digit, '100'
for the hundreds digit, or '1000' for the thousands digit.
If you need to exclude entire sections when the period value is zero and
you have specified the period as optional, surround these sections
with '{p<}' and '{p>}', where p is the same as above. Your layout can just be simple text, or can contain HTML markup as well.
You can even embed your HTML within the countdown division/span and reference it from there.
/ if i want to exclude the countdown when it is zero, what should i do with '{p<}' and '{p>}' ? Many thanks and good luck to your sale. AC Pan
|
|