Register a user with a given role

This topic contains 8 replies, has 4 voices, and was last updated by  Patrik 5 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #3381

    leonardo crespo
    Expired Member
    Post count: 7

    How do I create a registration form where the user is assigned a specific role?
    Registering on /register-subscriber would make the user a “subscriber”, on /register-editor would make him an “editor”.

    While we’re there, how do I redirect them to different pages after?

    #3382

    Alex Rollin
    Moderator
    Post count: 27815

    Hi Leonardo,

    Thanks for submitting your observations and recommendations, and I hope we can find resolutions to the issues you have raised today.

    Probably 7 topics is a good amount for us to work on with your site.

    The team will be able to answer some of your questions, and some may have to wait for the developers to return to the office after the weekend and the holiday.

    About your question, about how to assign a role on user registration, UsersWP doesn’t have a feature for that at this time, but it is something we are considering for future versions.

    About redirecting, you can find those options in

    UsersWP – Settings – Login (or Registration)

    I hope that helps.

    #3395

    leonardo crespo
    Expired Member
    Post count: 7

    On profile builder you can pass the role as a parameter for the shortcode.
    [registration-form role=”Editor” url=”domain.com/editor”]
    Please consider adding this feature as it is very useful.

    #3417

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Thanks for your suggestion. We have considered this for future enhancements.

    #3462

    DR
    Free User
    Post count: 78

    Hello guys,
    Just writing to add a voice to this as we have been following up on this for a while.

    Groups and roles is the reason we are a little stuck on what to use for user and role management. We find BuddyPress a little bulky. Tried a few others that are either freezing the portal or inviting infections. Adding this will make the decision about user/role management easy.

    Thank you for the awesome work so far.

    DR

    #3463

    Alex Rollin
    Moderator
    Post count: 27815

    WP has a setting to allow you to assign any single role to new user registrations.

    What are you looking for in addition to that?

    Have you seen this?

    https://wpinvoicing.com/looking-for-beta-tester-for-paid-members/

    #3464

    DR
    Free User
    Post count: 78

    Hmm. I recall going down this path sometime back… A bit of a rabbit hole… But looking at it again, it seems like it should be able to do what we need. We’ll try it again and revert.

    Thank you again, Alex.

    DR

    #3466

    DR
    Free User
    Post count: 78

    Hi again
    Figured out how we could make your suggestion work. Thanks again. But we are still a little stuck with registration forms. We will need to be able to create registration forms for each/any of the profiles. Do you have any suggestions/ideas how we can handle this please?

    Thank you

    DR

    #3467

    Patrik
    Moderator
    Post count: 1971

    Hi,

    You can use the drop-down field for user role in the registration form or customize the form for each role as there will be only one registration form but you can pass the variable in URL parameter and change the role dropdown based on that and save the role on ‘uwp_after_custom_fields_save’ hook. You can hire a developer to do this as we do not support for customization here.

    Let me know if any queries.

    Regards,
    Patrik

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket