url box plugin
Posted: Thu Mar 03, 2005 8:23 pm
I recently ran into the problem of semi-integrating WebCalendar with s9y. While this isn't perfect (like merging the Blog Calendar with the WebCalendar) it is a decent solution which does have other potiental uses.
Web Calendar has file called upcoming.php (example here: http://tvg.ca/calendar/upcoming.php, note: heavily modified to look good in the blog) that displays upcoming events. I first tried to include this file right in s9y so I wouldn't have to do a url fetch each page load, but ran into dbi problems with WebCalendar.
So I ended up merging the html nugget plugin with the RSS feed plugin to fetch a url and cache it. This solves the dbi problems I was running into and the url fetch each load problem (as the result is now cached). I included the option of also running markup on the fetched url, I haven't tested it and I'm not sure the security issues it might entail.
Here is the code, put it in plugins/serendipity_plugin_urlbox/serendipity_plugin_urlbox.php and an example on my blog, see the "Event Calendar" sidebar.
Web Calendar has file called upcoming.php (example here: http://tvg.ca/calendar/upcoming.php, note: heavily modified to look good in the blog) that displays upcoming events. I first tried to include this file right in s9y so I wouldn't have to do a url fetch each page load, but ran into dbi problems with WebCalendar.
So I ended up merging the html nugget plugin with the RSS feed plugin to fetch a url and cache it. This solves the dbi problems I was running into and the url fetch each load problem (as the result is now cached). I included the option of also running markup on the fetched url, I haven't tested it and I'm not sure the security issues it might entail.
Here is the code, put it in plugins/serendipity_plugin_urlbox/serendipity_plugin_urlbox.php and an example on my blog, see the "Event Calendar" sidebar.