View Full Version : help rssbox and "SimplePie" urgent!

05-30-2010, 07:03 PM
1) Script Title: RSS Display Boxes

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm

3) Describe problem: as limiting the content of the description I just want to show the image and title

I find this:
http://www.subeimagen.com/images/22imagen1.jpg (http://www.subeimagen.com/view.php?filename=22imagen1.jpg)

and I want to:
http://www.subeimagen.com/images/64imagen2.jpg (http://www.subeimagen.com/view.php?filename=64imagen2.jpg)

sorry My English (Google translator)

05-31-2010, 08:02 AM
You'll need to edit outputbody.php so to parse the description portion of each RSS feed and strip it of everything except the image:

if ($template=="" || $template=="default"){ //DEFAULT TEMPLATE
<DIV class="rsscontainer">
<div class="rsstitle"><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></div>
<div class="rssdate"><?php echo $item->get_date('d M Y g:i a'); ?></div>
<div class="rssdescription"><?php echo $item->get_description(); ?></div>
} //end default template
else if ($template=="titles"){ //"TITLES" TEMPLATE
<DIV class="rsscontainer">
<div class="rsstitle"><a href="<?php echo $item->get_permalink(); ?>" target="_new"><?php echo $item->get_title(); ?></a></div>
<div>Category: <?php echo $item->get_category(); ?></div>

The code in red represents the portion of the file you need to edit, more specifically:

<?php echo $item->get_description(); ?>

This part just outputs the entire RSS description. You will want to save it to a variable instead first, remove everything but the target image, then output the stripped down content. How exactly to do this depends on your familiarity with PHP...

05-31-2010, 05:02 PM
yes, but anyone knows the function to see the image, not the content?:confused: