Reply To: Is bp-friends-template.php editable?
Case?
John sends a friend request to Lucy.
Lucy receives an email notification which invites her to check out John’s profile.
When she does she sees a ‘Cancel Friendship Request’ button. She also sees how fond John is of gerbils and she quickly hits the button, but gets an error message ‘Friendship request cannot be cancelled’.
She can’t cancel it because she didn’t initiate it.
It seems logically there might be 3 options:
1. she sees no button (likewise when John appears on the member directory list);
2. she sees a button which takes her to her friend requests page where she can accept or reject it; or,
3. she is able to accept/reject it then and there.
These options become more user friendly but harder to implement.
I would have thought 1. is, ahem, fairly straightforward, and wouldn’t break anything anywhere else.
It would be helpful if check_is_friend in bp-friends-classes.php returned not just ‘pending’, ‘is_friend’, or ‘not_friends’ but differentiated ‘pending’ according to whether the current user had initiated it or not.
But now I’m getting a little out of my depth…