Google Calendar Plugin

Compatible with DokuWiki

No compatibility info given!

plugin Embeds a Google Calendar into a wiki page

Last updated on
2007-05-01
Provides
Syntax
Repository
Source

Plugin name contains underscore, will not generate popularity points.

Similar to hcalendar

Tagged with calendar, embed, google

This plugin integrates a Google Calendar into a DokuWiki page.

With a serious nod to iframe by Christopher Smith. Minimal changes were made (improvements, I hope).

Installation

Syntax

{{cal>kite@puzzlers.org[614,640]|Kite's Test}}

Pretty simple:

  • an email address with a shared/private calendar.
  • the [614,640] are width and height – these are both optional, but must be enclosed in [ , ] if present. If only one value is supplied, it is assumed to be the height.
  • the | marks the 'alternate text' used for a title; otherwise you get the default configured in Google.

Configuration

The plugin has one configuration setting, which can be set via the admin/configuration settings page.

  • $gcal_js_ok — default value - false, set to true to enable JavaScript URLs.
  • iframe by Christopher Smith uses $js_ok

I don't know if it is better to allow one value for both plugins, or not. Also, due to the limited nature of this plugin, I don't think this option will actually make any difference. It has not been tested.

Development

Changelog

FAQ

Specify just one calendar of Googles Calendars

I have several Google Calendars tied to my Gmail account. Is there a way to specify just one calendar, or a sub-group (i.e. 3 out of 5 calendars). — Jason 2007-06-08 18:51

The quick answer is yes. At the Google calendar webpage, click on manage calendars. Then click on the particular calendar that you are interested in using. In the Calendar Address box you should see a calendar id that looks like a randomly generated bunch of letters @group.calendar.google.com. Plug this in as the address instead of {{cal>yourname@gmail.com}}. I.e. {{cal>[randomletters]@group.calendar.google.com}}. Seems to be working for me. Cheers. Ethan Farquhar 2007-08-13

Use different colors

I went to /My calendar/Settings/, selected a calendar, and under “Embed this Calendar” section, I clicked “Customize the color, size, and other options”. This opens the editor for their »frame code. Select the calendars you want to display in the iframe, and the code will update.

Remove this part:

<iframe src="http://www.google.com/calendar/embed?height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;

That should leave you with “src=%your email address%…..etc.”, copy everything after “src=” all the way to the end of the Time Zone section. This should leave you with something like this:

{{cal>myemailaddress%40gmail.com&amp;color=%231B887A&amp;src=xxxxrandomnumberhashxxxxxx%40group.calendar.google.com&amp;color=%232952A3&amp;src=xxxxrandomnumberhashxxxxxx%40group.calendar.google.com&amp;color=%23705770&amp;src=xxxxrandomnumberhashxxxxxx%40group.calendar.google.com&amp;color=%230D7813&amp;src=xxxxrandomnumberhashxxxxxx%40group.calendar.google.com&amp;color=%232952A3&amp;src=xxxxrandomnumberhashxxxxxx%40group.calendar.google.com&amp;color=%235229A3&amp;src=xxxxrandomnumberhashxxxxxx%40group.calendar.google.com&amp;color=%230D7813&amp;ctz=America%2FChicago[800,600]|It works!}}

BrentDunnaway 2009-08-07 13:49

Discussion

Hi - I was wondering if it was possible to login to the calendar automatically when the page loads? Thanks - David

Future Directions

  • This should be able to cope with an <iframe…></iframe> from Google; wasn't able to make that work this time around due to some parsing and regular expression problems.
  • This should probably check the user's email but … since it has to go to Google's calendar engine anyway, I can rely on their response to be “reasonable” for now.
plugin/google_cal.txt · Last modified: 2011/12/26 12:19 by lupo49
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate