Not via the REST API.
You can use the activity endpoint: https://developer.buddypress.org/bp-rest-api/reference/activity/#list-activities
To get activities from a single group only.
Good evening, is there any way to prevent you from being automatically logged out of one of my Buddypress pages after a short time? Regards, Toni
OMG I am sooo happy! Chatgpt and some noob questions to it managed to tweak the code so now it works! 😍
If anyone would need it, this now works:
function assign_role_based_on_profile_field($user_id) {
// Get the BuddyPress profile data for the registered user
if (function_exists('xprofile_get_field_data')) {
$role_value = xprofile_get_field_data('Roll', $user_id); // Replace 'Role' with the exact name of your profile field
$user = new WP_User($user_id);
// Assign the user role based on the profile field value
if ($role_value == 'Arbetsgivare') {
// Assign 'employer' role
$user->set_role('employer'); // Replace 'employer' with the exact role slug
} elseif ($role_value == 'Arbetssökande') {
// Assign 'candidate' role
$user->set_role('candidate'); // Replace 'candidate' with the exact role slug
} else {
// Default role if no specific selection is made
$user->set_role('subscriber'); // Or any other default role
}
}
}
add_action('bp_core_activated_user', 'assign_role_based_on_profile_field', 10, 1);
Makes sense, have you checked that your BuddyPress URLs are correct?
Settings > BuddyPress > URLs
Maybe there is a setting in there missing or something; maybe under User Groups or Gallery. :/
I personally swicthed to MediaPress since I had other third plugins like Anonymous Posting, Privacy Settings and so on that were too important – and rtMedia wasn’t compatible with them.
Also rtMedia seems to be a pain in the *** when it comes to being compatible with anything and it always seems to be causing issues.
I’m sure it would be pretty fast to move images if you used FTP to do so.
/uploads/mediapress/members/MEMBER-ID/GALLERY-ID/IMAGE-URL
It’s not easy to help other troubleshoot issues unless you’re backend testing settings for yourself, so it’s hard to guess what the problem might be.
I never had issues with the permalinks when using rtMedia though. 🙂
Hi,
I have a buddypress theme installed that allows to handle WPJM plugin for job and resume registrations. For this latter I need the users to register as candidate or employer to control who can view resumes or post jobs etc.
However the theme dont have this per standard but their support where very kind to give me a suggested custom code to handle this. I cant get this to work and wonder if someone knows what might be missing?
This is what they wrote me for this question:
Create a Profile Field for “Role”: Set options like “Employer” and “Candidate” for users to select during registration.
Use Code to Assign the Role: A code snippet can assign the correct role based on the user’s selection in this profile field.
Please let us know if you’d like guidance on the custom code snippet to achieve this or if you’d prefer assistance from a developer.
Here is a code snippet you can use to assign a user role based on the value selected in a custom BuddyPress profile field during registration. This example assumes the profile field is named “Role” and has values such as “Employer” or “Candidate.”
function assign_role_based_on_profile_field($user_id) {
// Get the BuddyPress profile data for the registered user
if (function_exists('xprofile_get_field_data')) {
$role_value = xprofile_get_field_data('Role', $user_id); // Replace 'Role' with the exact name of your profile field
// Assign the user role based on the profile field value
if ($role_value == 'Employer') {
// Assign 'employer' role
$user = new WP_User($user_id);
$user->set_role('employer'); // Replace 'employer' with the exact role slug
} elseif ($role_value == 'Candidate') {
// Assign 'candidate' role
$user = new WP_User($user_id);
$user->set_role('candidate'); // Replace 'candidate' with the exact role slug
} else {
// Default role if no specific selection is made
$user = new WP_User($user_id);
$user->set_role('subscriber'); // Or any other default role
}
}
}
add_action('bp_core_signup_user', 'assign_role_based_on_profile_field', 10, 1);
Make sure the roles employer and candidate are defined in your site.
I want to use the WPJM user roles as standard: employer and candidate. Not sure if the slug meant here is just ’employer’ and ‘candidate’ to be correct?
Best regards,
Flamuren
Hello @varunkamani
I already gave you a few options to choose from, so in the end it’s up to you.
1. Ignore error and keep plugin
Keep the plugin and accept the fact that it comes with some issues and risks.
The risk itself is pretty low when it comes to the XSS since this is pretty common.
Like mentioned before, old and unsupported plugins do come with some risk.
2. Find a different plugin
Find a different plugin that is updated that can provide you with the features you need/want.
You can search on both WordPress.Org or other sites like Google, CodeCanyon etc.
https://wordpress.org/plugins/
3. Use a third party security plugin
Download and install a third party security plugin that can help prevent the XSS attacks on your site. This could be either free or paid/premium depending on your budget and needs.
4. Get a developer to help you update current plugin
If you insist on keeping the BuddyPress Global Search and you want it updated to fix its current issues, you’d need to pay a developer to help you update the plugin itself. This might not be the best solution long term, and I would also assume BuddyBoss themselves would update this if they felt it was necessary. The fact that they talked about updating it for the past 3 years and now left it abandoned tells me that it’s not a priority for them.
From a quick search on the forums, this topic has been up several times before for the past many years, so don’t expect an easy or “free” solution for this.
Hope it helps! 🙂
I confirm the issue, it will be fixed very soon:
https://buddypress.trac.wordpress.org/ticket/9248
I completely reinstalled BuddyPress but have the same page and problem as before! https://drive.google.com/file/d/1t6ePWc0fe9nlxIu4Y8aN3IbaDCOscxXo/view?usp=sharing
This must be a bug!
Favorites to me is kinda the same as “liked posts”.. So either would work I guess.
For now the favorites do work for the most part, but some areas do need an update.
The “notifications” I’m talking about is on the
#buddypress div.item-list-tabs.primary-list-tabs & activity-favorites
– Basically the counter for the “marked as favorites” on the sub-navigation. If a member decides to remove an activity that another member has marked as a favorite the count dosen’t update or accomidate for this. So now the other user is left with an empty list but still a phantom “notification” on the sub navigation.
The only way I’ve found to “reset” this is to go into the MySQL database itself and clear the meta-data from there in order to actually “reset”/update the counter. The issue is that it’s almost impossible to find the specific “favorite” data and dele only that one.
Hope it makes sense! 🙂

Activity favorites really need improvements, I agree. I’ve suggested many ways to do so but haven’t succeed to convince the team. Here’s my last attempt about it: https://github.com/buddypress/buddypress/pull/238
I’m not sure what you call “Notification” is an item of the Notifications component, as you can always mark as read notifications going into the corresponding profile page.
I guess what you call “Notification” is the amount of favorited activity that is added to nav items.
We’re aware of the issue but haven’t found the best way to deal with it.
BuddyPress Global Search is a separate plugin that enables you to use some better search-functions. This plugin has been abandoned for a while and could be a security risk on your site. A lot of people still use it – what version do you have of the plugin?
You could just “ignore” the warning within your WordFence control panel, since you already know having this plugin is in itself a risk to your site.
Hello guys!
I’ve noticed that when I’m on a (private) group’s own activity wall and I wait for a few seconds – it comes up with a button to “Load Newest” activites. When this button is pressed it loads EVERYTHING from the main activity wall and not just the items from that specific group.
The meaning behind the “Load Newest” when within a group, should (I assume) be to load the newest posts/activites within that specific (again private) group. Anything else makes no sense.
Also when page is refreshed all the activites that dosen’t belong in the group is removed.
Is anyone else having the same issue or is this just a third party conflict on my end?
If anyone else is having the same issue, then this should be fixed/looked into in an upcomming update for sure.
If anyone has a solution to this, please let me know! 🙂
Thanks!
Recently, the WordFence plugin has been giving me a “critical” error message of:
The Plugin “BuddyPress Global Search” has been removed from wordpress.org but is still installed on your site.
Type: Vulnerability Scan
Is “BuddyPress Global Search” part of the “core” BuddyPress code now? Can I safely remove it?Currently, the site is using global search functionality. If I remove it, the feature might break. How can I fix this issue without causing any disruptions?
@ph59 – I’ve been working on this too, but for now the only close solution to this is the following premium plugin. Would love to know if this helps!
Facebook Like User Activity Stream for BuddyPress
Hi @ariadnaquingles – Sorry for the late reply, didn’t get the notification about your message.
Have you managed to fix this issue? – if not it might be within your BuddyPress settings.
Trac ticket #9245 was created to resolve the reported issue.
Hi
I have a big problem. All my buddypress pages (members archive and other buddypress pages) is having the logged in user call name as heading. Please see image here
https://www.dropbox.com/scl/fi/ifkurq9g1i9ppk8krq4gg/change-menu-title.JPG?rlkey=wyh7rryfffucyk4wac10jkfqk&st=9xrhh9td&dl=0
How to change this?
All the best
Michelle
Hello everybody,
we need the buddypress members and single view to use a custom template.
But the Buddypress Content always tale te page.html template.
I tried to make a cusotn template “buddypress.html” in the template folder, but the Members page makes no use of it.
Is there a way to adress a custom template-file in the twenty-twenst-four Theme?
Like the buddyvibes-trunk theme is doing it?
Thank you a lot
Disclaimer, I am running BP 7.2.1. I have been since its release, basically. My WP version is latest, I keep up to date with that.
My large community, with no extra plugins, seems to be misbehaving, at random intervals. I can’t narrow down why.
Very rarely (but daily) users updates are deleted soon after they are made. Pending friendships are randomly accepted. And comments are applied to the wrong updates. This all started not too long ago, a couple weeks. Otherwise, this community has been running fine for years.
I’m just looking for any ideas or leads, explanations as to why. How could data be getting crossed so randomly, not affecting everything and seemingly with no pattern?
I’m no longer using BuddyPRess or bbPress. I switched to BuddyBoss and gave up on trying to get BuddyPress to work the way I wanted.
@venutius,
How about this for bbPress:
function goto_home() {
wp_redirect(get_option('siteurl'));
}
add_action('bbp_feed', 'goto_home', 1);
@whyknott, are you using bbPress or only BuddyPress. I didn’t see anything in what you posted above that would disable bbPress feeds.
Actually, for my purposes the redirect actually works better for all the disables that wp_die() which appears to result in a funny page that some browser still think is an XML page. Does anyone know of a downside in using wp_redirect() here?