PDA

View Full Version : Pausing RSS Scroller- can't show links properly in description



amandaf
08-16-2007, 01:53 PM
1) Script Title: Pausing RSS Scroller

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

3) Describe problem:

I want to use this scroller to feature headlines and excerpts from my blog feed including social bookmark links at the end of each item. This has been configured in my feed to be exactly the way I want it, and is in RSS 2.0 format (burned through Feedburner). While all of the text I want is displayed correctly, the HTML is not correctly formed in the descriptions, and looks like this:

<p>My post summary here...</p>
<br/><br/><a href="bookmarklink#1">Bookmark link 1</a>...etc

If I set the Strip HTML variable to "False" in the lastRSS.php script, the feed shows only the test with no active links.

Here is a link to a test page which runs the script with the strip_html variable set to false in lastRSS.php:

http://kunoichi.info/rsspausescroller/demo.htm

I really want to be able to display these active links at the bottom of each feed item. Would anyone please be able to explain to me how this can be achieved?

In a different "Headlines generator" (provided by Feed2js) I am able to display the feed items the way I would like them to be shown; unfortunately though this is a static widget, and ideally I need the items to scroll as in the Pausing RSS Scroller.

Any advice would be much appreciated.

Regards,

Amanda

ddadmin
08-17-2007, 02:18 AM
There are some known formatting limitations with this script, as it uses a rather inflexible RSS parser (LastRSS). Can you try using this RSS script (http://dynamicdrive.com/dynamicindex18/gajaxpausescroller.htm) instead? It may be able to display that portion of the feed correctly as well.

amandaf
08-17-2007, 01:46 PM
Thank you so much for your help, ddadmin! I hadn't realized that the lastRSS script was so limiting. Now I have now successfully created a new headlines box using the gAjax scripts which feature the links beneath each entry, exactly as I wanted them! If you're interested in taking a look, the box is featured in my blog's sidebar here:

http://www.bloggerbuster.com

I had looked at this script and had (incorrectly) assumed that I wouldn't have so much control over it. I am so pleased to have got this working.

There is only one slight thing I would like to change: I would prefer the item date to be on a separate line to the item title. I assume this should be configured in the gajaxscroller.js file, but am unsure how to do this. Any advice on this would be gratefully received.

ddadmin
08-17-2007, 08:14 PM
There is only one slight thing I would like to change: I would prefer the item date to be on a separate line to the item title. I assume this should be configured in the gajaxscroller.js file, but am unsure how to do this. Any advice on this would be gratefully received.

Inside the gfeedfetcher.js, this line and the few lines above it control how each portion of the RSS feed is output:


rssoutput+=this.itemcontainer + itemtitle + " " + itemlabel + " " + itemdate + "\n" + itemdescription + this.itemcontainer.replace("<", "</") + "\n\n"

So to get the item date to display on its own line, you might do something like this:


rssoutput+=this.itemcontainer + itemtitle + " " + itemlabel + " " + "<br />" + itemdate + "<br />\n" + itemdescription + this.itemcontainer.replace("<", "</") + "\n\n"

amandaf
08-18-2007, 12:34 PM
Thank you again, ddadmin!

This worked a treat when I edited the gajaxscroller.js file. Much appreciation for all your help :)