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) {
 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>";
<script src="" type="text/javascript"></script>

Changes :

change  to your blog name, for e.g 
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


Post a Comment