Displays Total Posts and Comments Automatically

July 22, 2011 | 09:48

To see the amount of any new posts and comments that come in, we can add a widget. This widget will automatically add directly. In addition to you as the owner of the blog, visitors can also see it. If you are interested in installing this widget, do the following steps:

Login to your Blog
• Select Design
• Then Add Widget and select HTML / Javascript
• Enter the code below:

<script style="text/javascript">
function showpostcount(json) {document.write
('Postings : '+ parseInt(json.feed.openSearch$totalResults.$t,10) + '<br>');}</script><script src="http://papatitionline.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>

<script style="text/javascript">function numberOfComments(json) {
document.write('Comment : '+ json.feed.openSearch$totalResults.$t + '');}</script><script src="http://papatitionline.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>

Replace the red text with a link to your blog.

Save and please see the result.

May be useful.
Share this article :
Copyright © 2010-2012. PAPATITI ONLINE . All Rights Reserved.
Template modify by Creating Website