logo       

Re: Phpicalendar-devel digest, Vol 1 #204 - 1 msg: msg#00026

php.phpicalendar.devel

Subject: Re: Phpicalendar-devel digest, Vol 1 #204 - 1 msg

seminartitle and host are fields defined in the most recent version of the rss.php in the CVS, which I had customized after the last release version. I added those fields because the ones in the release didn't have some information I wanted. I probably should have removed them or named them something more general before posting it (Sorry, Chad!)...I uploaded my version to provide the date range capability, and to show how this could be used to have a single code block generate the feed, instead of different ones for day, week, and month.

To use magpie with the older rss.php, the fields are:
title
link
description

rss.php takes the fields defined in the master array and tags them to conform to the RSS format well enough for magpie or other parsers to parse...I like magpie because a) it is used by another package I use and b) it's pretty simple and forgiving. As modified by me, the rss feed does not conform to an RDF calendar specification where the tag names are registered and so on. When I tried to read about calendar rss specifications, it seemed like the standards were not well defined at the time (about 9 months ago?)...and/or it was too confused for an amateur like me to understand!

You can see these by looking at the rss feed you get as text (just paste the URL in your browser and view source). It's XML, so there are tags surrounding the data for each item. Each event looks something like:

<item>
<tag1>data</tag1>
<tag2>data</tag2>
etc.
</item>

And there are tags surrounding the whole feed. Hope this helps...and anyone out there who understands RDF better should suggest how to make things compliant!

Jim Hu

<snip>
Message: 1
Date: Sat, 26 Feb 2005 15:29:13 +0000
From: Ben Francis <lists@xxxxxxxxxxxxxxx>
To: phpicalendar-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [PHPiCalendar-DEV] Using the ranges with the rss.php in the CVS
Reply-To: phpicalendar-devel@xxxxxxxxxxxxxxxxxxxxx

Jim Hu wrote:

p.s. Here's an example of how I use phpicalendar and magpie to
generate a page with a range of events <snip>

Wow, that's cool.

I apologise, I'm not versed on the inner working of phpicalendar or RSS,
certainly not magpierss. But I don't understand how you define the
fields(?) in the RSS feed if it's generated from a .ics file.

For example, $item['seminartitle'] and $item['seminarhost']. Where do
these come from? I'd love to be able to define fields like "director",
"rating" and "stars" for a film showing in my calendar. But how are
these entered at the calendar stage?

Also, Do I have to download the most recent rss.php from the CVS in
order to use this?

Thanks

tola

--
Ben "tola" Francis http://hippygeek.co.uk
----------------------------------------------------
COMPUTER SUPPORT for small businesses and home users
http://tolatech.co.uk
----------------------------------------------------
<snip>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise