Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
I've just finished my feed writer for RSS 1.0 (RDF) format:

http://www.*censored*ingbrit.com/filemgmt/singlefile.php?lid=31

Of course, I'm guessing geeklog is going to star that out, so I've submitted it to the repository on this site, if you can't figure out the url, then wait for it to appear on the site.

Now, Questions time.

It seems that the API for syndication doesn't offer the chance to supply the details of the person running the site, handy for editor style tags in RSS 2.0, and it seems the article feeds don't supply the author name for the individual articles.

Is there any chance of a richer set of data being passed through in the next release to make it easier to support other feed types? Happy to contribute code to do it, if people want to suggest what other information is needed.

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by THEMike: I've just finished my feed writer for RSS 1.0 (RDF) format

Excellent! I was hoping someone would start using this functionality.

Quote by THEMike: It seems that the API for syndication doesn't offer the chance to supply the details of the person running the site, handy for editor style tags in RSS 2.0, and it seems the article feeds don't supply the author name for the individual articles.

You get the uid of the person owning the entry (which, in case of a story, is the author). Use the uid to get the information you want from Geeklog's gl_users etc. tables. I figured that this would be more flexible than stuffing all the user data into the entry array.

I see that this isn't really documented anywhere, so here goes: Currently, you get the 'title', 'text', and 'link' for each entry, as well as the 'date' it was posted, the owner's 'uid', and the 'format' ('plaintext' or 'html').

Let me know if you think we need to supply anything else.

bye, Dirk

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
I had actualy twigged to what was passed through, but didn't really want to get into opening db connections to do queries in a feed writer, OO Principles suggest to me that my class should just write the feed, not fetch the data, but never mind, I'll update it later to do that.

Also working on an ATOM feed writer.

Thinking of the other fields I could need, I think I can get them from $_CONF and the DB easy enough.

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
http://www.*censored*ingbrit.com/

My bosses name is Harscheidt, guess what the german geeklog does with it

geKow

(sorry for offtopic)

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
I've updated my feed writer on my site to version 1.1 ( ) with the dc:creator tags added (lookups based on uid now done)

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
RSS 2.0 feed writer on my site, and submited to geeklog.net, the RSS feed for my site is now running with the RSS 2.0 feed writer:

http://www.*censored*ingbrit.com/backend/geeklog.rss

There's also an RDF format one:

http://www.*censored*ingbrit.com/backend/geeklog.rdf

I think I've made a couple of oopsie's in the formatting, for example pubDate uses the $_CONF['date'] format, rather than the RFC 822 format.

I'm going to go over the spec's and update later. Sorry.

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
On my site, and soon on here, and on sf, is a new archive file containing updated RSS 2.0 and RDF writters (fixed errors in the format of the versions currently hosted here), plus new ATOM format support.

If you are using any of my feed classes, I strongly recomend upgrading.

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
Thanks to Jeorg Michael, the feed writer package now includes a feed writer for Avantgo, this produces cut down HTML for portable devices. Handy ;-)

He's also given me code for a static page to list available feeds. I've submitted to geeklog, and it's available on my site.

No changes have been made to RSS 2, RDF or Atom, so unless you want the new stuff, there is no need to upgrade.

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
The download at your site won't work. (gives a 404)

geKow

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
That's what you get for manualy inserting your download entries (I don't allow uploads for security, so I have to do even my releases by hand).

Fixed. And available on Geeklog.net now.