BEST VIEW with FireFox 3.5x

5.2.09

Add Total Post and Comment on Main Blog


This is only a small trick to find out how many articles and comments that we have on the blog. This is useful when we already have contents enough on posted blog.
Ideally you have been posted more than 50 articles. Also it is useful if there are new comments given by the readers, we just see the number of comments change in the main blog.
Simply add this code :

Add Total Post Article script :



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

Add Total Comments script :

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

You can change the red color to any word you like and the URL with your own site.
Add the above script to your main blog by : add a new Gadget - choose HTML javascript.
End. Last Post : Amazing SEO Tools Add on for Firefox 3

2 comments:

atti said...

Its a nice tips and tricks to count article in the blog which you shared with us keep sharing such type of useful information.
Sheraton Karachi

irina said...

http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/3.gif

:) ;) :D :X :P :* =(( :O X( B-) :-)) =)) O:-) :-B =; i-) 8-| :-$ :[-( =P~ :(|) @};- %%;- (~~) ~o) 8-X [-X :-@ :-J (*) :-C :-?? %-( :-Q :BZ

Post a Comment

DON'T SPAM - YOU CAN WRITE COMMENTS WITH ANY LANGUAGE
THANK YOU

 
VISTA SG © 2008-2009 All rights reserved. Powered By Vista SG - Top Informative Blog | Contact Us | WebMaster Account | Edit Acc | Go ToP