Anyone know of a module that can do this?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

Anyone know of a module that can do this?

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post by calguy1000 »

Nope, AFAIK, you'll have to tweak the upcoming list template of the Calendar module.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

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

Post 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}
Last edited by Sy on Sun Oct 21, 2007 7:23 pm, edited 1 time in total.
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

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

Post by Sy »

anyone?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post by calguy1000 »

Why not check out the 'detailpage' and/or the 'inline' parameter of the calendar module.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

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

Post by Sy »

Ty, setting the inline to 0 did the trick!
Post Reply

Return to “Developers Discussion”