Forums

[Plugin: NextGEN Gallery] Making the RSS feed show images instead of just links to images - possible (9 posts)

  1. apa@imagix.dk
    Member
    Posted 2 years ago #

    I am making an photo portfolio and I am using ClusterShot as a way to purchase photos from my portfolio.

    ClusterShot needs a RSS feed with the photos. Problem is that the feed Nextgen gallery creates doesn't actually displays the images but rather a link to the images ...and thats not good enough for ClusterShot.

    Is there a way to modify the rss output of Nextgen gallery to show images in the feed?

    Best,
    Anders

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Bloomhash
    Member
    Posted 2 years ago #

    i'd like to have this feature too.
    what a photo feed without photos??!!

  3. grtwordpress
    Member
    Posted 2 years ago #

    Photo feeds are just links to photos. Not sure what you guys want.

  4. Bloomhash
    Member
    Posted 2 years ago #

    Photo feeds are just links to photos. Not sure what you guys want.

    Never seen photo feeds with picture preview?

  5. medinauta
    Member
    Posted 2 years ago #

    open "media-rss.php" from the "lib" folder and edit:

    $out .= $indent . "\t<description><![CDATA[" . nggGallery::i18n($desc) . "]]></description>\n";

    to add the image tag

    $out .= $indent . "\t<description><![CDATA[" . nggGallery::i18n($desc) . "]]><br /><img src='". $image->imageURL ."'></description>\n";

    Is that it?

  6. Bloomhash
    Member
    Posted 2 years ago #

    not exactly, but thank you for the hint.

    that would be properly:
    $out .= $indent . "\t<description><![CDATA[" . nggGallery::i18n($desc) . "><br /><img src='". $image->imageURL ."']]></description>\n";

    and that's my way - with a thumbnail:
    $out .= $indent . "\t<description><![CDATA[<a href='" . $image->imageURL . "' target='_blank'><img src='". $image->thumbURL ."'></a><br />" . nggGallery::i18n($desc) . "]]></description>\n";

  7. Matt Coors
    Member
    Posted 1 year ago #

    Hi;
    I'm working on setting up my own portfolio/artist's website as well, and I'm using the Nextgen plugin to display my galleries. Like the original poster, I was frustrated with the fact that there were no images displayed in the RSS feed updates, so I was really happy when I found this post. I wanted to try it using a test gallery that only has blank blocks of color in it...I'm really new to website stuff, and I know almost nothing about coding, but I was able to update the media-rss.php file, as described above. I used Bloomhash's first suggestion, changing the code to:

    $out .= $indent . "\t<description><![CDATA[" . nggGallery::i18n($desc) . ">
    <img src='". $image->imageURL ."']]></description>\n";

    Then I checked to see if the feed was working. I subscribed to the feed using apple mail, and the full-size images were displaying fine, except that there is a ">" on one line, directly before the image. When I subscribe to the feed using google reader, however, the images don't display in the feed. Instead, there is the same ">" on the first line, and then the image source tag--without a closing bracket--on the second line. So it looks like this:

    >
    <img src='http://mattcoors.com/wp-content/gallery/blocks/block3.jpg'

    So it seems that for some reason the closing bracket is being displayed before the rest of the image tag, which is keeping some rss readers from displaying the image. Does anyone know what I can change to fix this problem? I would appreciate any help you could give.

    Thanks,
    --Matt

  8. brianarmas
    Member
    Posted 1 year ago #

    Matt, there is an extra ">" in there - try this:

    $out .= $indent . "\t<description><![CDATA[" . nggGallery::i18n($desc) . "<br /><img src='". $image->imageURL ."']]></description>\n";

    I'm using Bloomhash's code with the thumbnails and it works fine-

    $out .= $indent . "\t<description><![CDATA[<a href='" . $image->imageURL . "' target='_blank'><img src='". $image->thumbURL ."'></a><br />" . nggGallery::i18n($desc) . "]]></description>\n";

    @Bloomhash- thank ya!- works great!

  9. Matt Coors
    Member
    Posted 1 year ago #

    Brianarmas,
    thanks so much for the response. That did help, and in fact removed the bracket from above the image in both RSS readers that I mentioned above. So there seems to be no problem with the feed displaying in Apple Mail. But the full images will still not display in Google Reader, and I'm not sure why...

    I know that Google Reader caches everything as soon as it is posted and that you can't delete a post from the reader cache (I was recently reading something about this on other sites), so I thought maybe to test the new changes I made in the media-rss.php file, I should add a new test image to the nextgen gallery so there would be a new post in the feed. I assumed that this post would display the full image in Google Reader, but it didn't...instead of the actual image, I just see the image source tag with no closing bracket, like this:

    <img src='http://mattcoors.com/wp-content/gallery/blocks/block13.jpg'

    Any idea why my images won't display in Google Reader?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags