Professional Magazine Blogger Templates Read More ×

Wednesday, May 27, 2015

Blogger Most Commented Widget with Awesome Look

JSC Result 2016

www.nuedubd.com/jsc16

JSC Result 2016 will publish on 31th December 2016 Under Ministry of Education, Bangladesh. Check Your JSC Exam Result 2016 FAST!
Blogger Most Commented Widget with Awesome Look

Blogger Most Commented Widget with Awesome Look - is a widget that display most commented or most discussed posts in a list. If any post of your blog get highest number of comments then it will get top. The principle is similar to the popular posts widget that gave rise to top list of posts with the most views.

Now comes to the main part, in this way who interested to add most commented or most discussed posts widget for his/her blogs to immediately add below codes. 

Go to Blogger Dashboard > Layout > Add a gadget > HTML/Javascript and copy past the below code and Save it.
<style>
.commentbubble {
background: #FC4E4E;
width: 49px;
float: left;
margin: 2px 20px 35px 0px;
font-weight: bold;
font-size: 1.3em;
text-align: right;
padding: 5px;
text-align: right;
color: #FFF;
position: relative;
top: 5px; }

.commentbubble:after{
position:absolute;
font-family: FontAwesome;
content: "\f04b";
color: rgb(252, 78, 78); }
</style>

<script type="text/javascript">
function getYpipePP(feed) {
document.write('<ul style="list-style:none; ">');
var i;
for (i = 0; i < feed.count ; i++)
{
var href = "'" + feed.value.items[i].link + "'";
var pTitle = feed.value.items[i].title;
var pComment = + feed.value.items[i].commentcount;
var pList = '<li style="clear:both; border: 1px solid rgb(216, 216, 216);padding: 6px; line-height:2em; "> <div class="commentbubble">' +pComment +  "&#160;&#160;</div>" +  "<a href="+ href + '" target="_blank">' + pTitle ;
document.write(pList);
//to remove comment count delete this line
document.write('</a></li>');
}
document.write('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
 YourBlogUrl=http://www.msdesign92.blogspot.com
&ShowHowMany=6
&_id=390e906036f48772b2ed4b5d837af4cd
&_callback=getYpipePP
&_render=json"
type="text/javascript"></script>

Note: msdesign92.blogspot.com replace it with your blog url and ShowHowMany=6 is the number of posts.

Now enjoy this awesome widget and keep sharing our posts. Thanks...
SHARE THIS
Subcribe for our all latest news and updates

Subscribe Now

Previous Post
Next Post
Monetize your website traffic with yX Media
True Mag

2 comments: