Popular Post Widget-Most commented Posts Blogger

Popular Post Widget i.e Most commented Posts for blogger as is very great widget to show of your posts,which your readers most liked and expressed there love in comments.You will love to use this widget in your blog for sure.It is very easy to install just have to add small bit of javascript codes to your blog sidebar.

How to install this widget:-

Go to Layout > Add page Element > Html/Javascript

Add the below code there

<script type=”text/javascript”>
function pipeCallback(obj) {
document.write(‘<ol style=”text-transform: capitalize;”>’);
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=1cf38ae68efbe859c4ba1ee239cec099&url=http%3A%2F%2Fanshuldudeja.blogspot.com&num=10″ type=”text/javascript”></script>
<noscript><a href=”http://anshuldudeja.blogspot.com” target=”_blank”>Blogger Hacks</a></noscript>

Change the code in red above with the your blog name and in green to show how many posts you want to display and please don’t remove he credit’s.Now save it.

Using above codes will show total no of comments in front of posts if you dont wanna show them use below codes

<script type=”text/javascript”>
function pipeCallback(obj) {
document.write(‘<ol style=”text-transform: capitalize;”>’);
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=1a1c6e4e6d4f148e3650fda46910e15f&url=http%3A%2F%2Fanshuldudeja.blogspot.com&num=10″ type=”text/javascript”></script>
<noscript><a href=”http://anshuldudeja.blogspot.com” target=”_blank”>Blogger Hacks</a></noscript>

I hope you will like this widget for sure Enjoy !!!

Credits To Divya Sai.Visit his blog for sure as his blog is also the good source for blogger widgets.

28 Comments

  1. WebbieLady January 17, 2009
  2. dBa February 28, 2009
  3. Anshul February 28, 2009
  4. toto April 3, 2009
  5. Anshul April 3, 2009
  6. Ms Unreliable April 6, 2009
  7. Anshul April 6, 2009
  8. Mikes May 11, 2009
  9. bible uncle June 4, 2009
  10. Anshul June 4, 2009
  11. sop June 10, 2009
  12. GMP June 20, 2009
  13. Anshul June 20, 2009
  14. Kelvin July 1, 2009
  15. yhan02ph August 8, 2009
  16. N@k$h@tr@! August 27, 2009
  17. Your Frugal Buddy August 27, 2009
  18. Anshul August 27, 2009
  19. JaLpArI - tHe MeRmAiD September 27, 2009
  20. Nomad October 1, 2009
  21. Don Luke October 29, 2009
  22. jrplaza December 11, 2009
  23. Unikversiti December 11, 2009
  24. Hem och Lycka December 14, 2009
  25. TechGeeze March 2, 2010
  26. Technolic May 23, 2010
  27. Anshul May 24, 2010
  28. vinci coppolas September 21, 2010

Leave a Reply