May 27, 2004

Thingys & Doodads - Site Stats

I ran across some code over at the MT Support Forum the other day. I think you may like it. It's just a few lines to count the total number of blogs entries, total number of comments, and a comment/entry ratio. I modified it for my site and put it with my other site statistics like the sitemeter and ecosystem scripts.

Here is the code:

Total Entries: <MTBlogEntryCount><br />
Total Comments: <MTBlogCommentCount><br />
echo number_format(<MTBlogCommentCount>/<MTBlogEntryCount>,2);
<hr />

Here is the ouptput:


Posted by Madfish Willie at May 27, 2004 11:53 PM


I really really like your default skin, MW. It's veddy niiice. :)

Posted by Emma at May 28, 2004 03:27 AM

Thanks. :) I've been wondering how people do that.

Posted by Jennifer at May 28, 2004 07:53 PM

Pretty pretty MW, Thank you! Don't have to go to the candy store with you around!

Posted by Alex. at May 29, 2004 12:20 AM

Thanks MW! you da man!

Posted by SpaceMonkey at May 31, 2004 02:26 PM


Thank you so much for all of these tips and tricks! You've made it very easy for me to keep Kathy the Cakeeater amazed with her new layout.

I'm having problems with this one however. The results for the comments/entry don't show up on the page. I cut and pasted the code exactly as above. What did I do wrong?

Posted by MRN aka "The Husband" at December 12, 2004 04:08 PM
Live Comment Preview
Post a comment

Remember personal info?