Ohhh, GOT IT!!
looks like this code is exactly what is needed….i pasted it into a custom plugin and wa-la…credit goes to the fabulous @prashantvatsh! he replied in the support forum on his plugin (the ‘BP Custom Functionalities’ plugin)…like super quick, with the correct solution to me needing to restrict access to a user’s OWN profile. brilliant!
here’s that support thread:
https://wordpress.org/support/topic/restrict-access-to-users-own-profile/
and here’s the code from prashant that i wound up putting into a custom plugin file and uploading to my site:
add_action( 'wp', 'bp_own_profile_member_redirect' );
function bp_own_profile_member_redirect(){
if(bp_is_user()){
global $bp;
$current_user_id = (int) trim($bp->loggedin_user->id);
$member_id = (int) trim($bp->displayed_user->id);
if (!current_user_can('manage_options') && $current_user_id == $member_id)
{
//Only admins can view their own profile
wp_redirect(site_url()); //you can set any URL here
exit;
}
}
}
thanks again for all your help, @venutius — your help was fundamental to me figuring out the next steps (how the BuddyPress avatars exist and how to get those avatars to show what i wanted without messing with bbPress code)…i am truly grateful for all your assistance!
Probably, but you provide very little info about what you’re trying to do.
I’m not aware of any plugin that does that.
It’s not a simple task and creating such a plugin is beyond the scope of these support forums.
Hi,
The URL you have mentioned is admin URL, it will only work for admins and to access your profile just hover on your avatar and there you will see a menu ‘profile’ just click on this and it will lead you to your forum profile.
Thanks
I have experience with both plugins: Peepso and BuddyPress.
BuddyPress is a free plugin and offers integration with BBPress forum. It has its own look and feel, very different from Facebook. For visitors it can be difficult to understand where to do what. It does have tons of option to extend it with other plugins. To be honest you will need other plugins to get some functionality. You can customise a lot if you want to. Development is not too fast as it is run by volunteers….also means less headaches with constant updates ;-). To be honest I find the BuddyPress website a bit confusing, like the plugin it doesn’t follow standard website look and feel.
Peepso is a paid plugin. The free plugin is pretty useless if you ask me, so if you decide to go with Peepso you will probably need the Ultimate Bundle. This bundle offers a lot of options and follows Facebooks look and feel. Users will understand right away how it works. Updates are on a regular basis, like every 2 weeks with bugfixes and extra functionality.
Pros BuddyPress
Free
Extendable with other plugins
Cons BuddyPress
Missing some basic options (can be added with 3rd party plugins)
Bit confusing for new users
More plugins needed – compatibility – problems? – multiple developers -> frustration?
Pros Peepso
Complete package if you go for Ultimate bundle
Users understand Facebook…and Peepso
1 stop shop – 1 plugin – 1 developer
Cons Peepso
Expensive
NOT multilingual! (bit weird for a social network!)
Use as is – fast developing means fast updates breaking customisations.
If you want to build a social network in 1 language, got the money and want an easy solution go for Peepso. I choose BuddyPress as I use WPML and 2 languages.
BuddyPress does not have membership levels.
If you are using another plugin for membership levels – ask them for the code to retrieve a membership level for the current user.
Then ask bbPress support ( bbpress.org/forums/ ) about the best hook to use to maybe restrict access.
I need to allow access at forum only for a specific membership level. How can I do that?
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.
I am trying to grant site admin permission to edit user profiles in a multisite installation but keep getting a 404 page no matter how many permissions they have in User Role Editor.
There is a discussion here that deals with the same topic.
Permission to edit buddypress users in multisite installs appears to be hardcoded to superadmin in buddypress. How can I change this?
Alexinzo, did you find any solutions? We are having a similar issue. When a new user signs up, enters their email, and then submits, screen turns white, holds there, needs to be refreshed, and returns to same page. The registration goes through but for the new user. New users are supposed to get an intro letter/auto email (with default password) after they sign up. But even though the new user is signed up, the auto email does not get sent to them to provide them their default password and the welcome letter. Have also been searching the forum any answers. Did you try directly contacting Buddy Press?
Anonymous User 16484011Inactive
Ya you are right Prashant. I very confused. How someone write ditto word to word like my ticket even if on subject line also. I haven’t any another account. I think this is a security breech. Or may be loop whole or bug where someone or automated system stolen my data and create new username or account or post a new copied ticket to someone else account.
I also visit https://buddypress.org/members/monirulbd/forums/ and there is also same as per mine https://buddypress.org/members/harihealthcare/forums/
Even I completely remember that after I log in I create new topic.
Really don’t get whats problem ?
Please use punctuation when posting to these forums.
Please switch to a WP theme like 2016.
If the problem does not persist, then you know it is an issue with your theme and you should contact the theme creators.
Hi,
The code bitboy provided works fine with the nouveau template, if you are using the legacy template then try this code:
function ps_show_displayed_user_id() {
if ( bp_is_my_profile() || is_super_admin() ) {
echo 'ID: ' . bp_displayed_user_id();
}
}
add_action( 'bp_profile_header_meta', 'ps_show_displayed_user_id' );
Please try to mention your template pack when asking for such kind of help in the forum, because the hooks differ in both the templates, that will also help us to help you better.
Thanks
Hi,
This is hardcoded in bbpress plugin here bbpress\includes\extend\buddypress\groups.php.
Find the line $this->slug = 'forum'; but I think changing this may create some issues but you can check if it works fine for you or not. Also changing anything in core file is never recommended because on the next update you will lose it and then have to redo again.
One recommendation is that always take a backup of your site when you are doing such core changes.
Thanks
P.S.: apparently this is NOT a bbpress issue; they said it is something that buddypress is responsible for, because these are forums that are associated with user groups in buddypress.
so…..i want to change the default āforum urlā path (the ‘slug’)…that populates upon forum creation for user groups from something like this:
/groups/group-name/forum/
…to something like:
/groups/group-name/chat/
ideas?
iāve altered the bp-custom (PHP) file, altered the wp-config (PHP) file, altered the functions (PHP) file, gone into the āsettingsā area and changed the root forum name to āchatā and had ātopics by freshnessā selected, had it unselected, have changed the default forum to not be the root, etc. etc….no luck
i do NOT want to hack core files ā any suggestions?
@timehubzone — don’t know how a username with a space in it would be relevant; this is not related to usernames or user profiles
‘change the permalink setting from the default that WP installs with’….in what menu? in the ‘forum’ settings…? did that
here’s what the ‘forum’ settings in WP looks like: 
@shanebp what if i want to change the default “forum url” creation from something like this:
/groups/group-name/forum/
….to something like:
/groups/group-name/chat/
….?
i’ve gone into the ‘settings’ area and changed the root forum name to ‘chat’ and had ‘topics by freshness’ selected, had it unselected, have changed the default forum to not be the root, etc. etc…..no luck
i heard somewhere about a plugin that could change this default URL path creation to something else, but never heard which plugin it could be
i do NOT want to hack core files — any suggestions?
Please do not create duplicate posts in the forum.
Hi,
Is the a way to change the order of the group tabs. It’s currently “Home”(Activity) “Forum” “Members” “Send Invites”
I want to change the default landing page for a group which is “Home” to “Forum” so that when a use clicks on a group, they will go directly to the group’s forum instead of the groups activity page.
I have no clue how to do this, can someone perhaps suggest a solution?
@elichersky333 sorry for my first reply, I thought the rules are like WordPress forum. You can contact like I have mentioned or can post here a way to contact you.
It’s okay to place a call for devs here.
It’s nice to see the occasional person who doesn’t want free work.
Because there is no way to do a private message on these forums, typically we make sure the OP includes a method to contact them.
Then we close the thread so that any discussion takes place elsewhere.
@elichersky333 – how can you be contacted ?