Google
 

Recent Comments

Tuesday, March 25, 2008

How to Add the "Top Commentators" Widget for Blogger.com

  • Login to your Blogger Dashboard.
  • Under "Page Elements".
  • Click on "Add a Page Element".
  • Look for "HTML/JavaScript" and "ADD TO BLOG".
  • Copy and Paste the JavaScript below.
  • Replace YOURBLOGNAME with the name of your Blog.
  • Choose the number of Top Commentators to be displayed and replace the XX at "num=XX".
  • "SAVE CHANGES". You are Done.
<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 src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&
_id=c92ac21897d8b56e61cfa85930dd89a1&
url=http%3A%2F%2FYOURBLOGNAME.blogspot.com&num=XX" type="text/javascript"></script>

Discover The Law of Attraction! Learn the Secret to attracting everything you desire in your life.

AddThis Social Bookmark Button

6 comments:

Steve Ballmer said...

good trick, but I refuse to use javascript!

Tips Supremo said...

May I know the reason?

keeyit said...

Good tips.. thanks for sharing !

Ian said...

Very nice widget. If I'd still been using blogger.com I'd definitely have used it.

abel said...

a cup of cofee?...fine...
thank's a lot for your tips.
nice..

Anonymous said...

great!techyplus