Thursday, February 26, 2009

Add Top Comentators Widget in Blog

There is someone who ask me via email. The contents such as this.

Dear Andre.

I want to ask you, how do I add a Top Comentators widget in the blog sidebar?

Regards.


That is the content of the email someone sent via email. Well, I will answer questions through this article, so that everyone can read it.

With the Top Comentators widget, people who visit the blog we will know who has
to comment. The widget is also good to attract readers that would also
provide commentary. Therefore, you need to install this widget in your
blog sidebar. If you do not want to install, also no problem.



  1. Log in with your blogger account.
  2. Go to Layout.
  3. You will taken to Layout page, click on Add Gadget.
  4. Pop-up window will opened. Click at HTML/Javascript. Then copy hte code below and paste to blank 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 + "'";
    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&filter=nickname&url=http%3A%2F%2FBlogName.blogspot.com&num=10"
    type="text/javascript"></script>


  5. Then save. Finished



Now, your blog is equipped with a Top Comentators widget.

0 comments:

Post a Comment