The attached patch adds iCal support to event.module.

Patch and point your calendar application to webcal://your.site/event/ical to get updated events.

I have made this for Drupal 4.5.2, but I guess it should be trivial make adjustments (if any) for use with 4.6.x.

CommentFileSizeAuthor
event.module.with.ical.patch3.37 KBhba

Comments

Anonymous’s picture

I have a couple of questions. ICal seems to be references to serveral different applications on the Internet, does your patch add support for this application http://www.brownbearsw.com/ical/icalpage.html ? If not, can you tell me which ICal your referring to. Also, I'm running suse 9.2 and have not had very good luck patching modules. Would you mind posting your patched event module. Thanks very much for your help.

hba’s picture

This is limited support for the iCalendar standard, which is supported by a lot of applications. Examples are later versions of Microsoft Outlook, Evolution, Mozilla Sunbird and Apple iCal.

The iCalendar standard is documented in RFC2445: http://www.ietf.org/rfc/rfc2445.txt

hba’s picture

To apply this patch, be sure to have event.module v4.5.x, and enter the following in a terminal window:

cd my_drupal_path/modules/event
patch event.module < my_download_path/event.module.with.ical.patch

voila!

danyell’s picture

Hi, I looked at your code -- pretty clean!

I too had been working on this. I posted a patch for vCalendar support a while back at http://drupal.org/node/15855 and I'm almost done with iCalendar.

It took me longer to add iCalendar because:
- I wanted to support both formats;
- I wanted to choose iCal vs. vCal based on a Mac vs. PC browser-detect;
- I wanted the iCal/vCal data to support other patches, such as event end-times.

Perhaps we should coordinate our efforts? Take the best of what you have and the best of what I have, and provide the Drupal community with a single patch for this valuable feature?

My next step after having reliable support for both vCalendar and iCalendar was going to be adding support for an RSS feed of events, in vCal/iiCal format of course. The idea being, let folks "subscribe" to a particular list of events (all the concerts of a specific musician, for example) and have the stuff in a feed, ready to add to Outlook, Entourage or some other PIM.

boris mann’s picture

Both of you should focus on the 4.6 version of Event, which has a full API. It is planned to have all these types of import/export functions as separate modules that can be enabled.

philoxenia’s picture

Has anyone tested this with 4.6? This is something I'm very interested in asap. Thanks for your work everybody!

crunchywelch’s picture

Assigned: Unassigned » crunchywelch

I am working on this for the current (4.6) version.

more discussion on this here: http://drupal.org/node/9697

crunchywelch’s picture

ical export is now supported, you can get it from cvs and the tarball should be updated by now. Also, you will have to use the update-event script if upgrading from a version of event before the daylight savings time support was added. If your database does not have a 'timezone' field, then you must run this script.

ical import is on its way.

echidna’s picture

Version: » 4.6.x-1.x-dev

I'm a drupal newbie.

I've installed 4.6.0 and upgraded to 4.6.1. Your event module is really useful. Thanks for creating the module.

When I click on the ical icon, I get the 'webcal is not a registered protocol. message.

How do I get ical to work in 4.6.x?

Is there an event.module.with.ical.patch for 4.6.x?

Any advice is greatly appreciated.

Thanks in advance.

Greg Delisle’s picture

echidna,

Your browser needs to be set up to support the webcal:// protocol before you can click on links that use it (incl. the iCal export). Some browsers (Safari and Firefox, I think) come with this already set up, and some software packages should allow you to one-click configure it. But this is not an issue with the module, patch, or 4.6 (in fact, this version of event will only run in 4.6) -- it's an issue with the browser you're using. The same thing would happen if you clicked on any iCal syndication link.

killes@www.drop.org’s picture

hba’s picture

killes' duplicate link was self-referencing, I guess he really meant to link to http://drupal.org/node/24547 instead?

hba’s picture

Version: 4.6.x-1.x-dev »

And yeah, this thread is really about 4.5, and not 4.6. 4.6 has iCal support.