Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I disable all user profiles in BuddyPress?

Viewing 8 replies - 1 through 8 (of 8 total)

  • shanebp
    Moderator

    @shanebp

    There are all sorts of custom ways to ‘hide’ members.
    The easiest would be something like this, untested:

    function bp_profile_custom_redirect() {
        // if bp profile page, redirect to home page, adjust as needed
        if ( bp_is_user() ) {
            wp_redirect( home_url( '/' ) );  
            exit;
        }
    }
    add_action( 'bp_loaded', 'bp_profile_custom_redirect', 1, 50 );

    bp_is_user


    lookingahead
    Participant

    @lookingahead

    Thanks, @shanebp — appreciated!

    This is just a ‘redirect’ right….? So is this better/same/worse than a 301?

    Is there any way to prevent User Profiles from loading in the first place?


    lookingahead
    Participant

    @lookingahead

    so @shanebp at this point i’m just hiding access to user profiles through a redirect…but really that is not what i need.

    can you help me with this?

    because what i really need is a way to prevent people from having clickable user avatars in the first place.

    i don’t even want there to be a mouseover message like, ‘click to view ___’s profile’…because i don’t want these avatars to be clickable. i don’t want these avatars to lead to any profile.

    i’ve tried jquery code and that didn’t work — it did not disable the message (‘click to view ___’s profile’) and it did not disable the clickability of the avatar.

    i do not want the avatar to be clickable and i do not want a message to popup upon mouseover. not any message whatsoever. but jquery doesn’t seem to be the solution….

    any ideas on how to do this?


    haleyscorner
    Participant

    @haleyscorner

    setting buddypress disable profiles


    lookingahead
    Participant

    @lookingahead

    nope, that’s not it @haleyscorner but thanks!


    lookingahead
    Participant

    @lookingahead

    and FYI — i’m actually happy to report that i fixed this issue, but BP FORUMS HERE won’t let me post it LOL….apparently i’m using a keyword that some plugin thinks is ‘spam’…LOL. i’m enclosing all my code in code tags, so….no idea what the deal is. will come back here and post when i get the chance to figure out how.


    duckyduck88
    Participant

    @duckyduck88

    @lookingahead I’m also looking to do the same! Is there anyway you could please let me know how you did it please?

    Thanks


    stephunique
    Participant

    @stephunique

    @lookingahead

    Could you tell us what you did to disable the profile page? Perhaps you can use Pastebin if you can’t post here directly?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar