WordPress.org

Ready to get started?Download WordPress

Forums

How to change user levels permissions? (11 posts)

  1. Rob Poitras
    Member
    Posted 9 years ago #

    I have searched far and wide.
    How do I change what a user level has permission to do?
    I want to take the ability to change the links for user level 5, or give level 4 the ability to write pages.

    any help would be much appreciated :)

  2. Lorelle
    Member
    Posted 9 years ago #

    Oh, this one had me for a couple of days. If you are the admin, go to the USER panel in the Admin. In little tiny type next to the user level of each user is a - (minus) on one side and a + (plus) on the other. These are hyperlinks.

    Click plus to increase the user's level and minus to decrease. For specifics on user levels, check out http://codex.wordpress.org/User_Levels

  3. Rob Poitras
    Member
    Posted 9 years ago #

    thanks lorelle. I have seen that codex page. Im trying to alter the actual permissions.
    I dont want the user level 5 to be able to edit links. But I need the user to create pages, which is something that level 4 doesnt have.

    I did see in the codex you asked the same thing im asking but there havent been any replys.

  4. ColdForged
    Member
    Posted 9 years ago #

    There's no easy way to do it, aside from hopping into the code and modifying the various places where those levels are checked. It's non-trivial. Not impossible by any stretch, but there are a lot of places that would have to be changed depending on what you want to do.

  5. Lorelle
    Member
    Posted 9 years ago #

    So you're trying to make, say, level 6 user have only some of the level 4 permissions but not all of them? Or something like that?

    Oh, do you mean the instructions I just gave you? I posted the additional instructions not an hour ago on how to change the user levels. Same as I told you.

  6. Lorelle
    Member
    Posted 9 years ago #

    Do you mean "create" a PAGE or a post? Level 5 can create Pages and Posts, but Level 4 can only do posts.

  7. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    bo46802 means he wants to tweak the code so that a level 4 can create both Posts and Pages.

    ColdForged is right. Currently the only way to do what you want is to tweak the core. There are rumors that a future release of WordPress will have more flexible user rights management, but for now you're stuck with the 10 levels defined by WordPress.

  8. Rob Poitras
    Member
    Posted 9 years ago #

    Its really only the links that bother me.
    I also started to play around with the post (for the blog) and page posting template to try and take out some of the things that the users shouldnt have. Like taking out the ability to change post templates, and the custom fields.
    Its fine if they are completely deleted, but when I delete them out the posting template will be fine, but the actual blog/site is screwed up and it says their is an error on the page.php file of the theme im working on.
    fun stuff.

    So would files should I look at for modfying the code?

  9. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    You can edit wp-admin/menu.php and change what various admin panels specific user levels can access.

    $menu[20] = array(__('Links'), 5, 'link-manager.php');

    you might change to

    $menu[20] = array(__('Links'), 6, 'link-manager.php');

    You'll also want to change the submenu lines:
    $submenu['link-manager.php'][5] = array(__('Manage Links'), 5, 'link-manager.php');
    to
    $submenu['link-manager.php'][5] = array(__('Manage Links'), 6, 'link-manager.php');
    ...

    Then bump your user to a leverl 5. He/she will be able to create Pages but will not be able to see the Link Management stuff.

  10. Rob Poitras
    Member
    Posted 9 years ago #

    awesome! thanks man.

  11. jurchix
    Member
    Posted 8 years ago #

    This metod don't work in WordPress v2.0
    It only work, if i write user lvl = 0 :((

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.