| Mobile| RSS

Recent Comments Widget For BlogSpot Blogs

Thursday, August 27, 2009 | posted in , | Comments

Recently I have posted about showing Top Commenters Widget in your blog, and also a post about showing the profile image of commenter. Here's another widget to be added on your blog, which shows the posts where recent comments have been made.




To add the widget, follow these steps:
Log in to your Blogger account. Then go to Layout -> Add a Gadget -> HTML/Javascript
Now copy and paste this code in the widget:




<script type="text/javascript"> function pipeCallback(obj) { document.write('<ul style="text-transform: capitalize;">'); var i; for (i = 0; i < obj.count ; i++) { var href = "'" + obj.value.items[i].link + "'"; var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>"; document.write(item); } document.write('</ul>'); } </script> <script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=ed72b3262554fca0586292a4f830211e&url=http%3A%2F%2FYOUR_BLOG_ADDRESS_HERE_WITHOUT_http://&num=10" type="text/javascript"></script> <a href="http://bloggerstop.net/2008/12/recent-comments-widget-for-blogspot.html" target="_blank"><span style="font-size: xx-small;">Popular Posts Widget</span></a>




At the appropriate place in the above code, replace it with your blog's address.(Shown in red color)
And in case you directly want to show the comments instead of the posts titles, then follow these steps:


Log in to Blogger, Go to 
Layout -> Add a Gadget -> Feed widget

Then in the feed field, paste this:
http://YOUR_BLOG.BLOGSPOT.COM/feeds/comments/default

Then select the appropriate options and save it.


Source BloggerStop


Popular Posts

Label Cloud

Subscribe via email

BeLook SiteSubscribe to BeLook to receive regular News, Techology, Tips, Themes!

Or subscribe by email and all this direct to your inbox:

Delivered by FeedBurner