June 27, 2008

Update: FTP Blogs do publish comment feeds!

While researching for my previous post, Recent Comments for FTP Bloggers, I had been unable to locate the comments feed for FTP published blogs (and had wrongly assumed that such blogs didn't publish a comments feed!). Luckily, Pete has confirmed that FTP blogs do publish comment feeds! The URL structure of the feed location is as follows:
Where [blog-id-number] is the unique identifier for your blog. To find your unique blog ID number, simply log in to Blogger and access the dashboard for your FTP published blog. You can then locate your blog ID by looking in the address bar, where your blog ID will be the long numeric string at the end of the URL: Copy this number, and replace [your-blog-id] with this number instead. The URL for your FTP blog's comment feed will then be structured like this instead:
You can use the URL for your comment feed to enable a link for subscribers; to syndicate through Feedburner, or simply to provide a list of recent comments which is drawn from your comments feed.

How to publish recent comments from your FTP blog's comment feed

If you would like to display a list of recent comments in a similar manner to this widget's display, you can use paste the following code into your blog template (be sure to change [your-blog-id] to your unique ID number!): <script style="text/javascript" src="http://bloggerbuster.com/scripts/comments.js"></script><script style="text/javascript">var a_rc=5;var m_rc=true;var n_rc=true;var o_rc=100;</script> <script src="http://blogger.com/feeds/[your-blog-id]/comments/default?alt=json-in-script&callback=showrecentcomments"&gt;</script> By default, this script will display the 5 most recent comments, with a 100 character excerpt from each comment. If you prefer to display more (or less) than 5 recent comments, you should edit this phrase in the code, replacing "5" with the number of comments you prefer to show:
var a_rc=5;
If you would prefer to show more (or less) of an excerpt for each comment, you should edit this phrase and replace "100" with the number of characters to display:
var o_rc=100;
Note: to display no excerpt at all, you can simply replace "100" with "0". I hope this update has provided useful information for those publishing their Blogger blogs via FTP. Please accept my apologies for assuming FTP blogs didn't publish comment feeds! Many thanks go out to Pete for his helpful comment and information.

Advertise on Blogger Buster

Browse through the Archives

All existing posts are still available to view while I'm working on the site, albeit seen in a much simpler interface. Feel free to browse through the archives to find tutorials, templates and articles to help you build a better blog:

Blog Archive

© Blogger Buster 2010 Home | About | Contact | Hire Me | Privacy Policy