Page 1 of 1

Anyone know of a module that can do this?

Posted: Wed Oct 17, 2007 8:16 pm
by Sy
What I am after is a module like the countdown module used on this site: http://www.ask-karate.org/

I can probably get the Calendar module to do it with some work, however I'd rather not if they're is something available that can do it.

Ty

Re: Anyone know of a module that can do this?

Posted: Wed Oct 17, 2007 8:22 pm
by calguy1000
Nope, AFAIK, you'll have to tweak the upcoming list template of the Calendar module.

Re: Anyone know of a module that can do this?

Posted: Sun Oct 21, 2007 7:18 pm
by Sy
I've modified the calendar to show a countdown and it works pretty well.  see: http://eskajrh.demonweb.co.uk

I have a question:

How do I create a smarty tag on a page that all detailed events go to?  I read in the help that you can direct the events when clicked on to a detail page, but I'm not sure of the syntax of this tag, I've tried a few things and it doesn't work.

If I click on an event from the count down it opens the detail on the left, not sure why but it does and thats what I want it to do when I click on the events in the small calendar view, but they replace the calendar which is not what I want.

Thank you.

BTW.  If anyone would like to add a countdown facility to the calendar, its a one like mod, open the file function.displayupcominglist.php and
insert:
 
$row['countdown'] = ceil(abs(time() - mktime(0,0,0,$post_month,$post_day,$post_year)) / 86400);

At line 143.

Then in your template you can reference the countdown with {$event.countdown}

Re: Anyone know of a module that can do this?

Posted: Mon Oct 22, 2007 8:38 am
by Sy
anyone?

Re: Anyone know of a module that can do this?

Posted: Mon Oct 22, 2007 2:56 pm
by calguy1000
Why not check out the 'detailpage' and/or the 'inline' parameter of the calendar module.

Re: Anyone know of a module that can do this?

Posted: Mon Oct 22, 2007 7:26 pm
by Sy
Ty, setting the inline to 0 did the trick!