WordPress.org

Ready to get started?Download WordPress

Forums

Help with setting up a Custom default user role for P2 theme (11 posts)

  1. hal9000
    Member
    Posted 4 years ago #

    Hi there,
    I am enjoying customising the new P2 theme and have a specific user role i wish to setup as the default user.
    Currently it doesn't fit into the default roles list so I have looked for a plugin solution. They all seem a little wide of the mark as it is quite simple what i want to achieve.
    So
    I want a user to be assigned a new profile when signing up, say 'Board member'
    I am using the P2 theme.
    When this user logs in I wish them to have the ability to:
    - Write a new post
    - Edit their own post
    - Write comments
    - Edit comments
    - Click the admin and have access to their own profile for editing only.

    Is there any simple way of doing this as i cant find it.

    Site work in progress at http://www.aimb.ws

    Thanks

    oh yeah one of the most promising looked Role Scoper but I just couldnt get on with it. http://agapetry.net/news/introducing-role-scoper/#roles-intro

  2. mjg
    Member
    Posted 4 years ago #

    Select "Author" for New User Default Role in Settings General.

    That role has the permissions you want.

  3. hal9000
    Member
    Posted 4 years ago #

    Thanks mjg - I did look at that but i clearly will have to give it another go.

  4. hal9000
    Member
    Posted 4 years ago #

    Yup I just checked and Author doesn't allow the user to edit their post or comments.
    I might just add some ajax edit comments thing. I am sure i have seen this somewhere

  5. hal9000
    Member
    Posted 4 years ago #

    Ahh I have just looked in the admin and you are correct mjg.
    It does allow users to edit their own stuff.. just it only works in the admin.
    You wouldnt have any idea what i would have to put in the code in order for the edit to function from the front end (in the same manor as the Admin users?)
    Thanks

  6. Matt Mullenweg
    Troublemaker
    Posted 4 years ago #

    This is a bug, we'll fix it.

  7. noel
    Member
    Posted 4 years ago #

    @hal9000 this should be fixed before the end of the week. I'll make sure to write here when the newest release is out.

  8. hal9000
    Member
    Posted 4 years ago #

    Thanks guys - Superb job as usual!

  9. hal9000
    Member
    Posted 4 years ago #

    Any update on the fix?
    Thanks

  10. hal9000
    Member
    Posted 4 years ago #

    I see that ther is a new version 1.04 so i installed and tested this.
    With the users set to author they can post new posts and post comments on posts.
    But they seem to be only able to edit their own comments when they are against their own posts.
    Any idea why this would be?
    Thanks

  11. noel
    Member
    Posted 4 years ago #

    hal9000 I've looked into this but can't reproduce the error. Could you provide me with a few steps that make this occur?

Topic Closed

This topic has been closed to new replies.

About this Topic