Page 1 of 1

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

Posted: Sun Jan 07, 2007 3:34 am
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

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

Posted: Mon Jan 08, 2007 11:14 am
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

Posted: Mon Jan 08, 2007 3:29 pm
by joho
No, it's disabled.

Posted: Tue Jan 09, 2007 8:19 pm
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?

Posted: Tue Jan 09, 2007 8:50 pm
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

Posted: Tue Jan 09, 2007 10:51 pm
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