Top commentators widget propels visitors to comment more in order to get to the first 10(whichever number is specified) of a blog.
Although,this widget is only useful on blogs with many members and commentators.It also comes handy whenever you want to give gifts to your blog members.

HOW TO ADD THIS WIDGET.

Go to Design >> Page element and select 'Add a gadget'.

Now scroll down to where you see HTML/JAVASCRIPT and select ADD.

Paste the following scripts and SAVE 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 type="text/javascript" src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=918c4b96efdf63fee389f2f025085904&EntertheURL=http%3A%2F%2F YOUR-BLOG.blogspot.com/ &number= 10 &Nametobeexcluded=Anonymous"></script>

CUSTOMIZING THE WIDGET

YOUR-BLOG.blogspot.com-Change this to the address of your blog.
number= 10-This is the number of commentators to display.Change it to any number you like.
Nametobeexcluded=Anonymous-This is the name of a visitor you want to disable from displaying.You can also change this to the name of one of your blog visitors or AUTHOR.

0 blogger-facebook:

Post a Comment

 
Top