Results 1 to 4 of 4

Thread: Pausing RSS Scroller - Description not showing up

  1. #1
    Join Date
    Sep 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Pausing RSS Scroller - Description not showing up

    1) Script Title: Pausing RSS Scroller

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

    3) Describe problem: The description is not showing up. The date and title are, but the description is not.

    Here's how it's laid out in the body:

    Code:
    new rsspausescroller("bearealestateheavyweight", "pscroller2", "rssclass", 3000, "_new", "date+description")

    As you can see, I am requesting the description show per the instructions.

    Here's the URL of the site the code is on:

    http://www.realestateshortsaleinfo.com/

    Please help!

  2. #2
    Join Date
    Sep 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey all.... I'm on a bit of a deadline with this client's site... does anyone know how to help me with this issue?

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

    Default

    Hmmm the script does appear to be working correctly, and the JavaScript array that contains your RSS feeds does contain a description field for each entry: http://www.realestateshortsaleinfo.c...ateheavyweight With that said, the issue most likely is due to how the descriptions in your RSS feed are encoded.

    Inside scrollerbridge.php, the relevant function that decodes the descriptions is:
    Code:
    function slashit($what){ //Encode text for storing in JavaScript array
    $newstring=str_replace(''', '\'', $what); //replace those half valid apostrophe entities with actual apostrophes
    return rawurlencode($newstring);
    }
    You may need to edit the above to add additional decoding to get your descriptions to show up. Or if you're not familiar with PHP, consider a script such as gAjax Scroller, which may take care of the issue automatically.
    DD Admin

  4. #4
    Join Date
    Sep 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    Hmmm the script does appear to be working correctly, and the JavaScript array that contains your RSS feeds does contain a description field for each entry: http://www.realestateshortsaleinfo.c...ateheavyweight With that said, the issue most likely is due to how the descriptions in your RSS feed are encoded.

    Inside scrollerbridge.php, the relevant function that decodes the descriptions is:
    Code:
    function slashit($what){ //Encode text for storing in JavaScript array
    $newstring=str_replace(''', '\'', $what); //replace those half valid apostrophe entities with actual apostrophes
    return rawurlencode($newstring);
    }
    You may need to edit the above to add additional decoding to get your descriptions to show up. Or if you're not familiar with PHP, consider a script such as gAjax Scroller, which may take care of the issue automatically.
    Hmm. Yeah...I'm afraid that's a bit outside of my skillset. I'll take a look at the ajax scroller though.

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
  •