No Images on RSS Feed

Permalink 1 user found helpful
Can anyone tell me why, when I use the following code in the RSS block, no images show up?

http://feed.zazzle.com/strk3/rss?ps=20&pg=2&isz=small...

Thank you for any helps or tips you can offer.

 
jasteele12 replied on at Permalink Reply
jasteele12
By default the RSS feed does not display images. I have a template that displays images or thumbnails here: https://github.com/jasteele12/c5-rss-displayer-templates...

You can see it in action here, using the Image Thumbnail template:
http://c5dev.webashland.com/test/zazzle/...

Be sure to read and follow the directions carefully.

Feel free to share any improvements you may make.

John
allangee replied on at Permalink Reply
Thank you very much for the reply! It looks a LOT like what I would want to accomplish, but beyond my website abilities -- which is why I'm probably using a CMS like Concrete5 in the first place. :)

I'm going to keep it handy though and see if I can get it working somehow. Maybe after I have a little more experience.

Thanks again for taking the time to reply!
JackVanson replied on at Permalink Reply
Hi There

I am trying to get your templates to work on my C5 site but it isn't working. Please can you help me out. I need my WordPress post images to display in my C5 RSS feed.

I am using C5 version 5.8.0.3
jasteele12 replied on at Permalink Reply
jasteele12
Hi Jack,

Those templates were built for legacy concrete5 < 5.7

Although I haven't looked at that code in quite some time I am not the least bit surprised that it doesn't work on 5.7+
JackVanson replied on at Permalink Reply 1 Attachment
Thanks for getting back to me.

I have got it working by changing get_title to getTitle along with all the others. For some reason the images are still not showing up.

this is the feed XML:http://www.sapphiresystems.com/blog/en-gb/feed/...

I have attached the updated view.php

If you get some free some could you take a look and see what i am missing. I am new to PHP and still learning.

Thanks

Jack
jasteele12 replied on at Permalink Reply 2 Attachments
jasteele12
Hi Jack,

You are never assigning anything to $img - so you are getting <img src="" />

Try these two attached files. They are untested, but should get you close. They were copied from v8 concrete/blocks/rss_displayer/view.* and then modified (this is how you are supposed to do it).

Copy view.php and view .css to application/blocks/rss_displayer/templates/show_images/

Select the Show Images custom template on the RSS block. Let me know how it goes,

John
JackVanson replied on at Permalink Reply
Works perfectly

Thank you so much for your help. You have been great.I really appreciate your help.

Thanks

Jack
jasteele12 replied on at Permalink Reply
jasteele12
You are totally welcome Jack.

Maybe you could share the page where you got it working?

Thanks, John
bmswebsi replied on at Permalink Reply
bmswebsi
To follow-up on your discussion:

I took your code and modified it after searching around for some similar solutions to the RSS Displayer.

/* application/blocks/rss_displayer/templates/show_images/view.css */
.ccm-block-rss-displayer-item { 
   padding-left: 130px; 
   position:relative; 
   min-height: 100px; 
   margin-bottom:16px;
}
.ccm-block-rss-displayer-item-title { 
   font-weight:bold;
   clear:right;
}
.ccm-block-rss-displayer-item-date { color:#999; }
/*.rssItemImage { text-align:center; margin-left:auto; margin-right:auto; }*/
.rssItemImage img { 
   position:absolute;


The code will float the image from CDATA to the left of the title, date, and description.

Upload this code to the view.css data and use the view.php from jasteele12. Follow his directions otherwise to make a custom template for the RSS Displayer.

It might not be perfect, but it is working well on initial testing.

Thanks for the foundation jasteele12!
Pritam replied on at Permalink Reply
Hi Jack,

Thanks for sharing this template. This was just what I was looking for.

Working perfectly.