How can I disable all user profiles in BuddyPress?
-
Hi. I do not want my users to have their own ‘profile page’ — I am using WooCommerce’s account screen to have their account information listed there….they will be able to track their orders and so forth. So I have no need for a BuddyPress ‘user profile’ to also be used.
I want to invalidate any attempts to click on user avatars in groups, as well. So no user profile will ever be visible at all.
How can I accomplish this? I looked for a plugin to disable user profiles from ever being seen or used….didn’t find one.
Any ideas?
-
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 );
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?
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?
setting buddypress disable profiles
nope, that’s not it @haleyscorner but thanks!
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.
@lookingahead I’m also looking to do the same! Is there anyway you could please let me know how you did it please?
Thanks
Could you tell us what you did to disable the profile page? Perhaps you can use Pastebin if you can’t post here directly?
- You must be logged in to reply to this topic.