BuddyDev

Search

Private avatar

  • Participant
    Level: Enlightened
    Posts: 94
    Ankit Raj on #33305

    Is there a way i can make my avatar private

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #33308

    Hello Ankit,

    Thank you for posting. Yes, It can be doable via code. You can check the current user role, member type and based on it you can filter the user’s avatar.

    Please check this function

    https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-avatars.php#L192

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 94
    Ankit Raj on #33312

    I don’t have members type and i don’t want to. I just want to allow my site members to have the option to make their avatar private. My site role is subscribers.
    Can you give me the code

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on #33475

    Hi Ankit,
    Thank you for the details.

    I am sorry, we are unable to provide you any code. This is beyond what we can offer as free support.

    we do plan to offer it in one of our upcoming plugins.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    mehmet on #52188

    Hi Brajesh Singh

    Did you finally create this plugin?

    I need this feature

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on #52190

    Hi,
    No, we did not develop the private avatar.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved