PDA

View Full Version : separating thumbnail from description in RSS feed


tonyv9
09-14-2005, 05:54 AM
hi,

I am using the carp RSS gobbler (geckotribe.com) to display pics from my personal page of my deployment to my company page. I basicaly want to be able to separate the picture (thumbnail) from the description. Right now they all flow together and carp can't seem to handle it. Is there any way I can add an <image> tag to the <title><date><description><pubdate> which are already there.

I am trying to separate the thumbnail image in my RSS feed from the description it is embedded in

here is an example of the output
http://www.rfi-llc.com/Untitled-1.php

and here is an example of the RSS feed
http://www.rapid-fire.us/index.php?x=rss

I would likt to make it so I can manipulate the image separate of the description.

I would like to make it look almost exactly like
the item output in http://www.geckotribe.com/rss/carp/docs/conf/display/

If there is a hack/mod which someone could help me with I would greatly appreciate it and would put a thank you on my frontpage.
Any and all help is greatly appreciated!


Anthony Veltri
Rapid Fire Industries
http://www.RapidFireIndustries.com

GeoS
09-14-2005, 07:40 AM
Near line 732:
$output .= "
<item>
<title>$headline</title>
<link>".$cfgrow['siteurl']."?showimage=$id</link>
<description>
<![CDATA[
<img src='$image' />]]>
<br />$headline<br />$body</description>
<pubDate>$datetime</pubDate>
</item>
";

change to:
$output .= "
<item>
<title>$headline</title>
<link>".$cfgrow['siteurl']."?showimage=$id</link>
<image>$image</image>
<description>
<![CDATA[
<img src='$image' />]]>
<br />$headline<br />$body</description>
<pubDate>$datetime</pubDate>
</item>
";

Unfortunately it makes feed invalid RSS 2.0.