Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 05:56 pm EDT

Geeklog Forums

Replacement COM_exportRDF() for RSS 2.0


Status: offline

sardu

Forum User
Junior
Registered: 01/23/03
Posts: 17

New version of the COM_exportRDF() to provide a nicer backend that validates as RSS 2.0 (I hope).

Rather than dealing with emails asking 'HOW TO PATCH YOU FILE!?' I'm just posting the entire function in a text file.

Download COM_exportRDF_updated.txt

Simply rename the COM_exportRDF() function in /path/to/geeklog/public_html/lib-common.php to COM_exportRDF_old and paste the contents of this file to try it.

I'd like to test this a bit, polish it up, and submit it as a patch to the GL maintainers (if they'll have it). No readme, just look at the comments in the src.

Changes/Comments/Flames to sardu@mac.com


Lucas Thompson, sardu@mac,com
 Quote

Status: offline

sardu

Forum User
Junior
Registered: 01/23/03
Posts: 17
Sample feed: http://slf.homelinux.net/cms/backend/feed.rss
It currently validates fine

Lucas Thompson, sardu@mac,com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So besides RSS 2.0 compliance, what else does this gain us? bye, Dirk
 Quote

Status: offline

sardu

Forum User
Junior
Registered: 01/23/03
Posts: 17
> So besides RSS 2.0 compliance, what else does this gain us? Not much (yet). :-) The <pubDate> and <description> tags should (could?) provide a bit more control with aggregators. Although I've only had a chance to personally test with NetNewsWire so far, the added <description> tags make for less 'spartan' views in aggregator software since the introtext field from a story will be previewed in the feed. (blind/cryptic links in news aggregator software is actually what started me looking into this code). The <copyright> addition might be important for some people, although I only added it for completeness. Category is still a bit broken since it's using the unique id, which on some sites is an unreadable jumble of abbreviations and underscores.
Lucas Thompson, sardu@mac,com
 Quote

Status: offline

sardu

Forum User
Junior
Registered: 01/23/03
Posts: 17

I'm starting to think this might be better accomplished as a plugin due to the configuration nitty-gritty as well as the obvious potentials like scheduled dumps, multiple feed configs, and user feeds.

Anyways... I added support for more tags and try to make better use of existing _CONF variables for default values.

URL for the source is the same:
http://slf.homelinux.net/COM_exportRDF_updated.txt
A crude changelog can be found in the comments of the source file.


Lucas Thompson, sardu@mac,com
 Quote

All times are EDT. The time is now 05:56 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