Show Image in CMSMS Simple Pie

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
PorkyCorky
New Member
New Member
Posts: 9
Joined: Thu Sep 17, 2009 7:39 pm

Show Image in CMSMS Simple Pie

Post by PorkyCorky »

Hello,
I am wanting to detect the first image in a RSS post and display it as a thumbnail.  Right now, what concerns me, is that I cannot get SimplePie to display any images.

Looking forward to your response.  I've attached what is currently my template code.

Code: Select all

{*dump your vars*}
{*<pre>{$feed|print_r}</pre>*}


<div class="item-lever">
{foreach from=$feed->get_items($start,$length) item=onefeed}
<h4>
<a href="{$onefeed->get_permalink()}" title="{$onefeed->get_title()}">{$onefeed->get_title()}</a></h4>
{$onefeed->get_date()|date_format:"%Y/%m/%d %H:%M"}   

<div class="feed-content">
{$onefeed->get_description()}

<p align="right"><a href="{$onefeed->get_permalink()}" title="Read more.">Read more.</a></p>
<hr>
</div>
{/foreach}
</div>
PorkyCorky
New Member
New Member
Posts: 9
Joined: Thu Sep 17, 2009 7:39 pm

Re: Show Image in CMSMS Simple Pie

Post by PorkyCorky »

Also, I realize that I am pulling the description from each post, which is why images are not being displayed in the post itself.  The problem is I am not familiar with PHP and thus cannot figure out how to accomplish detecting the first image and displaying only that image.

Also, for reference, the RSS feed that I am wanting to pull is feed://www.wku.edu/honors/blog/?feed=rss2 and the test page for Simple Pie that I am using is http://www.wku.edu/honors/index.php?pag ... SS-Testing
Post Reply

Return to “Modules/Add-Ons”