
Well folks, it deeply saddens me to announce that the blog and comment counter I spent so much time and brain power on is not going to remain useful very much longer! :( Apparently the Blogger API has a limit of 200 entries, and that's why the comments are being counted incorrectly already. Our class has a total of 130 blog posts so far, and if that surpasses 200, the count will begin to be incorrect as the comments counting is. I wish there was something I could do, but I guess we'll all have to resort to counting everything by hand from now on (or using Colin's way). I have contacted the developers of the API, but since it's through Google, who knows if they'll ever even respond...especially before our semester is over.
Sorry for the false hope in this application, but I don't see any way around this 200 entry limitation that Blogger has on their API. The most annoying part of it all is that the limit is not stated in the documentation anywhere! I spent countless hours trying to debug my JavaScript, assuming I had made a programmatical error along the way while counting the comments, but after a while I realized it wasn't my code. I began searching the Web to see if there was any sort of limitation and sure enough, 200 is the maximum!
If anyone can think of any neat ways to hack the thing or pull the information back differently from the API, I'd be more than happy to experiment with it some more, but I just don't think there's much of a way around it. I'm going to look into the different querying options they offer to see if I can query to different time frames or something than do the math once the two different results come back. Even so, that would still be a limit of 400, meaning the comments still would be incorrect.
If something ends up changing I'll be sure to post back with the results, but in the meantime I'm afraid we've reached the end....I guess it's like they say....All good things must come to end. LOL
Here's the link again for those who still want to use it to count the posts, but remember that once we surpass 200 posts as a class, that count will be off as well.
http://people.emich.edu/mmager/449
UPDATE:
I fixed it everybody!! The code to make this work is now a complete mess, but I basically had to make 8 different AJAX calls to the blogger API dividing it up in the query on a two week basis rather than getting it all at once. This allowed me to count the comments for each two weeks then add them all together in the end to get the total. You guys will notice your numbers are much higher and actually accurate now!