To show list of top commentors on your blog

Sunday, December 20, 2009


This gadget is used to display list of top commentators on your blog. You can include any number of commentors or can exclude anyone from the list. This gadget is useful only if your blog has many number of comments.

To add this gadget to your blog go to > Layout > Add a Gadget > HTML/Javascript and add the below code :
<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 src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=7b5e76fd684f11e94320abd4e00fbbca&url=http%3A%2F%2Fbloggerflick.blogspot.com&num=10&filter=Author" type="text/javascript"></script>
Replace the code in red with your blog url and num=10 indicates the number of commenters to be displayed in the list. If you want to exclude anyone then replace Author with Commenter Name.

Now, save your gadget.

Subscribe to our blog

Do you have any Suggestions, add your comment. Please don't Spam!
If you like this site >> Subscribe to our feed

0 comments:

Post a Comment