Statistics widget that shows all the statistics counting total no of posts and comments in your blog.The credits of this widget goes to My Blog.The bloggers who have thousands of comments on there blog will sure love to use this widget in there blog as it will dispaly the all counts of there comments and post counts too.
Now How to add this widget to you Blog. Follow the instructions.
Go to dashboard of your blogger > Layout > Add a Gadget > HTML/JAVASCRIPT
Add the below codes to it- <script style="text/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://YOURBLOG.blogspot.com" target="_blank">Blogger Hacks</a></noscript>
Now Just change the code in red to your blog url or your domain name to display of your total no of posts and comments.
And now save it. Its Done enjoy using this.
Statistics Widget For Blogger
Label: Blogger HackHow to Show Recent Post on the Sidebar
To show your recent post on the sidebar is very easy, you just follow the instruction below then you will see your recent post on your blog sidebar. here’s the steps :
1. Login to Blogger then Chose "Layout"
2. Click on "Add page element" (chose where you want to put it) then chose "HTML/Javascript"
3. Copy the code below and put it in the "content" box.
<script src="http://www.geocities.com/uddin_81/recent-post.js"></script>
<script>var numposts = 10; var showpostdate = false; var showpostsummary = false; var numchars = 100; </script>
<script src="http://YOURBLOGNAME.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=rp">
</script>
4. Change YOURBLOGNAME with your blogname.
5. The number "10" it’s amount of recent post that will be shown, You can change it.
6. Click Save.