RSS Aggregator & enclosures

Creating and modifying plugins.
Post Reply
Tscherno
Regular
Posts: 17
Joined: Wed Oct 19, 2005 1:13 pm
Contact:

RSS Aggregator & enclosures

Post by Tscherno »

Hi,

i'm using the RSS Aggregator Plugin to parse my Stumble Upon Comments to fill my Blog. I've just seen that stumbleupon is now putting a little thumbnail as enclosure into the feed:
http://www.stumbleupon.com/syndicate.ph ... comments=1

Is it possible to use them with the plugin and put it also in each blog post?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: RSS Aggregator & enclosures

Post by garvinhicking »

Hi!

Not really. You would need to patch the plugin to check those XML fields, and put it into whatever field you might need/want.

The core problem is that enclosed XML elements use the value as an attribute, and not as a XML field value. This is really an abuse of how XML should be used like; Onyx and other parsers really give you trouble when fetching attributes. Otherwise, you would just have added $item['enclosure'] to the $entry['body'] field and be happy with...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply