Statistics is a widget that shows the total no of posts and comments in your blog.The credits of this widget goes to Assess My Blog.This widget is featured here on the request of our reader Sherry.
To show your blog statistics in your blog sidebar,copy the following code and paste it in your blog by Adding a new gadget -> HTML/JavaScript.
function numberOfPosts(json) {
document.write(‘Total Posts: <b>’ + json.feed.openSearch$totalResults.$t + ‘</b><br>’);
}
function numberOfComments(json) {
document.write(‘Total Comments: <b>’ + json.feed.openSearch$totalResults.$t + ‘</b><br>’);
}
</script>
<ul><li><script src=”http://yourblog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts”></script></li>
<li><script src=”http://yourblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments”></script></li></ul>
<noscript><a href=”http://assessmyblog.blogspot.com/” target=”_blank”>Widgets for Blogger</a> | <a href=”http://www.bloganol.com” target=”_blank”>Bloganol</a></noscript>
In the above code change yourblog with your blog name and Save the code and see the wiget working.
Consider to Subscribe to our RSS feed or Follow us at Twitter or Join our Facebook Fan Page.Enter your Email below to subscribe to our updates via Email.















{ 12 comments… read them below or add one }
hi. this is a great widget! been looking for this for a long time. thanks for sharing this ^_^
it’s not work on my blog??
so,how?
@ Indungg
This widget works with every blogger blog.I think you have used this code it in Html section of your blog or you can try this code by adding www after http:// in the code.
Thanks for a great widget. I like to be able to show posts and comment counts. It gives me a bit of bragging rights:)
thank you for giving the code, it works on http://sherryshopping.blogspot.com I can’t wait to test out on other blogs
nice work.
thank you for share, i ask your permission to post about this useful script on my blog also.
thank you.
Hi,
Thanks for the link back to my blog. Appreciate that.
Great tip, I will try using it on my blog.
Very nice one! I’ll be using it. Thanks a lot!
perfect, thank you
doesn’t work?
always says:
“Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The reference to entity “callback” must end with the ‘;’ delimiter.”
what should i do?
This is very interesting work.Thanks for sharing it.These help me alot to upgrate my blog attractive.
externe festplatten