Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/17/2013 07:00:46 PM (12 years ago)
Author:
boonebgorges
Message:

Improve UX flow around overlapping group invites and requests

This changeset introduces a number of improvements to the flow surrounding
invitations and membership requests to private groups:

  • When a user has previously requested membership in a group, add a note to that effect when the user is being invited to the group via the Send Invites interface.
  • When a user has previously requested membership in a group, automatically accept that invitation and add the user to the group when an invitation is sent by an existing group member.
  • When a user has previously been invited to a group, buttons in the group directory and in the group header should read Accept Invitation instead of Request Membership

The end result is a more logical user experience with regard to joining private
groups.

Fixes #5032

Props Mike_Cowobo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r7347 r7442  
    413413            );
    414414
    415             // If this is a private group, and the user is not a member, show a "Request Membership" nav item.
     415            // If this is a private group, and the user is not a
     416            // member and does not have an outstanding invitation,
     417            // show a "Request Membership" nav item.
    416418            if ( is_user_logged_in() &&
    417                  !bp_current_user_can( 'bp_moderate' ) &&
    418                  !$this->current_group->is_user_member &&
    419                  !groups_check_for_membership_request( bp_loggedin_user_id(), $this->current_group->id ) &&
    420                  $this->current_group->status == 'private'
     419                 ! bp_current_user_can( 'bp_moderate' ) &&
     420                 ! $this->current_group->is_user_member &&
     421                 ! groups_check_for_membership_request( bp_loggedin_user_id(), $this->current_group->id ) &&
     422                 $this->current_group->status == 'private' &&
     423                 ! groups_check_user_has_invite( bp_loggedin_user_id(), $this->current_group->id )
    421424                ) {
     425
    422426                $sub_nav[] = array(
    423427                    'name'               => __( 'Request Membership', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.