Welcome to Geeklog, Anonymous Tuesday, January 31 2023 @ 08:50 pm 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.
 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
 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.
 Quote

Status: offline

geKow

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

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

geKow

(sorry for offtopic)
 Quote

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
I've updated my feed writer on my site to version 1.1 ( Oops! ) with the dc:creator tags added (lookups based on uid now done)
 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. Frown
 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.
 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.
 Quote

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
 Quote

Status: offline

THEMike

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

Fixed. And available on Geeklog.net now.
 Quote

All times are EST. The time is now 08:50 pm.

  • 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