Full Subscription Options:
RSS for The Newsroom | RSS for Comments from The Newsroom
Alternatively, you may also want to subscribe to some of our other RSS feeds, such as:
Would you like to test drive one of our themes before deciding whether or not you like it...?
Would you like to have your own free blog that we will host for you and you can use for anything...?
If the answer to either of these questions is yes, CLICK HERE to start the sign-up process!
|
If you are brave enough to add the following code to your functions.php file: function get_last_five_updated( $display = false ) {
global $wpdb; return $wpdb->get_results( "SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = '$wpdb->siteid' AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' AND last_updated != '0000-00-00 00:00:00' ORDER BY last_updated DESC limit 0,5", ARRAY_A ); } …(changing the number 5 in the limit as required), you will be able to use the following code within your Wordpress MU theme: <?php
$blogs = get_last_five_updated(); if( is_array( $blogs ) ) { ?> <?php $stats = get_sitestats(); echo "This site presently have ".$stats[ 'blogs' ]." different kinds of blogs within it's network shared amongst ".$stats[ 'users' ]." unique users.<br /><br /><strong>Our five most recent members include:</strong><br /><br />"; ?> <ul> <?php foreach( $blogs as $details ) { ?><li><a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a><br /><?php echo get_blog_option( $details[ 'blog_id' ], 'blogdescription' ) ?><br /></li><?php } ?> </ul> <?php } ?> This will not only provide a total number of blogs and users, but will also display the five most recently added blogs with a description of that blog and a link to it, as seen on Moodols.tv and clicking on the Recent Members tab. Read More From The WPMU Hacks Category
3 Responses to “Detailed WPMU Site Stats”
|
Samuel Diamond
Is there a demo or screenshots to how this works?
WPMUP TEAM
Thanks for visiting Samuel, please note that we have added this function to our sidebar in the Sidenotes section, under “Site Statistics”…
WPMUP TEAM
You can also see it in action by visiting the WPMUPremium homepage and clicking on the user icon in the footer… It may also be worth noting that all of the WPMU Premium themes that we develop have this feature built-in…Please do let us know if you have any further questions…