0
Recent Comments Widget for Blogger

As from the title of the widget, you can realize that the Recent Comment Widget display the most Recent Comments made by the visitors on your blog. It’s a really nice thing to display on the sidebar of your blog, along with other similar widget like Recent Posts. So in this tutorial Im going to explain two methods of adding this widget in your blog sidebar, both very easy to do.
How to Install Recent Comments Widget in Blogger?!
Let’s start with the easiest way to add this widget. Just follow the steps below:
  • Login to your Blogger Account
  • Go to Layout and click Add a Gadget and select the HTML/JavaScript
  • In the opened window, paste the code below
<script src=”http://files.lifewg.googlepages.com/blogger-widget.js”></script>
<script>
var numposts = 10;
var showpostdate = false;
var showpostsummary = false;
var numchars = 100;
</script>
<h2>RECENT COMMENTS</h2>
<script src=”http://YourBlogOrWebsiteURL/feeds/comments/default?orderby=published&alt=json-in-script&callback=rp”></script>
As you can see in the code above, you can make changes related to the number of Comments to be shown, the number of characters for the Comment.
Also you can make changes to show the post date of the comment or the post summaries by changing the False statements to True.
After finishing with the configuration, just click Save and the installation is completed.
The second method is completely identical with the Recent Posts Widget that I explaned to you before and shows maximum of 5 comments. Just need to change the Feed URL with the Comments Feed URL of your blog, which URL has the following form
http://YOUR BLOG.blogspot.com/feeds/comments/default
But I’m going to explain this method again step by step.
  • Login to your Blogger Account
  • Go to Layout and click Add a Gadget, from the shown list find and click to Feed.
  • Enter your Comments Feed URL as is it shown in the picture below and click Continue.
  • Note the structure of the Comment Feed URL. Just change the YOUR BLOG part if your domain is .blogspot.com or if not then just add to your URL the part /feeds/comments/default
example: http://www.yoursite.com/feeds/comments/default
In the new window, you can make your preferences about the widget, modify the number of posts shown in the widget, showing the date and the source.
After the setup just click Save to complete the installation of the widget. Enjoy

 
GIGA Computers | © 2010