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.
Subscribe to:
Post Comments (Atom)
Handphone Protector
handphone is the stuff that is always attached in your pocket. This m obile is a common item , but that does not mean it is not w...

-
If you are blogger, you should know this word. Yes "Post a Comment". This word can found below every post you have. But if you thi...
-
Magazine layout for blogspot. This is Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner . Magazine layout ...
-
for those users Apple devices that using iOS 6 operating system is now smiling because the latest version of jailbreak is to...
good job! thanks!
ReplyDeletedo you have a sample of this just so i have a better picture of how the "Total comments and total posts" will look like? :)
ReplyDeleteAku coba masukan dalam scrip blog saya, tapi ngak bisa-bisa tuh. apa yang salah ya
ReplyDelete