[buddypress-trac] [BuddyPress Trac] #6356: Filtering the group invites list
buddypress-trac
noreply at wordpress.org
Sat Apr 11 19:05:00 UTC 2015
#6356: Filtering the group invites list
--------------------------------+--------------------
Reporter: henry.wright | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.3
Component: Component - Groups | Version: 2.2.1
Severity: normal | Resolution:
Keywords: |
--------------------------------+--------------------
Comment (by henry.wright):
Sorry for not explaining properly :)
With the {{{bptrac_filter_group_invite_list()}}} function I posted above
in functions.php, try the following steps:
1. Go to groups/create/step/group-details/ and begin to create a new
group.
2. Complete steps 1 - 3.
3. Now we're at step 4. You should see the screenshot I posted above. The
message on the page should read: "Select people to invite from your
friends list."
The file the message is coming from isn't send-invites.php. It's coming
from create.php See here:
https://github.com/buddypress/BuddyPress/blob/master/src/bp-templates/bp-
legacy/buddypress/groups/create.php#L186
The relevant condition in that file doesn't take filtering into account
because it just checks the total friend count is > 0:
{{{if ( bp_is_active( 'friends' ) && bp_get_total_friend_count(
bp_loggedin_user_id() ) ) :}}}
Hence why you see the text "Select people to invite from your friends
list"
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6356#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list