BuddyDev

Search

[Resolved] Allow Group Administrators to Register Users

  • Participant
    Level: Enlightened
    Posts: 38
    Javier on #3962

    Hello!

    Has anyone tried to bring the BuddyPress registration form to the front? I mean, if registration is not open to everyone, the (registration) form/page won’t show up. But, what if we want certain users (in my case I want them to be group admins) to manage user registration?
    I don’t know if this can be accomplished smoothly. I think I can give them permission to access wp-admin users tab, but since BuddyPress has its own registration forms in the frontend, there might be a method to get this done.

    Any suggestion will be greatly appreciated.

    Best regards,
    Javier

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #3963

    Hi Javier,
    Thank you for posting and I am sorry i could not follow up on the mail due to some personal things.

    A few things to note:-
    1. User are sitewide and they will appear in the members directory
    2. A group admin will not be able to delete/edit user

    Questons:-
    1. Do you want the users to manually activate their account or automatically set to be active ?

    If these two things are ok, @ravisharma or I will assist you with it.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 38
    Javier on #3965

    Thank you for the feedback, Brajesh.

    On the things you’ve pointed:

    1.Its okay that users appear in the members directory but, is it possible to include the group they belong to or, even better, group them in the directory?
    2.In the future, I’d like to give group admins the ability to delete/edit users. Maybe not now, but it would be the ideal scenario, is this doable?

    About the question:

    1.I’d prefer the users to manually activate their accounts so I can put there (in the activation page) the “Terms of service” they are accepting to access the service

    What do you think about this?

    Thank you,
    Javier

  • Participant
    Level: Enlightened
    Posts: 38
    Javier on #3977

    Hello, again.

    If we maintain those requirements you stated:

    1. User are sitewide and they will appear in the members directory
    2. A group admin will not be able to delete/edit user

    could we tweak code in the future to suit all the needs? Do those requirements above compromise future modifications?
    For now, just allowing group admins to register users and select the group they belong to, would be really nice for me. There’s a plugin to display groups on the registration page: https://wordpress.org/plugins/buddypress-registration-groups-1/

    Also, I’m searching the codex to look for activation page hooks to display content (“Terms of Service”) there.

    Thank you,
    Javier

    • This reply was modified 7 years, 10 months ago by Javier.
  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #3979

    Hi Javier,
    Thank you for the details.
    1. yes, It will be extendable in future.

    2. You can use the hook ‘bp_before_activate_content’ or ‘bp_before_activate_content’ to add extra content/terms

    I or Ravi will work on this on the weekend and provide you the code.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 38
    Javier on #3998

    Thank you, that’s very kind of you!

    Best regards,
    Javier

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #4110

    Hi Javier,

    I have uploaded the code on github for Group’s admin to add users. Please clone it or download archive file from the following URL.

    https://github.com/buddydev/group-admin-add-users

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 38
    Javier on #4115

    Wow Ravi, you guys are great.

    Thank you very much,
    Javier

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #4117

    Hi Javier,

    Thank you for appreciation. I am glad that I could help.

    Thank You
    Ravi

You must be logged in to reply to this topic.

This topic is: resolved