Sep 20, 2008

Top Commentators Widget

Would you like to display a list of the top commentators in your blog? This widget will enable you to do exactly that!

If you install this widget, a list of the top ten people who have commented most in your blog will be displayed with along with the count of comments they have made.

This is a great way of thanking readers who comment regularly and is very easy to add to your blog layout using the one click widget installer

Adding this widget is really simple. Just follow the given steps :

1st Step :
Go to your template - Add page element - Add HTML element

2nd Step:
Copy - paste the following code in the HTML element

<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 + "'";
 var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
 document.write(item);
 }
 document.write('</ol>');
 }
 </script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=720a4578c7b83dfce64615cb0ad3c642&url=http%3A%2F%2Fyourblogname.yourdomain.com&num=10&filter=yourName" type="text/javascript"></script>


Changes :

change yourblogname.yourdomain.com  to your blog name, for e.g carsonroll.blogspot.com 
change num=10  to the number of comments you wish to show, for e.g. num=5 
change filter=yourName to filter your name out of the top commentators, for e.g filter=@_raj 

After performing the necessary changes, save the widget and then your template. Now view your blog, you can see the list of top commentators along with the number of comments they have done on your blog.

Go back to Useful Widgets

0 comments:

Post a Comment