Currently 18:22:32 GMT

(Login | Register)

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.



Posted 2007-02-04 21:11:00 by dsader.

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 '

  • ' . $domain[0] . ' - Backend
  • '; }`


    Posted 2007-02-04 21:13:38 by dsader.

    Sorry, the last line gets borked when posted in backticks: echo '

  • ' . $domain[0] . ' - Backend
  • ';


    Posted 2007-02-04 21:14:46 by dsader.

    Last try, put the following inside the echo: `

  • ' . $domain[0] . ' - Backend
  • ';`


    Posted 2007-02-04 21:15:10 by dsader.

    grrrr


    You must be registered and logged in to post comments. Not registered? Click here to get your free account!