Page 1 of 1

Show Image in CMSMS Simple Pie

Posted: Tue Apr 27, 2010 8:35 pm
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>

Re: Show Image in CMSMS Simple Pie

Posted: Wed Apr 28, 2010 3:02 pm
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