Owner: Samsonasu
Type: WPMU Plugin
Created: 2006-07-26 00:00:00
Last Modified: 2006-07-26 00:00:00
userthemes.php (2608 download(s))
Blog administrators can use the built in wordpress editor to create and edit "local" copies of pre-installed system themes. See the website for more details. Please either e-mail or post comments if you find bugs.
Seem to be able to edit/add to My Themes list any theme uploaded that isn't part of the theme pack. All theme pack themes say "Successfully created a copy of..." but it does not list it in My Themes list.
This plugin clashes with the feedback plugin.. but andrew says hes rewriting it from scratch now.. but for reference: Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/mu-plugins/feedback.php:180) in .../wp-content/plugins/userthemes.php on line 65 displays when you push "Edit"
Misera,
The feedback plugin was just an old plugin that I threw together many months ago. So i'm really not surprised that it has bugs.
However, i'll have the "support center" plugin ready sometime this weekend. ![]()
I have no idea how to install this puppy. I put it in both the mu and regular plugin directories but didn't see where in my blog to adjust my theme.
Ok after totally removing feedback plugin (and tables).. Was able to get the themes to show up correctly, but after enabling Theme Editor for the admin (or any user) and pushing "upgrade" just to make sure, it still says "Theme Editor disabled" when I try to edit. I have added the line to the htaccess file that userthemes.php says to add. Any idea what's messing it up? After trying to edit, going back to the list of themes it shows 5 new themes as broken with stylesheets missing (they are there). Running on the latest revision (723)
If you've removed the feedback plugin/tables and you are still having problems, then i'm afraid I can't help much. Samsonasu would know more about this plugin however I haven't seen him around lately. ![]()
eh oh... pushing refresh adds the comment again LOL... Also need the option to delete self comments!! Might be because the file says to add.. RewriteRule ^wp-content/blogs.dir/(\d+)/themes/(.*) /wp-inst/wp-content/blogs.dir/$1/themes/$2 [L] I didn't notice it said /wp-inst/.. goign to try it without it.
:p besides that.. in wp-admin/theme-editor.php you have to remove: wp_die( "The theme editor is disabled" ); And the reason for the 5 broken themes was because of my past attempts to move them to be editable before the .htaccess line and the theme-editor.php was fixed. It copies over the themes into the blogs.dir/number/themes/ directory.
Ok my last comment.. I promise :x.. For the users with the userthemes enabled, ALL the themes will not show up in "Themes" tab in Presentation unless you go into "My Themes" and then manually click "Copy to My Themes" on every single theme even if you don't want to edit it. That's fine for the people who only want to use their edited ones, but for those that want to use edited and then also the unedited, it's not possible unless you go copy theme. For the users without userthemes enabled, everything works fine. Not reporting a bug, just some personal preferences XD. Ignore me if you wish..
Ok so I promised............. and lied :p Aren't you annoyed with me yet?? Anyhow bugs: 1. If you disable userthemes for a user after it has been enabled, you will still have to do the manual moving to "Copy to My Themes" thing for it to show up in Themes list. Only way to fix this is removing userthemes.php and then hitting "Upgrade". 2. After enabling user themes and copying a theme over to My Themes and activating it.. it breaks some stuff. Here is an example of the default theme enabled for a user with userthemes enabled: http://tester3.dawgsabroad.com/
Sorry.. one more comment.. change that site to wptrial.lemoneko.com. I'm working on dawgsabroad so I have to kill userthemes or else my main page isn't even working >_>;..
A couple of issues:
Commenting out the die line in theme-editor.php will allow anyone, regardless of usertheme enabled for them or not to type theme-editor.php url directly to edit any system theme they want. YIKES.
So I added the following condition to top of theme-editor.php:
You do not have permission to access the theme editor.if(get_option('ut_use_user_theme') == 0) {
die( __('
I could not figure out how to fix up the conditions for the problem of all themes appearing under userthemes menu, including themes disabled in Site Admin/Themes. So I made my "home" theme a usertheme to keep prying eyes away.
"See the website for more details." - where is this? http://www.google.ca/search?q=%22user+themes%22+wpmu does not make it apparent either.
https://samson.blog.asu.edu/userthemes/ BTW: "Allowing theme editing is dangerous! Wordpress themes are simply PHP code, so you have to trust users to write php code that will execute on your server. Don’t hold me liable if one of your users write a theme that deletes your entire database or something" Seems important enough to state here too.
I haven't tried this plugin yet (nor do I know any PHP) but would it be difficult to to simplify it so that it would allow the users to edit the CSS-file of the template and none of the PHP-templates, thus making it more safe? Wordpress.com has this kind of functionality (for fee), but I don't think it is available as a plugin anywhere. Plus I don't really like their approach of not allowing users alter the actual CSS of the template itself, only define some extra CSS rules on top.
Hiya - I am trying to install this plugin. I tried to follow the directions at https://samson.blog.asu.edu/userthemes/?triedWebauth=1 On that page, it says to edit some snippets of code in wp-admin/admin-functions.php. But, those snippets are no longer in that file in my version of WPMU. It also says to comment out the first line of theme-editor.php, which it says is "return;" but that is also not the case in my version of WPMU. So. But! The plugin almost works -- it lists the themes, but when I copy the themes so they can be edited, the copied themes don't show up under the "My themes" header, despite getting the message "Succesfully created a copy of 'classic'." I also get an error at the top of the page: Warning: mkdir() expects at most 2 parameters, 3 given in /www/wpmu/wp-content/plugins/userthemes.php on line 77 It hasn't created any dirs in my blogs.dir, either. Please advise?? -elly
check out the forums, I have seen a fix there... http://mu.wordpress.org/forums if not contact me and I'll mail you the changes ovizii at zice dot ro
I have a new problem: just noticed, that newly created blogs are no longer lsited in this plugins option list, where I can choose to enable userthemes for a certain blog... this is after upgrading to wpmu 1.1.1 any ideas?
I have successfully installed user-themes plugin on my wordpress mu 1.1.1 installation with subdomain selection during install. Everything is working just great. But I'm getting the folloin error when I click on the edit link under Admin ->Presentation->userthemes. Warning: Cannot modify header information - headers already sent by (output started at /home/kumaresh/public_html/wp-admin/admin-header.php:16) in /home/kumaresh/public_html/wp-content/plugins/userthemes.php on line 65 Kindly help me. I'm a new bee to PHP programming. Do not understand much PHP.
For install plug drop file userthemes.php in mu-plug folder, but in the page "My Themes" i see error: Warning: Invalid argument supplied for foreach() in /home/myobninskru/myobninskru/www/wp-content/mu-plugins/userthemes.php on line 167 What ideas?
I get the header warning as well, and can't find out where there may be an issue. It should just redir to the theme editor, correct? It stays on the mythemes and bounces the header warning.
I'll upload my revised version of this plugin in a new project, dsader.
You must be registered and logged in to post comments. Not registered? Click here to get your free account!