You can use the BuddyPress Anonymous Plugin to allow users to select different avatars and nicknames for public groups, ensuring anonymity. This plugin lets users upload new avatars or choose from a provided list, and set a unique nickname for group participation.
Thank you , that worked for removing @username from the profile page.
However, @username is still visible within the member’s posts (witin the user’s info box).
@username is also visible within the url of the members profile.
I just find buddypress disclosing members’ @username to be bad practice from a security point of view and denies members’ proper anonymity.
@aboutm2 please paste this code snippet and check it as per your requirement.
// Hide user name from BuddyPress profile
function hide_user_name_from_profile() {
if ( bp_is_active('xprofile') ) {
?>
<style>
.user-nicename{
display:none;
}
</style>
<?php
}
}
add_action( 'wp', 'hide_user_name_from_profile');
Hi guys,
I’m new to using BuddyPress and have set up a course on my website using learnDash.
When I go to Member Profile, the courses section just shows all the courses in a list format. I want to change the design to display them as Cards. Can you guide me through how to do this?
Please assist.
Only if you want to. But it all depends where you have BuddyPress hosted. If you can get notifications when resetting a password, you can get send/recieve emails from BuddyPress too.
@hoopkonsulting As the error suggests, you are not sending a required field as part of the signup payload.
See the documentation.
Hello @imath, I have reviewed everything once again and concluded that the problem was with the BuddyPress Default Data plugin that I use to add demo content. As you mentioned earlier, if you create a group manually, the join and leave buttons in that group work correctly. Meanwhile, groups created using the BuddyPress Default Data plugin give an error – “Error joining this group.” Also, I reverted to version 12.5.1, where all groups can be joined and left without problems. Therefore, I conclude that the BuddyPress Default Data plugin is not compatible with the latest version.
I also tested with Playground and it’s behaving as expected for me: clicking on the join button from the groups directory is adding the member to the group.
Here’s the link to test:
https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/buddypress/buddypress/master/tests/blueprints/14-0-0-RC1.json
Hi @koka777
Thanks for your feedback. I just tested and wasn’t able to reproduce.
Theme: Twenty Twenty-Four
BP Template pack: Nouveau & Legacy (tested with both template packs)
No other plugins than BuddyPress
No custom code into wp-content/mu-plugins or wp-content/plugins/bp-custom.php
I created a public group being logged as an Admin.
I created a subscriber, logged in as this subscriber, went to the Groups directory, clicked on the join button.
Result: the join button turned into a leave button and I was successfully added as a member of the group.
I created a group being a subscriber, logged out then logged in as an Admin. I was also able to join a group from the Groups directory.
Can you explain just like I did above, the steps you are doing to get the “Error joining this group.” message?
Please make sure to deactivate any plugins, custom code, and activate a WordPress default theme like Twenty Twenty-Four.
Hello, thank you for your work. I just started testing BuddyPress 14.0.0-RC1 To immediately clarify and rule out any issues related to my theme, I checked everything again using the Twenty Twenty-Four theme with all third-party plugins disabled. In fact, in version 14.0.0-RC1, it is impossible to join groups from the group listing page; an error occurs – “Error joining this group.” From the group page, pressing the join button elicits no response.
This used to work but not anymore. Now it throws errors/warnings.
Suppressing rich text on xprofile text area
Use wp bio field instead, its coming without the editor.
WP 6.5.5
Buddypress 12.5.1
If I go to this page: https://snvt.nl/professioneel-vertaler-of-tolk-inhuren/
And I do a search.
Then I put for instance a first name and a second name of an existing member in the search area, it will give no results.
If I search for ‘Margriet’, I will get 1 result
If I search for ‘Hunter’, I will get 1 result too.
If I search for ‘Margriet Hunter’, I will get no results.
What can I do to make the search Margriet OR Hunter?
Thank you
Saludo
Rianne
Anybody able to come up with a solution for this?
The 8 year old solution of danpb in this post to remove the rich text editor throws errors:
https://buddypress.org/support/topic/suppressing-rich-text-on-xprofile-text-area/#post-247640
Can you dev guys fix this in your next update? Otherwise using this field opens the profile page for site crashers.
I need to limit the entry of characters in a multiline textarea at the user profile settings (frontend). There are several questions about this in this forum with no real solution. Most of them are several years old.
As far as I see is buddypress using the tinyMCe editor together with this field.
On the tinyMCe blog they provide a solution to “How to limit characters and set a maxlength with TinyMCE”
How can I use that in buddypress? I would need to use the wordcount plugin and edit the tini.init script.
If I can’t implement that in buddypress is there any other solution for this issue?
We have a site that have BuddyPress and we installed the BP Classic plugin to keep the changes we had to our site after the version 12 update. On each of our Members pages, there is a Profile option and on that Profile option it is linked to /profile, but if you click on it, it will redirect back to that current member page. Same goes to Profile > View, it also have /profile/public link but it will also redirect to the current page when clicked.
This is a concern for us since we have Ahrefs audit on our sites and they highlighted this issue every time. Do we have an option to change it or maybe remove the links?
@shubhuofficial The settings tab is also not visible if the user is viewing another user’s profile. This is the default functionality in BuddyPress.
https://prnt.sc/UKnd4pO7_sjY
Nothing has changed. This is the code I’ve tried to use.
function my_custom_buddypress_function() {
var_dump(__FUNCTION__);
if ( ! function_exists('xprofile_get_field_data') ) {
echo '<pre>BuddyPress xprofile component has not been loaded yet.</pre>';
} else {
echo '<pre>';
var_dump(xprofile_get_field_data('Targa', wp_get_current_user()->ID));
echo '</pre>';
}
exit;
}
add_action('bp_init', 'my_custom_buddypress_function', 20);
And this is the output I received:
string(29) “my_custom_buddypress_function”
BuddyPress xprofile component has not been loaded yet.
BuddyPress 12.5.0 is installed and active.
@Kokiri
Please change this function name “custom_bp_avatar_activity” and keep it unique and please remember this also that this will create a new activity So, you will get two activity for single profile uploads.
// Add action to show new avatar in activity stream
function bp_generate_custom_avatar_activity($user_id, $args) {
// Get the user data
$user = get_userdata($user_id);
$user_link = bp_core_get_userlink($user_id);
// Create the activity entry
bp_activity_add(array(
‘user_id’ => $user_id,
‘action’ => sprintf(__(‘ % s has updated their avatar newly.’, ‘buddypress’), $user_link),
‘component’ => ‘profile’,
‘type’ => ‘new_avatar’,
‘item_id’ => $user_id,
));
}
add_action(‘bp_members_avatar_uploaded’, ‘bp_generate_custom_avatar_activity’, 10, 2);
First, ensure that BuddyPress is loaded and initialized before your plugin tries to call its functions. Since BuddyPress hooks its initialization to WordPress bp_init action, which typically fires on wp or init at a priority of 10, you should ensure your hook runs after this or directly on bp_init with a lower priority (higher number).
You can try to debug like this.
function my_custom_buddypress_function() {
if ( ! function_exists('xprofile_get_field_data') ) {
error_log('BuddyPress xprofile component has not been loaded yet.');
} else {
// Your code here
}
}
add_action('bp_init', 'my_custom_buddypress_function', 20);
It keeps throwing the same error: The function does not exist. I’m already developing a plugin and I’m inside a init callback.
Hasn’t BP been auto-loaded yet at this stage?
I also tried to recursively auto-load every single file contained in the buddypress/ folder. But this is not enough as I encounter other dependency errors. Therefore there must be a function/method/class to invoke in order to properly set up the system.
Ensure the BuddyPress plugin is active and add custom code in child theme functions.php or a custom plugin or using the code snippet plugin. xprofile_get_field_data is a valid function https://hooks.wbcomdesigns.com/reference/functions/xprofile_get_field_data/
Thanks for your reply. The problem is that I’m getting the following error message:
Fatal error: Uncaught Error: Call to undefined function xprofile_get_field_data()
I’ve also tried to use the following code to auto-load the BuddyPress dependencies:
require_once WP_PLUGIN_DIR . '/buddypress/bp-loader.php';
What’s the correct way to auto-boot BuddyPress?