Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide General Settings Tab

  • @trailmix5

    Participant

    Hello,

    I am looking for a way to hide the settings/general tab without hiding the notification or privacy tabs. I have a membership plugin and I don’t want users to try to change their password on that screen. I’m pretty sure they are unable to change it due to my preferences, but it’s just confusing that it seems like an option on my site.

    I successfully hid the tab with some css, but unfortunately when a user clicks on the settings tab, it goes to the general page as a default even if the tab isn’t there. Ha…I almost had it.

    This was the css:

    /* Hide Certain Profile Icons */
    #general-personal-li {
    display: none;
    }

    What if I hid the css as I did above and then changed the code so it defaulted to the notification tab when the settings tab was clicked? Ha…not that I know how to do that, but I figured I’d put it out there.

    Please let me if anyone out there has an idea about how I can accomplish this. Thanks so much for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @modemlooper

    Moderator

    Leave tab active but hide password fields

    @trailmix5

    Participant

    @modemlooper

    Thanks for the advice….that sounds awesome! If I hide the password fields, it would still contain the email field right? I neglected to mention that I don’t want users to change the email on that page either…my bad. Is there a way to bypass that tab altogether?

    BTW, your extended settings plugin is great! I just gave it 5 stars…it’s helped me out a lot.

    Thanks!

    @trailmix5

    Participant

    I just did a lot of searching and the only thing I came up with was a thread that was over 1 1/2 years old. It’s https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/hide-general-settings/

    Since it’s such an old thread and my php code knowledge is mainly copying/pasting with a bit of manipulation…I wanted to ask you what you thought about it first. I wasn’t sure how the newer version of Buddypress would react and I was scared to break my site…ha. I’d obviously like to deal with this situation via CSS because it’s easy and it won’t be affected if an update overwrites my functions.php…but I’m down for whatever works. Thanks again for the help.

    @modemlooper

    Moderator

    In BP-default folder you can edit the file members/single/settings/general.php

    Just comment out the form for the settings. BTW did you uncheck settings option in admin?

    Thanks for the rating.

    @trailmix5

    Participant

    Thanks @modemlooper

    I was able to comment out the entire form with /* and */, but the user is still directed to a general settings page (that is now blank except for the title “General Settings”). Granted this is better than having the password and email field, but is there a way for me to bypass that tab and go straight to the notifications?

    Also, I have settings checked in the admin panel because I want the user to be able to change the notification and privacy preferences. Is that correct?

    I’m not sure why I didn’t think of this before, but I could just hide the tab in CSS (like I did previously) and then use a 301 redirect match in my htaccess from settings to settings/notifications. Huh, is that a viable way to achieve this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide General Settings Tab’ is closed to new replies.
Skip to toolbar