Viewing 12 replies - 1 through 12 (of 12 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    That is likely from this bullet point in the changelog:

    Fixed: Remove friend action buttons on profiles of non-approved members, when an approved member is viewing. Approved members should not be able to prematurely interact yet.

    The reason being that logically, approved members shouldn’t be able to add pending members yet, even in cases where they maybe found the username and visited the profile directly.

    In your case, are you saying it’s doing too much and removing the UI for approved members looking at other approved members?

    Thread Starter stasonkiev

    (@stasonkiev)

    Hello Michael,
    Thank you for your reply. Yes, you’re completely right, the plugin removes “add to friends” icon in the list of members and “connect” button on the member profile for approved members (even for administrators)

    Hope you can fix it.

    P.S.
    Seems like the previous comment author have the same issue even not using buddyboss.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Well, it was an intentional thing for the reasoning mentioned in my first reply. If a given user is still pending, no one should be able to add them as a friend yet.

    Thread Starter stasonkiev

    (@stasonkiev)

    Michael, no users are pending, ALL users are approved in my screenshots, and still no option to add to friends.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm.

    This is the code where we handle this spot https://github.com/WebDevStudios/BuddyPress-Registration-Options/blob/master/includes/core.php#L914-L926

    It should be checking for moderated status of both the current user and the displayed user, and if either are true, hide it. Otherwise, it should show. Something must be going on as it’s not happening on my dev install, but it’s hard for me to say what, without access.

    That said, you should be able to remove this specific functionality by using the following in your theme, as needed.

    remove_filter( 'bp_get_add_friend_button', 'bpro_nouveau_friend_button_hide', 101, 1 );
    

    I am legit curious which part of the logic in that function is failing, and causing the buttons to still get hidden.

    Thread Starter stasonkiev

    (@stasonkiev)

    Thank you Michael,
    now it’s working fine.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Thus far you’re the only report I’ve had regarding this, so not sure what I can do regarding it overall.

    Thanks for the fix. Same problem here.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    @siyahperde just to confirm, none of the attempted overrides above worked for you?

    Hello, sorry if i’m late.

    I put the code at the end of core.php file of plugin:
    remove_filter( ‘bp_get_add_friend_button’, ‘bpro_nouveau_friend_button_hide’, 101, 1 );

    And buttons get appeared. Thank you very much.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    You’ll want to put that in your functions.php file for your active theme, rather than editing our plugin, so that it doesn’t get overwritten next time we push out any update.

    Hello,

    Thank you Michael, i test it with functions.php in child-theme. Its OK. Thanks for the support and great work. Have a good day.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘After recent update messages and friend request crushed’ is closed to new replies.