Correct comment count in blogger
My friend over at Beks and Ro, who is as picky as I am about her blog template, wanted to know how I got my comments to be 'correct'. Meaning if there are no comments it will say "0 comments" and if there is one comment it will say "1 comment" or if there are eight comments it will say "8 comments". Here is the code I inserted between the <Blogger> </Blogger> elements.
<MainOrArchivePage><BlogItemCommentsEnabled>
<a class="comment-link" href="<$BlogItemCommentCreate$>"
<$BlogItemCommentFormOnclick$>><script type="text/javascript">var a = <$BlogItemCommentCount$>;
if(a == 0) {document.write('No comment');}else if(a == 1){document.write('1 comment');}else {document.write(a+' comments');}</script></a>
</BlogItemCommentsEnabled><BlogItemBacklinksEnabled>
<a class="comment-link" href="<$BlogItemPermalinkUrl$>#links">links</a>
</BlogItemBacklinksEnabled></MainOrArchivePage>
8 Comments:
Hi annie, I have a couple questions. First of all, how do I get my pullquotes to back off my text a little? They are just too close and I'd like to put a few pixels inbetween them.
Secondly in one of your posts you mentioned saving all your files as PNGs becuse they didn't have the copyright issue. What do you mean by that? Thanks again!
First...I like the changes to your header. The fonts go well together.
Now, about your questions. I looked at, and played with the pullquotes. Both versions. I could get this one Visual interest - Pullquotes to increase the margin by changing 'margin-left:10px;' to 'margin-left:50px;' But, the other one I couldn't figure out how to change it.
The other question...There was an issue with GIFs. I don't know where that stands now, but I use PNGs just because. You can read about it at Burn all GIFs.
Thanks! I'm not really sure I like the desciption yet. It sounds so clichéd. It's better than some of the others I've had though.
Thanks for the tip, I'll give that pullquote a try!
Thanks! =]
hello i would like to know if there is a way to count the total number of comments and posts by an author or a group of authors separately. i own a group blog and i would like to keep tabs on the authors progress with total posts and comments.
thank you
By means of your method I am sure the format of my blog template will get better and better!
If this post can be put in a much easier way for the reader to understand that will be better.
I have learned a lot from you blog and now my blog is getting much better than before.