Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

How to hide friends tab from others

This topic is resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • elaheh
    Participant
    • 15 Topics
    • 31 Posts
    @elaheh

    I would like the ‘friends’ tab in the member profile to be visible only for the account owner. I have found a code snippet that should be added to the bp-custom.php.
    Your theme doesn’t have such a file so I have created that bp-custom.php and I put it in the plugins folder. But it crashes the whole website. here is what I wrote in bp-custom.php:

    <?PHP 
    add_action('bp_friends_setup_nav','bpdev_custom_hide_friends_if_not_self');
    
    function bpdev_custom_hide_friends_if_not_self(){
    if(bp_is_my_profile()|| is_super_admin())
    return ;
    
    bp_core_remove_nav_item('friends');

    What do you suggest to solve this issue?

    Dorianrevest
    Participant
    • 19 Topics
    • 55 Posts
    @dorianrevest83

    I am also interested in this solution. 🙂

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @elaheh,

    Unfortunately, we have no clue. ?‍♂️

    As this issue is related with BuddyPress, it’s best if you try to reach the plugin authors. They will be more informed and better suited to help you.

    To go further, we invite you to post your request on their support forums:
    https://buddypress.org/support/

    We remain available for all support requests related with the use of your theme.

    Best,

Roboraptor 🦖
Themosaurus Topic Closer

Hi there,

This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!

Best regards,
The Themosaurus team.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘How to hide friends tab from others’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site