• Resolved ma3ry

    (@ma3ry)


    I can’t figure out how to protect my Member Profile Pages so that they can be viewed only by logged in members.

    People are getting links in emails to view a profile and they don’t have to log in to see it. This means that it’s visible to anyone.

    Example of link is https://christiangays.com/members/mary/

    or https://christiangays.com/members/ shows all members

    On the Members page I have selected to “Yes, protect this content” but it isn’t working.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Check this post https://premium.wpmudev.org/blog/how-to-add-profile-privacy-to-buddypress/
    It may help you to protect the BP profile page.

    Thread Starter ma3ry

    (@ma3ry)

    Thank you Nisha. I don’t use “Friends” on my site because it conflicted with a couple of plugins that I really need.

    What I need is a hack that would replace “friends” for “Logged In” members. Unfortunately I don’t know coding sufficiently to adapt the WPMU hack.

    Did you find a solution to this ma3ry? Im needing a very similar solution so that profiles can only be viewed by logged in users of a certain membership level.

    Thread Starter ma3ry

    (@ma3ry)

    No, still no solution. Sorry.

    Hi @ma3ry,
    there is a buddypress filter you can use, go to Administration -> Appearance -> Editor then choose the functions.php file

    Add this code at the end ot the file just a line before ?>

    add_action('bp_before_profile_loop_content', function(){
    	if (!is_user_logged_in()) {
    		echo '<p>'.__('Only Logged member can see member\'s profile.').'</p>';
    		return;
    	}
    })
    Thread Starter ma3ry

    (@ma3ry)

    Thank you so much for your input Sidati!

    I don’t have an Editor page in Appearance so I tried putting it in my functions.php of my child theme. That didn’t work so I tried putting it in my bp_custom.php file and it didn’t work there either.

    Could part of the problem be that I am using multisite?

    @ma3ry: you really need to be asking at https://buddypress.org/support/ These are WordPress forums, not Buddypress.

    You must at least see the message : “Only Logged member can see member’s profile.” when you are logged-out, UNLESS your buddypress theme does not support that filter/action.

    Anyway as @songdogtech said; try buddypress forums.

    Thread Starter ma3ry

    (@ma3ry)

    That’s what I would like to see, but unfortunately I can see all members when logged out.

    Not good on a membership based website. ;-(

    I will check with the developer of my theme. Thank you!

    Thread Starter ma3ry

    (@ma3ry)

    Thanks for the advice. Indeed I will do that. Much appreciated!

    Thread Starter ma3ry

    (@ma3ry)

    In case anyone is following this and looking for answers, I just found a plugin by PhiloPress called BP Simple Private Pro for $26. There is a free version but I need the pro version for multisite.

    Just purchased it. Haven’t tried it, but I’m hoping it will work.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How Do I Protect BuddyPress Profile Pages Please’ is closed to new replies.