Table of Contents

iCal Plugin

ical plugin by Esther Brunner
Lets you create iCal events on the fly in your wiki.

Last updated on 2005-08-17. Provides Syntax.
Compatible with DokuWiki 2006-11-06.

Tagged with discontinued, event, ical, maybe.broken.

Description

This 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 Michael Wimmer.

The output produced by this plugin looks like this:

Usage

Example:

{{ical> 2005-08-18 14:00 -> 16:00 <organizer@host.com> http://www.host.com @ Location | Description}}

E-mail, website and location are optional. Here are the parameters:

  1. Date: in yyyy-mm-dd format.
  2. Start time: in hh:mm[:ss] format; seconds are optional.
  3. End time: after an -> arrow in hh:mm[:ss] format; seconds are optional.
  4. E-Mail: of person who is responsible for this event.
  5. Website: only http addresses are recognized.
  6. Location: any text after an @ sign.
  7. Description: any text after a | sign.

You can see the plugin in action here.

Installation

  1. Unzip the archive and put the files into /path/to/lib/plugins/ical/.

To Do

Discussion

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 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: 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 /> <b>Fatal error</b>: Non-static method iCal::isEmpty() cannot be called statical ly in <b>/Library/WebServer/Documents/dokuwiki/lib/plugins/ical/class.iCal.inc.p hp</b> on line <b>1043</b><br />” Any ideas how I can fix this?

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 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. (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 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 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 2006-08-31