Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/10/2019 07:57:41 PM (6 years ago)
Author:
boonebgorges
Message:

Nouveau: Fixes for the Friends Request page.

The Friends Request page was introduced in Nouveau with the same dropdown
filter as on other member directories, but the functionality was never
fully implemented. In this changeset, we make the following changes:

  • Ensure that the AJAX request distinguishes between friend request queries and other membership queries, so that the members returned are limited to friend requests.
  • Break the friend request loop logic into its own template, so that the outer template information (title, pagination, etc) doesn't appear twice after an AJAX filter.
  • Modify the logic in the friend-request template so that it uses bp_ajax_querystring(), which lets the filters affect the returned results.

Props imath.
Fixes #8035.

File:
1 edited

Legend:

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

    r12082 r12322  
    111111        break;
    112112
     113        case 'friend_requests' :
     114            $template_part = 'members/single/friends/requests-loop.php';
     115        break;
     116
    113117        case 'member_notifications' :
    114118            $template_part = 'members/single/notifications/notifications-loop.php';
Note: See TracChangeset for help on using the changeset viewer.