Keyword

Images aren't displaying

  • JedDavis
  • JedDavis's Avatar Topic Author
  • Offline
  • New Member
More
5 years 10 months ago #54828 by JedDavis
JedDavis created the topic: Images aren't displaying
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?

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

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

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • JedDavis
  • JedDavis's Avatar Topic Author
  • Offline
  • New Member
More
5 years 10 months ago #54830 by JedDavis
JedDavis replied the topic: Re: Images aren't displaying
Is there an easy alteration to the code that I could make? I don'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
5 years 10 months ago #54831 by Lefteris
Lefteris replied the topic: Re: Images aren't displaying
No, your code is incorrect and actually does nothing else than bypassing the condition.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • JedDavis
  • JedDavis's Avatar Topic Author
  • Offline
  • New Member
More
5 years 10 months ago #54832 by JedDavis
JedDavis replied the topic: Re: Images aren't displaying
Haha, that'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
5 years 10 months ago #54833 by Lefteris
Lefteris replied the 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.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
5 years 6 months ago #56031 by Claudia
Claudia replied the 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
5 years 6 months ago #56033 by Lefteris
Lefteris replied the 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.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
5 years 6 months ago #56034 by Claudia
Claudia replied the 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
5 years 6 months ago #56035 by Claudia
Claudia replied the topic: Images aren't displaying

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


Powered by Kunena Forum