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

 



  1. Is there a demo or screenshots to how this works?

     


  2. Thanks for visiting Samuel, please note that we have added this function to our sidebar in the Sidenotes section, under “Site Statistics”…

     


  3. 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…

     

 

Powered by WP Hashcash