Wednesday, March 28, 2007

How To Display Close Commented Posts Inward Blogger

People ofttimes enquire us a mutual question, how they tin dismiss showcase a listing of most commented posts inward the sidebar of their blog. Showing a listing of the content that is most discussed is indeed a nifty way to encouraging novel users to bring together inward the conversation. It too benefits inward edifice an active community that agency more appointment together with to a greater extent than readers would endure jumping into your website. In this article, nosotros volition demonstrate that how to display most commented posts inward blogger?

The real showtime matter you lot involve to produce is to login to your blogger draw of piece of job concern human relationship amongst the assistance of your Gmail ID together with password. Once you lot are successfully entered to Blogger Dashboard, become to Layout >> Sidebar >> Add a gadget >> Add HTML/JavaScript together with inward the HTML Text box glue the next slice of code:

<!-- Popular posts amongst comment count Start -->
<script type="text/javascript">
purpose getYpipePP(feed) {
 document.write('<ol style="">');
 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>" + "<a href="+ href + '" target="_blank">' + pTitle;
 document.write(pList);
 document.write(pComment); //to take away comment count delete this line
 document.write('</a></li>');
 }
 document.write('</ol>');
 }
 </script>
 <script src="http://pipes.yahoo.com/pipes/pipe.run?
 YourBlogUrl=http://www.mybloggerlab.com/
 &ShowHowMany=10
 &_id=390e906036f48772b2ed4b5d837af4cd
 &_callback=getYpipePP
 &_render=json"
type="text/javascript"></script>
<span style="font-size: 80%; float:right;"><a href=" ">Make your own</a></span>
<!-- Popular posts amongst comment count End -->

After pasting the inward a higher house code, you lot involve to customize it to your wishing needs, hence produce non forget to supervene upon http://www.mybloggerlab.com/ amongst your weblog URL. By default, it would display 10 most commented posts hence to growth or decrease the count supervene upon =10 amongst the let out of posts you lot would similar to display.

Once you lot convey finished customizing the gadget, press the “Save” push to enable the gadget inward the sidebar of your blog. Congratulations, you lot convey successfully added a listing of most commented posts inward your blogger blog.

We promise this article convey helped all those people who kept on messaging us close this gadget. Do allow us know what are your feelings together with thoughts close it. In illustration you lot are already using it together with then allow us know close how it has helped you lot to engage to a greater extent than audience. If you lot establish this article useful, together with then delight homecoming dorsum past times subscribing us at Google+, Facebook or Twitter

No comments:

Post a Comment