gcal: google calendar wordpress plugin
gCal Plugin
display your shared google calendar events on wordpress find newest version at: http://www.nata2.org/stuff-i-do/gcal-google-calendar-wordpress-plugin/
Copyright (c) 2006 Harper Reed
http://www.nata2.org
harper@nata2.org
Get It:
You can see the result of the plugin here: my calendar
you can download it here: gcal.tar.gz
Notes:
This is broken. relaly broken. i swear google changed something. because it onced worked. no idea.
Inspiration from FlickrRss, Adsense-deluxe and Falbum - nice work guys
I looked a gcalendar widget quite a bit. it was nice.
I am using the calendar script from Benjamin Kuz * http://ben.nullcreations.net
Usage/Installation:
- Basically install the plugin by placing the gcal dir in the plugin directory.
- Try not to rename the dir (i shoudl fix that).
- Optionally copy the included wp-includes/rss-includes.php
- This solves a problem with the magpie version
- (thanks http://ottodestruct.com/blog/2006/04/18/google-calendar-widget/)
- Go to the options->gcal
- Configure the shit out of it.
- really all you need is your public xml link from the shared google calendar
- Place the appropriate code in your template or page
Code:
Upcoming events list (great for sidebars):
get_gCalUpcomingEventList()
This function can take the following arguments:
- string $feed,
- int $num_items,
- string $dateformat,
- string $dateseparater,
- int $titlelength,
- string $before,
- string $after
Calendar in a page or entry:
< !--gCalendarMonth-->
This is stylable by CSS included in the gcal dir
Blog view of upcoming and past events:
< !--gCalendarBlog-->
Future:
This obviously needs some work. but is a good start for a days worth of hacking. Please let me know about bugs and what not.
LICENSE This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html

