Owner: Andrea_r
Type: WPMU Plugin
Created: 2007-02-04 20:20:17
Last Modified: 2007-02-04 20:20:17
ah-theme-stats-mu.zip (803 download(s))
This plugin goes in the mu-plugins folder. It adds a sub-menu to Site Admin, which wil list all the themes in use site-wide. At the top of the list will be the most popular theme and a number in brackets of how many are in use. Click on the name, and a drop-down list will appear of all users using that theme, with a link to each user's blog and backend.
Two changes for a no-vhost install: `$blogs = $wpdb->get_results("SELECT blog_id, domain, path FROM $wpdb->blogs ORDER BY path ASC");' The next should have an "if vhost or else" so it works for any mu install: `foreach($themeblogs[$themename] as $bloginfo) { $domain = explode('.',$bloginfo->path); $frontend = "http://" . $bloginfo->domain . "" . $bloginfo->path . ""; $backend = "http://" . $bloginfo->domain . "" . $bloginfo->path . "wp-admin/"; echo '
Sorry, the last line gets borked when posted in backticks: echo '
Last try, put the following inside the echo: `
You must be registered and logged in to post comments. Not registered? Click here to get your free account!