Results 1 to 5 of 5

Thread: Pausing RSS scroller help please

  1. #1
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing RSS scroller help please

    Hello all

    I would like a little help with this great script please?

    I have it working and have had it working for some time..
    I have just tried today to add a further box on the same page
    although the adding the second box is not the issue, this issue
    is the content of the RSS feed, its showing as html code,

    Please see here and its the box at the bottom of the page....
    http://www.bashys-place.com/weather/

    Yours hopefully

    Regards

    bashy

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

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

    What's the URL to the actual feed?

  3. #3
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    My apologies

    Pausing RSS scroller
    http://www.dynamicdrive.com/dynamici...ller/index.htm

    The feeds in question are:
    http://www.netweather.tv/rss/extra/nwfc.rss
    http://www.netweather.tv/rss/nwalert.rss

    Sorry again

    Regards

    Bashy

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

    Default

    As I suspected, the contents in your RSS feeds have all been parsed by default for conversion to HTML entity where applicable (ie: "<" becomes "b&gt;") etc. Most RSS feeds do not do this.

    Assuming your server is running PHP 4.3 or above, you can use the function html_entity_decode() to easily reverse HTML entities. Inside scrollerbridge.php, try changing the below function at the very end with the changes in red:

    Code:
    function slashit($what){ //Encode text for storing in JavaScript array
    $newstring=str_replace('&apos;', '\'', $what); //replace those half valid apostrophe entities with actual apostrophes
    $newstring=html_entity_decode($newstring) //undo HTML entities
    return rawurlencode($newstring);
    }

  5. #5
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, i will give this a go in the morning, much appreciated

    regards

    Bashy

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
  •