mu.nu - "My Tamagotchi!" she said. "It has to poop."
May 27, 2004
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 />Here is the ouptput:
Total Comments: <MTBlogCommentCount><br />
Comments/Entry:
<?
echo number_format(<MTBlogCommentCount>/<MTBlogEntryCount>,2);
?>
<hr />

Posted by: Madfish Willie at 11:53 PM | Comments (137) | Add Comment | Trackbacks (Suck)
Posted by: Emma @ at May 28, 2004 03:27 AM

Posted by: Jennifer @ at May 28, 2004 07:53 PM
Posted by: Alex. @ at May 29, 2004 12:20 AM
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
Posted by: honry @ at July 15, 2010 06:55 AM
Posted by: honry @ at July 15, 2010 06:55 AM
Processing 0.0, elapsed 0.0065 seconds.
22 queries taking 0.0041 seconds, 30 records returned.
Page size 9 kb.
Powered by Minx 0.8 beta.