View Full Version : gAjax RSS Feeds Displayer

09-09-2012, 04:27 PM
1) Script Title: gAjax RSS Feeds Displayer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm

3) Describe problem: Is there anyway you can update this script to display the 'Author' please?

Yours Roy

09-10-2012, 01:25 AM
Use this update (right click and 'Save As'):


Now when you set the instance.displayoptions for a feed, you may use the 'author' keyword if desired, example:

<script type="text/javascript">

var socialfeed=new gfeedfetcher("example2", "example2class", "_new")
socialfeed.addFeed("Slashdot", "http://rss.slashdot.org/Slashdot/slashdot") //Specify "label" plus URL to RSS feed
socialfeed.displayoptions("label datetime snippet author") //show the specified additional fields
socialfeed.setentrycontainer("div") //Display each entry as a DIV
socialfeed.filterfeed(6, "label") //Show 6 entries, sort by label
socialfeed.init() //Always call this last


Be aware that many feed items have no author. If you specify author and there is none for a particular item, the script will check in order to see if there's:

a copyright for the item
an author for the feed
a copyright for the feed

and display that if found. If it still cannot find one, it will come back as 'unavailable'.

The browser cache may need to be cleared and/or the page refreshed to see changes.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.