I did some work on the tpl file and the module to allow for the ubnit labels to be displayed either inline or under each of the digits they're associated with.

I added some CSS as well to allow users to tune exactly how each digit and/or label are displayed.

Finally, the module does not now *require* an event name, so that if the user wished, a counter only can be displayed.

I pushed my version to http://github.com/cafuego/countdown but I can do a patch against CVS 6.x-1.0 if required.

CommentFileSizeAuthor
#7 countdown-646400-7.patch10.18 KBunivate
#2 theme-646400-2.patch10.75 KBcafuego

Comments

trickyricky26’s picture

Hey thanks so much for this! It works great. Just what I needed. You can see how I used your version here:
http://whatsmypuppy.com

It is much more flexible than the current release.

Thanks again.

- Had to remove until I figured out why it wont load in chrome or mobile browsers

cafuego’s picture

StatusFileSize
new10.75 KB

Reworked the patch with git.

Pillhuhn’s picture

Hi cafuego,

I installed the countdown version from your original post. Do I still need to apply the patch?

Thanks!

cafuego’s picture

Hi Pillhuhn, the patch only applies to the countdown module as hosted on Drupal.org, so if you grabbed mine from github you don't need to patch it.

danharper’s picture

Hi Cafuego,

I've been trying to add a div wrapper to the template every time I do it breaks the script that makes the time move and I have to refresh the page to make it update. I've been adding the following,

at the start

print '<div id="countdown">';

and near the end

print '</div>';

The style just pads it out and adds a background and padding successfully but the countdown is broken.

Cheers Dan

danharper’s picture

I managed it, had to add the div in the .js file.

got it working here not quite styled as I would like yet but nearly there. http://www.dan-linfoot.com

Thanks Dan

univate’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new10.18 KB

Rerolling patch, as it wasn't applying cleaning to the 6.x for me.

Otherwise I think this is a good addition.

usingsession’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (outdated)