PDA

View Full Version : Adding Enclosure Url to show images



scottbak
07-18-2006, 03:24 PM
Script: Ajax Ticker
http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm

I am trying to add the ability to pull the images from the rss feed without prevail.
I tried editing these but it hung the ticker at initializing ticker...

rssticker.js:
var enclosureurl='<div class="rssdate"><a class="SText" href="'+this.link
if (this.logicswitch.indexOf("enclosureurl")==-1) enclosureurl=""
+enclosreurl //STRING FOR FEED CONTENTS

Bridge.php:
echo "<item>\n<link>$item[link]</link>\n<title>$item[title]</title>\n<enclosureurl>$item[enclosure url]</enclosureurl>\n<description>$item[description]</description>\n<pubDate>$item[pubDate]</pubDate>\n</item>\n\n";

Help! It's driving me crazy!:confused:

Here is the rss.xml file line I wish to pull:
<enclosure url="http://calendar.csus.edu//helpers/imagewriter.aspx?imageId=63" length="5000" type="image/jpg" />


thanks! Scott

ddadmin
07-18-2006, 08:04 PM
Please edit your thread so it conforms to the correct posting format (http://www.dynamicdrive.com/forums/showthread.php?t=6) for asking a DD related script question.

scottbak
07-20-2006, 01:40 PM
Please help

ddadmin
07-20-2006, 05:29 PM
Hmmm by default lastRSS.php does not support the extraction of custom elements within a RSS feed. You'll need to hack lastRSS.php directly and obviously need some to be familiar with PHP...