Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Show ”Cancel Friendship” in Friends List?

  • @aljuk

    Member

    Is it possible to display a “cancel friendship” button next to each friend in the user’s friends list?

    From what I can see, the friends list on a user’s profile is generated by members/members-loop.php and the add/cancel friendship buttons are generated by “ but the button (it would only be ‘Cancel Friendship’ obviously) doesn’t show up in the user’s Friends list (friends.php – which calls members-loop.php).

Viewing 8 replies - 1 through 8 (of 8 total)
  • @gunju2221

    Participant

    Stay tuned for buddypress 1.3 ;)

    @aljuk

    Member

    @gunju2221 glad to hear it :)

    @sbrajesh

    Participant

    take a look at this
    https://trac.buddypress.org/ticket/2780

    it is fixed in 1.3 branch but not in 1.2 branch. You can modify the the friends-template tag or just hook to the filter to correct it.

    @gunju2221

    Participant

    There’s the ticket I was looking for ;)

    I wouldn’t recommend modifying the template tag, as you will lose changes, and you can’t make an error in that file.

    @sbrajesh

    Participant

    In that case, you can always put this in the functions.php/bp-custom.php and it will fix the issue

    `
    add_filter(‘bp_get_add_friend_button’, “friend_fix_bp_button_bug”);

    function friend_fix_bp_button_bug($button){
    if($button==’is_friend’)
    $button=false;
    return $button;
    }
    `

    Edit: I posted wrong id, updated now.

    @gunju2221

    Participant

    Thanks Brajesh.

    @sbrajesh

    Participant

    you are most welcome :)

    @aljuk

    Member

    @sbrajesh thank you so much.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Show ”Cancel Friendship” in Friends List?’ is closed to new replies.
Skip to toolbar