Log in

View Full Version : Images in RSS...



CyberDave
12-14-2010, 12:53 PM
How can I edit this code to have images appear in my RSS list...



<div id="rssSummaryList<?php echo intval($bID)?>" class="rssSummaryList">

<?php if( strlen($title)>0 ){ ?>
<div class="rssSummaryListTitle"><?php echo $title?></div>
<?php } ?>

<?php
$rssObj=$controller;
$textHelper = Loader::helper("text");

if (!$dateFormat) {
$dateFormat = t('jS F, Y');
}

if( strlen($errorMsg)>0 ){
echo $errorMsg;
}else{

foreach($posts as $itemNumber=>$item) {

if( intval($itemNumber) >= intval($rssObj->itemsToDisplay) ) break;
?>

<div class="rssItem">
<div class="rssItemTitle">
<a href="<?php echo $item->get_permalink(); ?>" <?php if($rssObj->launchInNewWindow) echo 'target="_blank"' ?> >
<?php echo substr ($item->get_title(), 0, 100); ?>
</a>
</div>
<div class="rssItemDate"><?php echo $item->get_date($dateFormat); ?></div>
<div class="rssItemSummary">
<?php
if( $rssObj->showSummary ){
echo $item->get_description();
}
?> <a href="<?php echo $item->get_permalink(); ?>" <?php if($rssObj->launchInNewWindow) echo 'target="_blank"' ?> >Read more</a>
</div>
</div>

<?php }
}
?>
</div>

CyberDave
12-14-2010, 05:12 PM
Anybody?