Thanks in advance for any help you can offer, here's the deal:
I am setting up a newsfeed for a site and have decided to use JoolaWork's Simple RSS Feed Reader. Everything works except for the pictures that are supposed to accompany each story.
I narrowed down the problem to the fact that the bit of code holding the image wasn't triggering. That bit of code is as follows:
<?php if($feedItemDescription || $feed->feedImageSrc): ?>
<?php if($feed->feedImageSrc): ?>
<img class="srfrImage" src="<?php echo $feed->feedImageSrc; ?>" alt="<?php echo $feed->itemTitle; ?>" />
<?php endif; ?>
I got it to trigger by changing the first line to:
<?php if($media || $media->media.content): ?>
I have no idea what any of the code means, but it works so far. The problem is that even though it is triggering now, it is still only displaying the generic broken jpg image. The image isn't there. The RSS code that is passed to the reader has the image encoded twice, with ENCLOSURE and MEDIA:CONTENT. I am assuming that one of those two needs to replace the $feed in the img src tag, but I have tried every combination I can think of.
Any ideas?
I am setting up a newsfeed for a site and have decided to use JoolaWork's Simple RSS Feed Reader. Everything works except for the pictures that are supposed to accompany each story.
I narrowed down the problem to the fact that the bit of code holding the image wasn't triggering. That bit of code is as follows:
<?php if($feedItemDescription || $feed->feedImageSrc): ?>
<?php if($feed->feedImageSrc): ?>
<img class="srfrImage" src="<?php echo $feed->feedImageSrc; ?>" alt="<?php echo $feed->itemTitle; ?>" />
<?php endif; ?>
I got it to trigger by changing the first line to:
<?php if($media || $media->media.content): ?>
I have no idea what any of the code means, but it works so far. The problem is that even though it is triggering now, it is still only displaying the generic broken jpg image. The image isn't there. The RSS code that is passed to the reader has the image encoded twice, with ENCLOSURE and MEDIA:CONTENT. I am assuming that one of those two needs to replace the $feed in the img src tag, but I have tried every combination I can think of.
Any ideas?