• I posted this question last week as a response to another thread, but I suspect that thread may be a bit too old, so I’m going to ask here again.

    I’m working on setting up my own portfolio/artist’s website, and using the Nextgen plugin to display my galleries. I was frustrated with the fact that there were no images displayed in the RSS feed (only links to the images), and I know almost nothing about coding, etc., so was happy to find a previous thread that described a solution. I created a test gallery that only has blank blocks of color, and then edited the media-rss.php file; I changed this section of code:

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

    to read this way:

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

    Then I checked to see if the feed was working. First 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=’https://mattcoors.com/wp-content/gallery/blocks/block3.jpg&#8217;

    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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Matt Coors

    (@matt-coors)

    .

    Any answer, Matt? Where was that other thread? Having trouble finding anything useful. I’d appreciate any response, if you have anything. Thanks.

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

    Line 445 of the latest version. Worked for me! Check it out:

    Karate Pics

    Hey… I too have wanted this for a very long time. Could someone post the code in a format where we know which lines to edit? and what files?

    I’d really appreciate it. We all want nextgen to be better.

    Sorry… wp-content/plugins/nextgen-gallery/lib/media-rss.php Line 445 is where that line of code is. It starts with “$out” and ends with “\n;”

    thanks… one last question. Any idea how to put the description, alt, event tags from the image in the feed?

    Thread Starter Matt Coors

    (@matt-coors)

    Hi; thanks for the help on this. I had asked the same question on this thread several months back, and got a little bit of help, but was never able to sort out how to fix it. So I just decided not to use the NextGen RSS and to have only my normal blog RSS instead. Thanks for the additional info, though; if I decide to give it another try, this will help.

    Hey there.. my media-rss.php file on has 248 lines.

    What version of Nextgen are you using?

    Version 1.7.4

    Just in case anyone needs to know:
    There are two separate files named media-rss.php.

    One is in wp-content/plugins/nextgen-gallery/lib/

    The other is in: wp-content/plugins/nextgen-gallery/xml/

    Very easy to get them confused. For the fix described in this thread, you need the media-rss.php file in the LIB directory

    To fool with the number of feed items, you need the media-rss.php file in the XML directory

    To fool with the number of feed items…
    Does this imply that multiple RSS feeds from multiple sources can be comingled or does it imply that multiple items from a single feed can be specified?

    Does anyone know please where to put the URL for the rss feed source of the images? I see no place in the widget. My other rss-import feeds for text feeds have a place for the URL in the widget. Thanks in advance for any help!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Getting images to display in NextGen media rss feed’ is closed to new replies.