Just a little FYI — I’m running WordPress MU trunk (merged with WordPress 2.5) on this site right now, and it’s fairly stable and most things aren’t broken. It’s worth starting testing WPMU trunk now and start reporting bugs.
Mini Mugshot plugin released
31 July 2007Today, I whipped up a WordPress MU plugin (works fine on normal WordPress too) that allows you to easily add a Mini Mugshot (previously known as badges) to any post or page. Grab it from my WordPress Plugins page.
[mugshot-5 http://mugshot.org/person?who=G3yH5GwMpAN1DW]
The plugin requires FauxML to be installed and activated, as it uses its API.
I wrote the plugin after reading a post on the Mugshot blog (or, specifically, this comment) which suggested they needed a WordPress plugin for it. Now, normally, WordPress users won’t have a problem pasting Mugshot’s HTML code into a post or page, as 99% of WordPress users will have administrator access on their blog (thus they can paste unfiltered HTML, such as Flash). However, there would be no possiblity of this happening on a WordPress MU site, or on WordPress.com, as it’s too much of a security risk.
Thus, I wrote this plugin, with WordPress MU in mind, although it works fine on WordPress as well.
Sort a multidimensional array by one of its values in PHP
17 June 2007For the root of this site, WPMU returns a list of blogs in an array, which contains the blog_id, domain, and path. I also inserted the blogname into the array which I retrieved with get_blog_option().
The array was not in alphabetical order, and I wanted to sort it by the $blogs[$i]['blogname'] property. After a bit of Googling, I found I could make use of the usort function, which allows you to perform sorting with a user function.
This is what I ended up with:
function cmp($a, $b) {
return strcmp($a['blogname'], $b['blogname']);
}
usort($blogs, 'cmp');
Which is surprisingly simple, and works. Now, on the root, the blogs are displayed in alphabetical order.
GNOME goes MU
10 June 2007Jeff Waugh just posted on the WP-Hackers mailing list that blogs.gnome.org is now running on WordPress MU.

