Keyword

Images aren't displaying

  • JedDavis
  • JedDavis's Avatar Topic Author
  • Offline
  • New Member
More
10 years 8 months ago #54828 by JedDavis
Images aren't displaying was created by JedDavis
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&#039;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?

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #54829 by Lefteris
Replied by Lefteris on topic Re: Images aren't displaying
Hi. Simple RSS Feed Reader only supports images that are embedded in the items description.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • JedDavis
  • JedDavis's Avatar Topic Author
  • Offline
  • New Member
More
10 years 8 months ago #54830 by JedDavis
Replied by JedDavis on topic Re: Images aren't displaying
Is there an easy alteration to the code that I could make? I don&#039;t know PHP, obviously, so I  am probably  underestimating the issue, but I was able to get it to recognize the presence of the image with $media, just not display it.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #54831 by Lefteris
Replied by Lefteris on topic Re: Images aren't displaying
No, your code is incorrect and actually does nothing else than bypassing the condition.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • JedDavis
  • JedDavis's Avatar Topic Author
  • Offline
  • New Member
More
10 years 8 months ago #54832 by JedDavis
Replied by JedDavis on topic Re: Images aren't displaying
Haha, that&#039;s what I get for pretending to know PHP I suppose.

Anyway, I was able to fix the problem by altering the RSS feed source to include the image in description tags as opposed to the media and enclosure tags. So the images are displaying properly now with the original JoomlaWorks code.

I have a new question though; I would like the compact template to display a small thumbnail next to the headline in addition to the large thumbnail in the hover state. Is there a line of code I can add to do this? I would hope that since the image is being called correctly, it is just a case of duplicating the preexisting call-code in another area.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #54833 by Lefteris
Replied by Lefteris on topic Re: Images aren't displaying
Yes you can alter the output as you wish. Please read the section named "Styling" at www.joomlaworks.net/extensions/free-premium/simple-rss-feed-reader. Then you can duplicate the HTML code you wish and apply custom CSS rules.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #56031 by Claudia
Replied by Claudia on topic Images aren't displaying
I have an issue on my web page, the images from the blog aren't displaying in my joomla site. Is there any problem with the configuration?
my web page is appiglu.com/websites/karenlynn/index.php/home and the blog is karenlynndixon.com/blog/

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #56033 by Lefteris
Replied by Lefteris on topic Images aren't displaying
@Claudia

Try to check the option named "Image handling (within feed item description)" . Also try to remove the word limit and see if that works.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #56034 by Claudia
Replied by Claudia on topic Images aren't displaying
I have set the option of the Image handling (within feed item description) in:
Extract first image only, resize it using HTML, hide others

the word limit is set to 0

But still not working.

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #56035 by Claudia
Replied by Claudia on topic Images aren't displaying
the ss is imgur.com/BCFcZcP

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum