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:

WebbieLady said...

Ah Yes, This is Beautiful. I would like to have this, I will grab this later. Thank you for sharing to us.

BTW, since you are a widget expert, maybe you can give me some advice as to a wide 2-column blogger layout, with a thin right sidebar? I ahve ben hunting for it for my photo blog but i cannot find one...sigh...desperation..

dBa said...

hi.why my widget can not use it?? :((
please help me!

http://keranamu-dba.blogspot.com

Anshul said...

Why what happened its working gret you can chk in my design

toto said...

It can not be shown now,
Please check!

Anshul said...

Its working check my popular posts i am using same codes toto.

Ms Unreliable said...

Popular Posts does not work for me on your site in either Firefox or Internet Explorer. Additionally, it does not work when I use this code on my blog...but would love to have it so will keep checking in :)

Anshul said...

ya somtimes here come problems dont worry its fine it is working , try it after some time.

Mikes said...

Thanks a lot for this! May God Bless you more!

bible uncle said...

Popular Posts does not work for me, it shows like this :
blog post_17
blog post_9720
blog post
blog post_5792

please help me

Anshul said...

@ bibble i dont think the widget should show any problem its working fine as there can be bandwidth problem as many users using it it stops working due to bandwidth problem sometime.

sop said...

Its works fine for my blog
thanks you

GMP said...

It doesn't work for me

http://dylit.blogspot.com

Anshul said...

@ GMp Might be bandwidth problem.

Kelvin said...

ur top post widgets with comments is not working but the 2nd one without comments is. Can u try to fix the 1st one?

yhan02ph said...

yes i tried the first one but it doesn't work only the second without comments.
http://tipsterian.blogspot.com/

N@k$h@tr@! said...

Not working for me.
I changed it to point to my blog too!!

Your Frugal Buddy said...

neither code works for me :-(

Anshul said...

Friends its not working due to bandwidth problems.

JaLpArI - tHe MeRmAiD said...

Thanks anshul :)
the second widget's working... :):)

Nomad said...

not working for me either... nothing is showing up at all...

365daysofpeople.blogspot.com

Don Luke said...

it doesnt work on my blog: http://idillico.blogspot.com

jrplaza said...

good post, ive been looking for this widget and now thanks.... jrplaza of http://moomovie.blogspot.com

Unikversiti said...

Cool blogging tips, thank you and keep it up :)

Hem och Lycka said...

doesn't work for me either

TechGeeze said...

Hello,
I can't find the contact form, so I decided to put it here.

I've created a tutorial implementing the Most Popular posts base on most commented post. I've really worked hard to publish this friendly tutorial and hopefully you can share it to your readers. I know it can help a lot specially for those starters. Here is the full tutorial for this: Most Popular Post Widget for your Blogger blog (Most Commented Posts)

Hope you find this helpful.

PS. Please let me know if you can do link exchange. Contact me back at tonsblogger@gmaildotcom.

Thanks,Tony from BloggerGeeze.com

Technolic said...

its not working for me on

http://technolic.org

Anshul said...

@techolic will be updated soon.

vinci coppolas said...

very nice this script for blogger .Thanks

Post a Comment