12 August 2008

How to add Top Commentators widget to Blogger blog ?

Advertisements

Again a very popular Wordpress plugin - Top Commentators,is now available for Blogger.

Here is a widget which displays a list of 10 readers of your blog who comment more often.This is a very helpful method to encourage your readers to comment on your blog.


Go to Page Elements >> Add a Gadget >> HTML/JAVA script and copy paste following code there.

<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%2FYOUR_BLOG_ADDRESS_WITHOUT_HTTP://&num=10&filter=BLOG_AUTHOR_NAME" type="text/javascript"></script>

Just change the you blog address and author name and save it.

Related Posts

7 comments

JesusFreak
September 4, 2008 at 11:46 AM

thanks for the info...

October 26, 2008 at 10:22 PM

Thanks for the help with the Widget
Grammy

October 27, 2008 at 4:07 AM

you are welcome Grammy

September 19, 2009 at 2:25 AM

Hi there! Love your site; thanks for all your great widget help!

I installed the "Link within" widget with no problem. However, the "top commentator" widget isn't cooperating. It doesn't take me to the Blogger layout page but just gives me a bunch of odd looking code. I tried to copy and paste the code into my blogger site but when I did, the code just showed up in the sidebar, but not the widget.

Thanks again for the great service you offer!

September 19, 2009 at 6:35 AM

Try to remove link within first then try this.

November 23, 2009 at 5:10 AM

This title I want the code only to add in my Gadget.Can you give me only code.

November 24, 2009 at 2:05 AM

sorry but there is not any code.

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More