Help - Search - Members - Calendar
Full Version: Blogs Stats
Movable Type Community Forum > Additional Resources > Tips and Tricks
gabriel
Hello Blog Masters,

I run numerous blogs off of my website with a central page listing all the blogs that are currently active, how many posts they presently have, and the date the last post was added.

How do I:

1. Automatically grab the current number of entries in a given blog.
2. Automatically grab the date the latest entry was posted to a given blog.
3. Automatically grab the total number of entries in a given blog, and
4. Automatically grab the toal number of comments in a given blog.

Check out the page where the code will be going at:

http://www.enlightenment.com/blogs/

Any help would be most appreciated,
-gabriel
maddy
For each blog, within that particular blog:
Assuming 1 and 3 are the same thing, you can use:
CODE
<MTBlogEntryCount>


For 2, to show the date of the last entry posted, you can use
CODE
<MTEntries lastn="1"><MTEntryDate></MTEntries>
If you want to show the date your blog was last rebuilt, (whether or not by an entry) you can use
CODE
<MTDate>


And finally, for the number of comments:
CODE
<MTBlogCommentCount>


For an entire installation:

Check out this plugin and the links mentioned on that page. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.