[buddypress-trac] [BuddyPress Trac] #8139: Network Invitations and Membership Requests

buddypress-trac noreply at wordpress.org
Wed Apr 7 16:29:26 UTC 2021


#8139: Network Invitations and Membership Requests
--------------------------+-----------------------
 Reporter:  dcavins       |       Owner:  (none)
     Type:  enhancement   |      Status:  assigned
 Priority:  normal        |   Milestone:  8.0.0
Component:  Registration  |     Version:  5.0.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by dcavins):

 I am attaching my current in-process patch. There's plenty still left to
 do, but there's also a lot of work that has been done.

 What is currently working:
 Site admins can enable site invitations at BuddyPress Settings > options.
 In BP Legacy, members can visit their profile at
 `/members/me/invitations/` to invite new members to join the site and view
 sent invitations (or act on them by resending or canceling).
 In both Legacy and Nouveau, Invited members receive a link like
 http://bpdev.local/register/?inv=19&ih=ebcdb3681ddc215e79f46d2fe17b56e0
 where the `ih` parameter is a hashed key of sorts using some info from the
 inviting user (see `bp_members_invitations_get_hash()`). This key allows
 invited users to join the site even if "anyone can join" is not enabled
 (and site invitations are enabled).
 A list table of all site invitations is available to the admin at `/wp-
 admin/users.php?page=bp-members-invitations`.


 What is not yet built:
 Member's invitation profile pane is not appearing in the WP Admin Bar nav.
 BP REST needs a new members invitations endpoint to allow for the
 fetching/creation/resending/deletion of members invitations.
 - Fetching can be accomplished via `bp_members_invitations_get_invites()`.
 Should be restricted to sending user and admins.
 - Creation via `bp_members_invitations_invite_user()`
 - Resend via `bp_members_invitation_resend_by_id()`
 - Delete via `bp_members_invitations_delete_by_id()` or
 `bp_members_invitations_delete_invites()` to bulk delete.
 Nouveau needs the user's pane to send new invitations and also to
 resend/delete existing invitations.
 Clean up invitations when a user is deleted.
 Invitation and email logic will need to rely on opt-out work happening in
 #8448.

 Thanks for any help and/or comments you can give!

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8139#comment:35>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list