Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:59 am EST
Geeklog Forums
Feed Writer Questions (Plus a new feed writer released)
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
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.
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.
13
24
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
13
13
Quote
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
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.
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.
12
12
Quote
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
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.
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.
14
12
Quote
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
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.
If you are using any of my feed classes, I strongly recomend upgrading.
11
14
Quote
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
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.
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.
11
14
Quote
All times are EST. The time is now 10:59 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content