How to display Top 10 commentators in your blog?

Hi.

How to display Top 10 commentators in your blog?

Here is the javascript code for displaying top 10 commentators with number of comments.

<script type="text/javascript">

function pipeCallback(obj)

{

document.write("<ol>");



for (var i = 0; i < parseInt(obj.count) ; i++)

{

var href = "'" + obj.value.items[i].link + "'";

var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a>
</li>";

if ( item.search("TamilNenjam") < 0 )

{

document.write(item);

}

}

document.write("</ol>");

}



</script>

<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&

_id=c92ac21897d8b56e61cfa85930dd89a1&url=http%3A%2F%2Ftamizh2000.blogspot.com&num=12"


type="text/javascript"></script>



url=YOUR BLOG URL&num=NUMBER OF COMMENTATORS TO BE DISPLAYED"

If you do not want to display your name in the list, please attach this code.
if ( item.search("YOUR NAME") < 0 )

{

document.write(item);

}


Make some appropriate changes for your convenience.


Please Click Here to get the Source code

No comments: