mu.nu - "My Tamagotchi!" she said. "It has to poop."

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 />
Comments/Entry:
<?
echo number_format(<MTBlogCommentCount>/<MTBlogEntryCount>,2);
?>
<hr />

Here is the ouptput: Stats.jpg

Posted by: Madfish Willie at 11:53 PM | Comments (137) | Add Comment | Trackbacks (Suck)

1 NIFTY!

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

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

2 Thanks. I've been wondering how people do that.

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

3 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

4 Thanks MW! you da man!

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

5 Madfish,

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

6 Wow!! really <a href="http://www.myvogue.org">Good</a>!!! I will be

back soon!!!

Posted by: honry @ at July 15, 2010 06:55 AM

7 [url=http://www.myvogue.org/]Chanel Vogue[/url]

Posted by: honry @ at July 15, 2010 06:55 AM

8 [url]http://www.androidsystem.org/android.html[/url] Chanel

Posted by: honry @ at July 15, 2010 06:57 AM

Hide Comments | Add Comment






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.