PDA

View Full Version : RSS Feed Reader (gfeedfetcher) isn't updating second feed



kellyrnh
08-03-2011, 03:33 PM
1) Script Title: gAjax RSS Feeds Displayer (hosted)

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

3) Describe problem: I am using the gfeedfetcher.js script to pull two separate feeds (from two different wordpress sites) onto my homepage. They both appear, and the top one updates. The second will not update, and is actually showing a post that I have since deleted. (If you click it to read it, it brings you to a error page because it no longer exists).

I have tried EVERYTHING I can think of, and am about to pull my hair out! Please help!!! :confused:

ajfmrf
08-04-2011, 03:17 AM
please post webpage

ddadmin
08-04-2011, 08:08 AM
Yep, please post a link to the problem page. But before then, check to make sure that each instance of the script on your page is assigned a unique variable name and not the same name, ie:


var cssfeed=new gfeedfetcher("example1", "example1class", "")
cssfeed.addFeed("CSS Drive", "http://www.cssdrive.com/index.php/news/rss_2.0/") //Specify "label" plus URL to RSS feed
cssfeed.displayoptions("date") //show the specified additional fields
cssfeed.setentrycontainer("li") //Display each entry as a list (li element)
cssfeed.filterfeed(10, "title") //Show 10 entries, sort by date
cssfeed.init() //Always call this last


var socialfeed=new gfeedfetcher("example2", "example2class", "_new")
socialfeed.addFeed("Slashdot", "http://rss.slashdot.org/Slashdot/slashdot") //Specify "label" plus URL to RSS feed
socialfeed.addFeed("Digg", "http://digg.com/rss/index.xml") //Specify "label" plus URL to RSS feed
socialfeed.displayoptions("label datetime snippet") //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

kellyrnh
08-05-2011, 04:17 PM
Thanks, I have tried renaming just about everything and still nothing. I even tried deleting the offending post that it only pulls and still nothing (I have since put it back). You can check out the site here (http://www.alapageboutique.com).

Thanks so much!

kellyrnh
08-08-2011, 02:50 PM
Any ideas? I really have no idea what the issue is :(

ddadmin
08-09-2011, 06:10 AM
You haven't fixed the issue I mentioned above about not duplicating the variable names for each instance of your RSS displayer on the page:


<script type="text/javascript">
var newsfeed=new gfeedfetcher("list1")
newsfeed.addFeed("Stylewatch", "http://www.alapageboutique.com/stylewatch/feed/")
newsfeed.filterfeed(1) //Show 1 entry, sort by date
newsfeed.init() //Always call this last
</script>
</div>
</div>
<div class="boxfoot"><a href="http://www.alapageboutique.com/stylewatch">More of the latest trends &raquo;</a></div>
</div>
</div>
<!--WHAT'S NEW-->
<div id="swhome">
<div class="boxheader">What's New</div>

<h2>The latest happenings at the store</h2>
<div id="wrapper">
<div class="content">
<div class="box">
<script type="text/javascript">
var newsfeed=new gfeedfetcher("list2", "_new")
newsfeed.addFeed("What's New at Alapage", "http://www.alapageboutique.com/news/feed/")
newsfeed.filterfeed(1) //Show 1 entry, sort by date
newsfeed.init() //Always call this last
</script>

Please see my post above for more details.

kellyrnh
08-09-2011, 03:18 PM
Thanks so much for your reply. Yes, I did try that but on testing it still doesn't work so I had not uploaded it (but I have now). Still nothing. The "Winter Sale" feed should not be pulling in, it is a really old post. Anything else that sticks out to you? :confused:

ajfmrf
08-09-2011, 08:11 PM
In the code for the second feed :


<code>

<h2>The latest happenings at the store</h2>
<div id="wrapper">
<div class="content">
<div class="box">
<script type="text/javascript">
var newsfeed=new gfeedfetcher("list2", "_new")
newsfeed.addFeed("What's New at Alapage", "http://www.alapageboutique.com/news/feed/")
newsfeed.filterfeed(1) //Show 1 entry, sort by date
newsfeed.init() //Always call this last
</script>
</code>

remove:

_new

and leave it as empty quotes like this:

""

See if it updates then

Bud

ajfmrf
08-09-2011, 08:12 PM
In the code for the second feed :





<h2>The latest happenings at the store</h2>
<div id="wrapper">
<div class="content">
<div class="box">
<script type="text/javascript">
var newsfeed=new gfeedfetcher("list2", "_new")
newsfeed.addFeed("What's New at Alapage", "http://www.alapageboutique.com/news/feed/")
newsfeed.filterfeed(1) //Show 1 entry, sort by date
newsfeed.init() //Always call this last
</script>




remove:

_new

and leave it as empty quotes like this:

""

See if it updates then

Bud

kellyrnh
08-09-2011, 08:25 PM
Hi Bud,
I had tried that at one point, but tried it again hoping, still nothing. This is really starting to drive me crazy! Any other ideas? I'll gladly try it!

Thanks

ajfmrf
08-09-2011, 11:24 PM
I see two links in your code:

<script type="text/javascript" src="js/gfeedfetcher.js"></script>

<script type="text/javascript" src="js/gfeedfetcher2.js"></script>

The second one does not exist when I try to upload the file.

Maybe thats the reason,you set it to use a second js file that is not working???

ddadmin
08-10-2011, 06:20 AM
The link inside the news feed "The latest happenings at the store" does work for me (instead of leading to a broken page), so at least that part seems to be fine. On the issue of why the feed is not showing the latest RSS entry, I haven't figured that part out yet. It's possible Google Feed API is having trouble identifying the latest entry based on your entries' date, for whatever reason.

Just to throw some things out there, try creating a new page showing just the problematic RSS feed (versus the two feeds now present), and also, sort the feed by "title" instead of date:


newsfeed.filterfeed(1, "title") //Show 1 entry, sort by title

Does the feed correctly display itself sorted based on one title?

kellyrnh
08-11-2011, 06:44 PM
Ugh, tried that and still nothing. I don't understand why this one post will only populate?

Also, the second gfeedfetcher.js was me testing out other things. I had removed it and that code is removed now too.

Running out of ideas but I really need to make this work.

Thanks for any help...!

ajfmrf
08-12-2011, 12:06 AM
I did not look back but have you tried a different feed?

kellyrnh
08-12-2011, 02:00 PM
I haven't tried another, this is the only one I could find that I could stylize and have it show the post's photo. If you have another that would fit those requirements, I'll give it a shot!

ajfmrf
08-13-2011, 06:16 AM
try any rss feed and see if it updates.

most of googles feeds have images

as do alot of news feeds

Do you know for a fact that feed has updated?

Bud