How do I get images in an RSS feed to display?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
joho
Regular
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden
Contact:

How do I get images in an RSS feed to display?

Post by joho »

I'm writing a small RSS-feed generator for an application that has images (photo album). It basically generates a one item RSS-feed with a random image. For some reason, I cannot seem to get S9Y to display the image, regardless of which field I use, nor how I encode the image.

I have tried cloning the output from many other applications, but S9Y doesn't want to display the image data. My last attempt was to make my generator output a content:encoded field with <img src... /> data in it (html-encoded), but all I get is S9Y displaying the text. I have told it not to escape data .. yet it doesn't seem to want to display the actual images, why?

Must this be done via specific plugins for each gallery-type application? If I use an RSS-feed reader (or just pop the URL of my generator into Firefox), the images (thumbnails) are displayed just fine..

Or could there be an event-plugin (I have very few installed) making trouble.. ?

I've been using S9Y for quite some time, and at some point this was working..


-joho
At the end of a smile, there is a laugh and a 1/2 [DAD]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How do I get images in an RSS feed to display?

Post by garvinhicking »

Hi!

Did you maybe enable the option "Escape HTML output" inside your remote RSS sidebar plugin?

(Assuming you are using that plugin to show your RSS, right?)

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/
joho
Regular
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden
Contact:

Post by joho »

No, it's disabled.
At the end of a smile, there is a laugh and a 1/2 [DAD]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Could you give us the URL to the RSS feed you show, and the URL to the blog where the RSS is shown?
# 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/
joho
Regular
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden
Contact:

Post by joho »

Absolutely, but at this point, the output is somewhere in limbo because I don't know why it's failing (or rather, why S9Y refuses to display the image). Could you point me to the chain of code in the source that handles/parses this, so I could at least start to trace?


-joho
At the end of a smile, there is a laugh and a 1/2 [DAD]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Actually all the logic that displays an RSS feed is in

plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php lines 463 to 526.

HTH,
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