Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/22/2022 05:42:45 AM (3 years ago)
Author:
imath
Message:

List the displayed user groups invites in member's front-end screen

As a site admin can view the displayed user groups invites, listed invites have to be the one of this user and not the ones of the site admin.

Adapt the Group Invites feature so that site admins can accept or reject on behalf of the displayed user the listed invites. These two actions made by an admin will generate a specific BP Email informing the user of it.

Props oztaser, dcavins, espellcaste

Closes https://github.com/buddypress/buddypress/pull/15
Fixes #8675

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

    r12595 r13273  
    55 * @package BuddyPress
    66 * @subpackage bp-legacy
    7  * @version 3.0.0
     7 * @version 11.0.0
    88 */
    99
     
    1515do_action( 'bp_before_group_invites_content' ); ?>
    1616
    17 <?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
     17<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_displayed_user_id() ) ) : ?>
    1818
    1919    <h2 class="bp-screen-reader-text"><?php
    2020        /* translators: accessibility text */
    21         _e( 'Group invitations', 'buddypress' );
     21        esc_html_e( 'Group invitations', 'buddypress' );
    2222    ?></h2>
    2323
     
    7979
    8080    <div id="message" class="info">
    81         <p><?php _e( 'You have no outstanding group invites.', 'buddypress' ); ?></p>
     81        <p><?php esc_html_e( 'You have no outstanding group invites.', 'buddypress' ); ?></p>
    8282    </div>
    8383
Note: See TracChangeset for help on using the changeset viewer.