
To add this top commentators widget to blogger add this below codes.
Part1
Login to blogger->> Design(page elements) or layout->>
Add a gadget->> Html/java script
Add a below code in the Html/java script box
<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://modifymyblogs.blogspot.com/>Top Commentators Widget</a>
| <a style="align:left;" href='http://modifymyblogs.blogspot.com/'>Modifymyblogs</a>
</small>
Part2
1.Change the YOUR-BLOG-URL to your site url.
(Ex:-http%3A%2F%modifymyhome%2Fblogspot%2Fcom)
2.Change num=5 as you like(number of top commentators to show).
3.Change Anonymous to according to your blog comment settings.
4.save gadget and you are done.
Hello
ReplyDeleteI tried to install the widget. Thera are no problems with the instalation but in my site I can see only "Modifymyblogs" and nothing else.
Whats my fault?
Greatings from Germany
Karmesin
now upadated the widget code try now its work on your site
ReplyDeleteIt is really a nice widget
ReplyDelete