UPDATE: a plugin is apparently assembling the bits and pieces i based my work on: iCal for Events Calendar by Mark Inderhees (he nicely put a link toward this page – thanks!). So, if you are searching for an easy way of accomplishing just that, i bet you should check this plugin first.
Recently, for the london.tlktlk.com website, I modified a wordpress plugin producing an iCal feed of the posts to make it work on the event calendar. Original plugin can be found here.
The modified version takes the events from the database and serves them in an iCal feed which should be compatible with any iCal reader (including Apple’s iCal, Google Calendar et Microsoft Outlook).
You need to have the EC Event Calendar installed. I use version 6.4 – I haven’t tested any other version.
To install: upload in your /plugins directory and activate from the admin.
To download: iCal for EC Event Calendar
* NOTE: the plugin is downloadable as is – and we endorse no responsability what so ever for its uses and the consequences. Backup your data.
[...] Based on Gary King’s iCal Posts and modifications by Jerome. [...]
Pingback by iCal for Events Calendar Plugin | WordPress Plugins Database - WordPressPluginsDatabase.com — February 15, 2009 @ 6:45 am
Hi, I have installed Events Calendar 6.6.2 (http://www.wp-eventscalendar.com/) and iCal for Events Calendar 1.1.1 and no event appears in the iCal after creating one.
Any idea ?
Comment by Gab — August 5, 2010 @ 8:53 am
it’s no surprise if you are using the files i posted here; you should rather use the plugin i mentionned – http://wordpress.org/extend/plugins/ical-for-events-calendar/
much cleaner than my hackish old-attempt and most certainly the guys are updating and following the project there
check it out and let me know how it goes
Comment by jerome — August 5, 2010 @ 9:00 am
Actually, the ICS file contains info but it seems unreadable by iCal.
(http://www.noctambules.tv/?ical)
Comment by Gab — August 5, 2010 @ 9:06 am
Oups sorry .. http://www.noctambules.tv/?ical
Comment by Gab — August 5, 2010 @ 9:06 am
just checked your file and it’s indeed unreadable on my ical (3.0.8) osx is 10.5
seems like format changed… best way to figure this one out would be to export a calendar from iCal that contains the same event and correct the output of the plugin to make sure the plugin generate the same output as iCal – might create compatibility issue in between versions of iCal – not sure if that the only way…
also – another thing to try out:
events calendar has been updated recently; so it might be the source of the trouble as well
try to downgrade the plugins – that might help to pinpoint the issue here
let me know of the results
Comment by jerome — August 5, 2010 @ 9:14 am
OK if I remove the first line in the iCal-EC.ics file it imports correctly in iCal. Simple as that!
But since I’m no programmer, I don’t know what to change in the ical-ec.php file in order to make that change permanent.
Any idea ?
Comment by Gab — August 13, 2010 @ 9:57 am
looks like output starts line 138
138: $content = “BEGIN:VCALENDAR\r\n”;
Comment by j — August 13, 2010 @ 10:01 am
I simply don’t know what to modify. I tried removing all \r, \n and \r\n from the file and I still get that empty first line :-(
Comment by Gab — August 13, 2010 @ 10:26 am
mmmm might be the text file’s encoding
are you working on a mac?
Comment by jerome — August 13, 2010 @ 10:40 am
i sent you an email with an edited file
Comment by jerome — August 13, 2010 @ 10:42 am
Yes working with Coda on my mac
Comment by Gab — August 13, 2010 @ 10:52 am
Coda says “The file has mixed line endings. Do you want to convert all line endings to CRLF, the most common line ending in the file?”
But even after converting I had to delete the first line or it wouldn’t open in iCal
Comment by Gab — August 13, 2010 @ 10:55 am
It does the same thing with the original iCal for posts plugin.
Comment by Gab — August 13, 2010 @ 1:55 pm
download: http://tlktlk.com/ical_feed.zip
that’s the version that is in use here:
http://london.tlktlk.com/
i can download the ics file and import it in iCal
i can also subscribe to it via the URL in iCal
all seems to be working fine
not sure where the trouble is coming from
try this one – if it still doesn’t work might be worth checking/de-activating other plugins in use?
Comment by J — August 19, 2010 @ 7:18 am