Results 1 to 4 of 4

Thread: Adding Enclosure Url to show images

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding Enclosure Url to show images

    Script: Ajax Ticker
    http://www.dynamicdrive.com/dynamici...ajax/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!

    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
    Last edited by scottbak; 07-19-2006 at 03:37 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Please edit your thread so it conforms to the correct posting format for asking a DD related script question.

  3. #3
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Anyone?

    Please help

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •