Hosted by GOOGLE
Don't forget Subscribe us

468x60

Saturday, March 07, 2009

4
How to display total posts and comments of your blog

Help us to share

If you like this

This is you have to do if yiu want to show your post and comments statistic at your blog.

How to show your Total comments and total posts from your blog?
Copy Scripts below in the place where you want to show. Don't forget to replace the "Red Text" into your blog name.

Total Posts Script:

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


Total comments script:

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


Copy and paste those script and happy blogging my friends :)
And backup your template first to prevent from bad situation.


4 comments:

♥ Acacia ♥ said...

good job! thanks!

levian said...

do you have a sample of this just so i have a better picture of how the "Total comments and total posts" will look like? :)

Khalda-Nisya said...

Aku coba masukan dalam scrip blog saya, tapi ngak bisa-bisa tuh. apa yang salah ya

BrightEarn.com said...

Get more Blogger Tricks and tips and widgets...
from blogspassion.com

Regards
Vicky
www.Blogspassion.com

Post a Comment

While comments maybe u would like to download another Blogger Templates Or Tricks ?? :)

Popular Posts