• Happy New Year!

    I have a question:

    In the WP 1.5.x version, there used to be the capability to set the level for uploading graphics. It was found in Options > Miscellaneous, and the default was level 7, if I am not mistaken.

    In the new and improved WP 2.0, it seems you are not able to adjust that level — or even able or disable file uploads.

    Here is my problem:

    In order for someone to post a small graphic in the comments on my site, they have to at least be an “Editor” or above. Before I upgraded with a new installation, people were allowed to post graphics as long as they were simply registered.

    Before, I had hacked the kses.php file with the following:

    ‘img’ => array()
    ‘src’ => array()),

    and that worked fine. The comments weren’t stripped of the code like they are now.

    The new version of WP already has those arrays.

    How can I get this to work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter DavidA

    (@davida)

    Okay, I spoke too soon.

    Those tags are only listed in the $allowedposttags under CUSTOM_TAGS in the kses.php file. I had to add them to the $allowedtags like this:

    ‘img’ => array (‘src’ => array()),

    Now it works.

    BUT, that still doesn’t answer my question about setting the permission level for uploading files.

    Anyone?

    This is what’s great about roles, via a tiny, couple lined plugin, you can create your own role and it’s own permissions. (I should write a plugin for an admin interface to doing that.) Anyway, heck, you could even just add upload abilities to the Subscriber role if you wished.

    Now, how to do it? I’m not sure, someone else will have to answer that. I haven’t played around with that yet. :/

    Ah, awesome, someone already did it! 😀

    http://asymptomatic.net/2005/12/31/2189/role-manager-plugin/

    Edit: Seems to have issues though. 😐

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Role Capability question’ is closed to new replies.