====== iCal Plugin ====== ---- plugin ---- description: Lets you create iCal events on the fly in your wiki. author : Esther Brunner email : esther@kaffeehaus.ch type : syntax lastupdate : 2005-08-17 compatible : 2006-11-06 depends : conflicts : similar : tags : ical, event, discontinued, maybe.broken ---- ===== Description ===== This [[plugins|plugin]] lets you create iCal events on the fly in your wiki, which other users can download and add to their calendars. The iCal plugin uses the iCal PHP class by [[flaimo@gmx.net|Michael Wimmer]]. The output produced by this plugin looks like this: {{http://qwik.kaffeehaus.ch/_media/dokuwiki/ical.png}} ===== Usage ===== Example: {{ical> 2005-08-18 14:00 -> 16:00 http://www.host.com @ Location | Description}} E-mail, website and location are optional. Here are the parameters: - Date: in yyyy-mm-dd format. - Start time: in hh:mm[:ss] format; seconds are optional. - End time: after an %%->%% arrow in hh:mm[:ss] format; seconds are optional. - E-Mail: of person who is responsible for this event. - Website: only http addresses are recognized. - Location: any text after an @ sign. - Description: any text after a | sign. You can see the plugin in action [[http://qwik.kaffeehaus.ch/playground|here]]. ===== Installation ===== - [[http://idmi.poly.edu/pdlab/ical-with-fixes-2006-10-10.zip|Download plugin with fixes listed below]] - Unzip the archive and put the files into ''/path/to/lib/plugins/ical/''. ===== To Do ===== * The import into Apple iCal causes problems. Needs to be analysed. * Maybe I find a more lightweight class able to do the same. * A central calendar for the wiki (or namespace?) would be cool, that could be subscribed to. The plugin could write small files for every event which then are aggregated by another script. ===== Discussion ===== > [[jangal74@googlemail.com|Jan]]: I tried to download or visit your page but get a 403 Error. Could you please fix/update the link? Thankx. >> My main server is currently down. In the mean time, I changed the link to another server. --- //[[esther@kaffeehaus.ch|Esther Brunner]] 2005-08-19 17:06// > Changing the resulting ics file from "METHOD:REQUEST" to "METHOD:PUBLISH" seemed to fix the import problem. Change 0 to 1 in line 20 of ical.php [[arne@arnested.dk|Arne:]] If you follow the link to the .ics file the dates in the file is always set to the current date and time and not the time of the event. Changing all function calls to ''is_int()'' in ''class.iCalEvent.inc.php'' to ''is_numeric()'' fixed the problem. >> My ics files all have this: "br /> Fatal error: Non-static method iCal::isEmpty() cannot be called statical ly in /Library/WebServer/Documents/dokuwiki/lib/plugins/ical/class.iCal.inc.p hp on line 1043
" Any ideas how I can fix this? [[imosqueira@suk.azti.es|Iago]] Can events lasting longer than a single day be created? If I try giving a date after the arrow, it does not work. Thanks. It should be noted that this plugin is not compatible with the DokuWiki plugin manager. While the plugin manager will claim it was installed, all of the plugin .php files are zero-lengh. The resolution is to simply install it the manual way. It would seem that when using this iCal plugin the iCal events date/time ends up being the date/time when the user clicks on the iCal link rather than the date/time configured within the link. Is there an updated version that resolves this? --- //[[garyv@rochester.rr.com|GaryV]] 2006-06-26 9:30// Got the same problem that the date/time is the one when the ics-file was created and not the date/time configured within the link. Also the "DTEND" tag is missing. ([[http://www.ietf.org/rfc/rfc2445.txt|iCalendar Specification]]) --- // M.M. 2006-08-28 // >I've fixed the date problem. It seamed to be a type conversion problem. In ical.php: $iCal->addEvent( array('',$_REQUEST['email']), // Organizer (int) $_REQUEST['sts'], // Start Time (timestamp; for an allday event the startdate has to start at YYYY-mm-dd 00:00:00) (int) $_REQUEST['ets'], // End Time (write 'allday' for an allday event instead of a timestamp) --// Andy// I'm revisiting this plugin, and for whatever reason all I get now when I click on an iCal link I created (which was literally a cut/paste of the example), and I get this error "Notice: Undefined index: website in C:\dokuwiki\lib\plugins\ical\ical.php on line 42", followed by a screen full of other various warning notices. Anyone know what might be causing this? I've tried removing the plugin and reinstalling, but I end up with the same result. --- //[[garyv@rochester.rr.com|GaryV]] 2006-07-18 21:50// ----- \\ Is there a **Calendar Interface** interface that would be visible to clients??? And when they are an event, the an ical will be created on that particular calendar interface, on the particular date cell??? Its so frustrating that jscalendar is not supported on the latest version of dokuwiki w/c is what i am currently using right now. For the concerned: feel free to email at [[andotyjazz@gmail.com|Andrew A.]] me if this plugin is available or supported ------ It would be nice to export a certain page as iCal, aggregating all events on this page to one iCal file. For example: ''%%http://www.dokuwiki.org/plugin:ical?do=export_vcal%%''. //[[doekman@gmail.com|Doekman]] 2006-08-31//