Warning: The author of this contribution does not provide support for it anymore.

Count Down

Correcting for Plural days hours - Count Down

Correcting for Plural days hours

by Cubguy501 » Mon Feb 07, 2011 10:03 pm

Very nice mod... i like it i would suggest one thing is a correction for When days = 1 display "Day" and when days= greater than 1 display "Days". and likewise with the hours.... I changed mine to display the "s" in both cause its plural 99 percent of the time.....
Also can the background color be changed with a simple backgroundcolor=hex color?

Thanks dave
Cubguy501
Registered User
Posts: 136
Joined: Mon Feb 07, 2011 8:39 pm
Contact:

Re: Correcting for Plural days hours

by wang5555 » Tue Feb 08, 2011 11:47 am

Cubguy501 wrote:Also can the background color be changed with a simple backgroundcolor=hex color?

Yes, you can try it.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar
wang5555
Translator
Posts: 602
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Re: Correcting for Plural days hours

by cfotoceo » Mon Jun 20, 2011 6:25 pm

I do would like the plural correction, so how do I do it?

If it says 9 Day it does not look right, it should say 9 days then when it reaches 1 Day is should read 1 Day.

Anyone know how to make this fix?

Thanks.
cfotoceo
Registered User
Posts: 162
Joined: Tue Jan 12, 2010 11:34 am
Contact:

Re: Correcting for Plural days hours

by wang5555 » Tue Jun 21, 2011 12:38 am

cfotoceo wrote:I do would like the plural correction, so how do I do it?

If it says 9 Day it does not look right, it should say 9 days then when it reaches 1 Day is should read 1 Day.

Anyone know how to make this fix?

Thanks.

Please try it:

--OPEN--
styles/prosilver/template/count_down.html

--FIND--

Code: Select all

document.forms.count.count2.value="Countdown: Until "+before+", has "+dday+" day "+dhour+" hour "+dmin+" min "+dsec+" sec."


--REPLACE WITH--

Code: Select all

document.forms.count.count2.value="Countdown: Only "+dday+" days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+before+"."


--SAVE & CLOSE--

Purge the cache.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar
wang5555
Translator
Posts: 602
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan