Currently 18:20:00 GMT

(Login | Register)

Owner: Dsader

Type: WPMU Plugin

Created: 2007-07-14 02:47:16

Last Modified: 2008-07-15 08:23:49


userthemes_26.php (59 download(s))

I've tinkered with the original a bit, again.

Adds ability for enabled users to move system themes to their file blogs.dir/id/themes/ folder and edit their themes if you allow access to the theme editor. Access Managed via Site Admin.

Practical uses for me: I can edit themes as I am accustomed in my single WP install. I can switch between specialty themes without logging in as a SiteAdmin.

If a particular user wants a unique/rare/premium theme, I can upload it to their blogs.dir/blog_id/themes folder and only they can ever see/edit/activate it.

Warning: enabling the theme editor is a huge risk/responsibility.

This plugin does not magically enable or secure it. You'll have to consider that yourself.

July 15/08 Tweaked version looks more like WPMU2.6. "Guessing" the Screenshot-dir is buggy in 2.5 and lower. Minor edits needed to use this in a version less than 2.6.(Any version not defining WP_CONTENT_DIR and WP_CONTENT_URL)



Posted 2007-09-03 16:42:25 by peoriapundit.

Thanks for the great site. I'm getting this error message when I try add themes: Warning: mkdir() expects at most 2 parameters, 3 given in /home/blogpeo1/public_html/wp-content/plugins/userthemes.php on line 72 I am using WPMu 1.2.1.


Posted 2007-09-05 06:44:16 by dsader.

try changing line 72 from mkdir($dest . $suffix, 0755, true); to mkdir($dest . $suffix, 0755); Reference: http://us2.php.net/manual/en/function.mkdir.php


Posted 2007-09-05 06:46:44 by dsader.

PS I've no way of "massaging" this to work in any environment other than PHP 5, if that's the hang-up.


Posted 2008-05-25 03:11:00 by dsader.

I've stopped using this plugin in my installs. The plethora of theme files in user folders is just too much to keep track of. A few customized themes in the normal themes folder activated on a blog by blog basis in wpmu-blogs.php is simpler for me. All theme files are in the same folder, as it should IMHO. I edit themes via ftp(cyberduck plus smultron) far quicker than through the theme editor. That said, my endusers would love something like http://ocaoimh.ie/2006/11/05/jasons-custom-css-for-wordpress-mu/


Posted 2008-05-29 03:19:32 by uber.

That's too bad... It's a great idea, I'm working to get it to work on my site, right now it's sending you to edit the original theme file vs the user theme... I hope if you do stop working on it someone else picks up or makes one as good.


Posted 2008-07-15 16:54:39 by dsader.

I've tweaked it again. WPMU 2.6(beta) has code for "hiding" the wp-content directory. I've added support for WP_CONTENT_DIR and WP_CONTENT_URL, I think.


Posted 2008-07-20 10:34:35 by jimgroom.

Hey dsader, Here is my testing of the latest Userthemes 1.1 plugin for 1.5.1 and 2.6 beta 1 (sweet new look by the way, great work!). WPMU 1.5.1 When you go to userthemes it has the following error message for certain plugins it seems to be colliding with (in this case wpmu signup captcha): Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/.../wp-content/mu-plugins/1676498319_userthemes_26.php:853) in /home/.../wp-content/mu-plugins/wpmu-signup-captcha.php on line 30 After deleting these plugins, the error message went away, but after I copied a theme to the themes folder for a particaulr blog and clicked on the edit button I got the following error. Warning: Cannot modify header information - headers already sent by (output started at /home/.../wp-content/mu-plugins/1676498319_userthemes_26.php:853) in /home/.../wp-includes/pluggable.php on line 701 This error, however, does not prevent me from editing the themes WPMU 2.6 When you go to userthemes it has the following error message for certain plugins it seems to be colliding with (in this case post ratings and wpmu signup captcha): Warning: Cannot modify header information - headers already sent by (output started at /home/.../wp-content/mu-plugins/1676498319_userthemes_26.php:853) in /home/.../wp-content/plugins/postratings/postratings.php on line 827 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/.../wp-content/mu-plugins/1676498319_userthemes_26.php:853) in /home/.../wp-content/mu-plugins/wpmu-signup-captcha.php on line 30 When you click on edit theme: Warning: Cannot modify header information - headers already sent by (output started at /home/.../wp-content/mu-plugins/1676498319_userthemes_26.php:853) in /home/.../wp-includes/pluggable.php on line 776


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