Top commentators widget for blogger

I liked (in the past) Wordpress, especially for this widget.
But I searched and I found that it's also possible in Blogger!
Just create a HTML/Script element and put this code on it

<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=c92ac21897d8b56e61cfa85930dd89a1&url=http%3A%2F%2FBLOGNAME.blogspot.com&num=10" type="text/javascript"></script>

(merge the last two lines and replace BLOGNAME with your blog's subdomain name)

Have nice time

6 comments:

La Blogueria said...

Thank for the script, works nicely!
Regards.

Bee said...

Nice post :) Good job and Blog ON!

Hülya Konar said...

thanks a lot..bye.

Grimm said...

unfortunately not working here. would appreciate it if you could contact me.

konstantrevolution@mail.com


regards

Grimm

hanum said...

I'm using WP and doesn't allow to be added javascript :(

enzyme supplements said...

This is the most reliable thing of thing we've ever used. top commentator is awesome! top commentator has completely changed how I look at online business.

Post a Comment