Skip to:
Content

BuddyPress.org

Changeset 11807


Ignore:
Timestamp:
01/10/2018 07:34:35 PM (7 years ago)
Author:
hnla
Message:

Nouveau: group create invites

Commit addresses an issue where the invites step of Groups create presents two fundamental problems. In including the backbone JS template partial we include a search form which becomes nested in the main group create form & the backbone JS creates unique nav menu tabs which only function in context of users/groups screens & so invite user selection fails.

Commit adds a new include file which renders the bp_new_group_invite_friend_list() function, replaces the Nouveau JS template callback on the invites step with path to this new file and adds a new screen message to message array to explain screen invites step.

Props DJPaul, hnla

Fixes #7625

Location:
trunk/src/bp-templates/bp-nouveau
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r11686 r11807  
    519519            'message_type' => 'warning',
    520520            'message'      => 'The \'bp_directory_groups_actions\' action will soon be deprecated in the BP Nouveau template pack, we recommend you now use the \'bp_nouveau_get_groups_buttons\' filter instead',
     521        ),
     522        'create-invite-friends' => array(
     523            'type'    => 'info',
     524            'message' => __( 'You can send invites to any of your friends listed here, or skip this step & send later from the group. Invites sent from this screen will appear in the groups \'Pending Invites\' tab of the \'Send Invites\' menu.', 'buddypress' ),
    521525        ),
    522526        'bp_group_invites_item_action' => array(
  • trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php

    r11686 r11807  
    10331033        'group-avatar'      => array( 'hook' => 'group_avatar_creation_step',      'nonce' => 'groups_create_save_group-avatar',                                                       ),
    10341034        'group-cover-image' => array( 'hook' => 'group_cover_image_creation_step', 'nonce' => 'groups_create_save_group-cover-image',                                                  ),
    1035         'group-invites'     => array( 'hook' => 'group_invites_creation_step',     'nonce' => 'groups_create_save_group-invites',     'template' => 'common/js-templates/invites/index'       ),
     1035        'group-invites'     => array( 'hook' => 'group_invites_creation_step',     'nonce' => 'groups_create_save_group-invites',     'template' => 'groups/create-invites'      ),
    10361036    );
    10371037
Note: See TracChangeset for help on using the changeset viewer.