PDA

View Full Version : Pausing RSS Scroller - Description not showing up



MBHouse
09-23-2009, 02:31 AM
1) Script Title: Pausing RSS Scroller

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/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:


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!

MBHouse
09-24-2009, 01:25 AM
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?

ddadmin
09-24-2009, 07:40 AM
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.com/lastrss/scrollerbridge.php?id=bearealestateheavyweight 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:


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 (http://www.dynamicdrive.com/dynamicindex18/gajaxpausescroller.htm), which may take care of the issue automatically.

MBHouse
10-03-2009, 09:19 PM
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.com/lastrss/scrollerbridge.php?id=bearealestateheavyweight 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:


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 (http://www.dynamicdrive.com/dynamicindex18/gajaxpausescroller.htm), 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.