Content feed Comments Feed
ADVERTISEMENTS


How to show Top Commenters/Commentators widget on BlogSpot Blogs

If your blog has some loyal visitors and commenters, so one way to show your gratitude for them is to make your blog a "dofollow" blog, or you can add a top-commenters widget to your blog.
Adding a top-commenters is very easy, Just log in to your Blogger account.

Please Note: Before Editing your Template, Save a copy of your current template by clicking 'Download Full Template' in 'Edit HTML' page of the Blogger 'Layout' Window and 'Preview' the changes before Saving


Now go to Layout -> Add a Gadget -> HTML/Javascript

Now copy and paste this code in to 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 + "'";
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=2351a7b3195ee95ef3643998bc8def5e&url=http%3A%2F%2FYOUR_BLOG_ADDRESS_WITHOUT_HTTP://&num=10&filter=BLOG_NAME" type="text/javascript"></script>
<span style="font-size: 80%">Widget by <a href="http://wonderful-tricks.blogspot.com">Wonderful-Tricks</a></span>

Replace everything in RED, with the appropriate details of your Blog. You can of course change the number of commenters to be displayed. (shown in blue).


Your Ad Here

0 comments

Post a Comment

Blogumulus by Wonderful-Tricks

Followers