Top Commentators widget for blogger

Add top commentators widget to your blogger to know the people who have most no of comments on your blog.
Just copy the code below and go to Layout>>ADD a gadget>>HTML/JavaScript and paste the below code in it and save it. Its done.

Note- Change the code in bold with your blog’s Address
<script type='text/javascript'>
function pipeCallback(obj) {
document.write('<ol>');
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
if(obj.value.items[i].link == "")
var item ="<li>" + obj.value.items[i].title + "</li>";
else
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ol>');
}
</script>
<script type="text/javascript" src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=31f03b26b13cc52ee46575b89095299a&url=http%3A%2F%2FYOUR BLOG'S ADDRESS&num=10&filter="></script>

Grab The Post URL

URL:
HTML link code:
BB (forum) link code:

Leave a comment

  • Google+
  • 0Blogger
  • Facebook
  • Disqus

0 Response to "Top Commentators widget for blogger"

Post a Comment

comments powered by Disqus