Active
Project:
Ubercart Limited Time Offer
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
9 Oct 2010 at 06:29 UTC
Updated:
18 Oct 2011 at 09:49 UTC
hey guys i'm new in ubercart and drupal, im trying to create a custom-able uc_lto like jstimer i like to omit the hours, min and sec, put the leading zero and create consistent format in hh:mm:ss, without having one of the field disappear when the value is 0.
Any suggestion, would be appreciated
cheers,
Bondan
Comments
Comment #1
joshicsinI would like to display only cumulative time like hours, minutes and seconds and not the days or anything else.
I have tried to modify the module but it didn't help either.
Can you show us a way using which we can modify the display of the timer in the way we want?
I really appreciate your efforts.
Regards.
Comment #2
siddhen commentedI'm working on the same thing right now.
Here is how to change the appearance of the timer to HH MM SS.
In the us_lto setting page set the 'Time interval granularity' to 3 and follow the instruction in the Active Timer Javascript Settings.
You need to copy the uc_lto.js to your theme folder and change Drupal.formatInterval function as follow (delete the old one and past this one).
It still need work for displaying 00 when timer reach zero in the sec minutes or hours section.
any help will be appreciated.
Comment #3
joshicsinGreat!
Thanks a million.
This worked.
Regards.
Comment #4
joshicsinThe code is working fine except when you have hours <10 and it shows like thos 09 25 : 30. Also, it would be nice if any how we can display the coutndowd as 00 : 05 : 50.
I tried but not able to get it done.
I'd highly appreciate your suggestion.
Regards.
Comment #5
siddhen commentedHere is a code to display the coutndowd as 00 : 05 : 50
www.drupalove.com
Comment #6
WebNewCastle commentedSiddhen, thanks so much for helping out with the questions/issues here.
Comment #7
vaidasjokub commentedHi, help someone. When I switch to lithuanian language, the timer format breaks. How to make lto timer use english format although drupal language is set to lihuanian language? I used the code for the format 00:00:00. In some internvals the timer gives an errot like this 35:35:@count[2] .
Lithuanian language use three forms - one singular and two plurals. If I understand correctly - the code should provide on more plural form? If so, how could I add one more plural form to the code?
Comment #8
vaidasjokub commentedHi, help someone. When I switch to lithuanian language, the timer format breaks. How to make lto timer use english format although drupal language is set to lihuanian language? I used the code for the format 00:00:00. In some internvals the timer gives an error like this 35:35:@count[2] .
Lithuanian language use one singular and three plurals. If I understand correctly - the code should provide two more plural forms? If so, how could I add one more plural form to the code?