PDA

View Full Version : Pausing RSS Scroller Pls Help



tamah0lic
06-15-2007, 04:26 PM
1) Script Title: Pausing RSS Scroller

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

3) Describe problem: I have two feeds on one of my pages the one that ends with .rss works fine, the one that ends with .xml displays some HTML markup, if someone has some time to take a look and help me out I'd appreciate it.

BTW this site rocks, makes my life a lot easier.

Example Site: http://www.rcbtc.org/b_solutions.htm

ddadmin
06-16-2007, 03:11 AM
It shouldn't matter if the RSS feed ends in .rss or .xml, as long as it's valid. From what I can tell the issue is the fact that HTML tags inside the .xml feed is already encoded, so when scrollerbridge.php tries to encode it then decode it at the output stage, there's still one level of encoding that needs to be reversed. Try playing with this function inside scrollerbridge.php:


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);
}

Specifically, the part in red, to handle your situation. If I have time I'll try to revist this thread to see what I can come up with. Hopefully you're familar with PHP. :)

tamah0lic
06-18-2007, 12:31 PM
I sincerely appreciate you taking the time to look at it. Unfortunately I am not very familiar with PHP so, playing with that variable be do more harm than good. I take from what you are saying though that maybe this is just a problem with that particular feed being sorta quircky. Perhaps Ill just search for another feed for the page.

Thanks for your time:D

tamah0lic
06-18-2007, 02:37 PM
I tried a different feed and from a totally different source and had the same result :confused: