Pasang Top Commentators Widget

Top Commentators Widget For Blogger

You might have noticed the Top Commentators Widget in blogs powered by WordPress. Sometimes, it is referred to as Best Commentators Widget. Now you can also reward your top commentators by displaying their names with clickable links on your Blogger blog and helps you to see who comments on your blog more frequently.

The "Top Commentators Widget for Blogger" has some additional features.
          • This allows you to filter out the blog author's name from the top commentators list.
          • It also counts number of comments by unique profile id.

Follow these simple steps to add the top commentators widget in your Blogger / Blogspot blog.


Step 1 :

Log into Blogger. Go to your Blogger Dashboard > Design/Layout > Page Element > Add a Gadget > HTML/JavaScript

Blogger Design
Blogger page elements
Blogger add a gadget
Blogger HTML/JavaScript


Step 2 :


Copy and paste the code below:

<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-URL&num=5&filter=Anonymous" type="text/javascript"></script>
<br/><small><a style="align:left;" href='http://www.blogger.webaholic.co.in/2011/07/top-commentators-widget-for-blogger.html'>Top Commentators Widget</a>
 | <a style="align:left;"
href='http://www.webaholic.co.in/'>Webaholic</a></small>


Step 3 :
 
Change YOUR-BLOG-URL with your blog url. Don't include www.


Step 4 :

Save the template.


Customizations :
num=5

Shows the number of comments in the list. You can change the number accordingly.
filter=Anonymous

Filters Anonymous comments from the Top Commentators Widget. You can add your name (blog author) here to keep yourself out of the top commentators list.

0 comments:

Post a Comment

Silahkan Baca Artikel Saya......