Monday, March 21, 2011

How to Show the total Number of Posts & Comments in your Blog ?


I installed this widget today and I must say its really working Well for me. A Simple hack but really a Must Have for all your Blogs. This widget show the total number of Blog Post Published and the Total number of Comments In your blog.

Well, one good this is that more people are subscribing to my Blog Feeds after adding this to my Blog. See Pic Below.

Follow the Steps Given Below to Install the Widget :

Blog Statistics Post & Comments 1.Log in to your Blogger account.
2.In your Blogger Dashboard, click on the "Layout" link.
3.This will bring you to the "Page Elements" tab. Decide where you want to insert the statistics widget and click on the "Add a Gadget" link accordingly.
4.Scroll down the list and click on "HTML/JavaScript" button.
5.This will open the "Configure HTML/JavaScript" window. In the title section, please type "Blog Statistics" or "Blog Information" or "Blog Data" or any title you wish to.
6.In the content section, copy & paste the following code exactly:

<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>
<center><span style="font-size:75%;"><a href="http://www.snaphow.com/" rel=”dofollow”>Get This Widget</a></span></center>

7.Remember to replace the text "yourblog" with your blog address. Note that you replace it in two locations.
8.Click on "Save" button and Check your blog.

You will see a small widget in your sidebar with the "Total Posts" n "Total Comments".


For Further Reading,
Blogger, Blogging, Downloads, Graphics, Make Money Online, SEO, Social Media, Web Design, Webmaster Tips

0 comments:

Post a Comment

 

Funny Stuff

Man Behind This Blog

Krrish, currently doing his study, is a part time blogger from Delhi, India.

His areas of Interest are Computers, HTML, Web Designing WordPress and Blogger.

He Loves to work on WordPress, Blogger, PHPBB3, MYBB etc and helps others with Tips and Tricks to make successful websites..

At 99B-Everything About Blogging, he writes about Blogging, SEO, Blogger Tutorials,WordPress Tutorials, Blogger Templates and Making Money online.
He Also Provide services in WordPress Installation, Thesis Theme Customization, Link Building and more..(Portfolio Website coming Soon)
Get Traffic to Your Blogs Free- "Sign Up Today Free... "