Search Results for 'buddypress'
-
Search Results
-
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
Topic: Skill Sharing Marketplace
This feature would allow BuddyPress users to share, request, and trade skills within the community. Imagine a marketplace where users can offer skills (e.g., graphic design, coding, writing) and collaborate with each other on projects or simply learn something new. It fosters engagement, knowledge-sharing, and even mentorship within the community.
Hi,
I am building a new buddypress website and want to set all spam preventions before going live.
Does this honeypot code still work for buddypress register page?
// BuddyPress Honeypot function add_honeypot() { echo ''; } add_action('bp_after_signup_profile_fields','add_honeypot'); function check_honeypot() { if (!empty($_POST['system55'])) { global $bp; wp_redirect(home_url()); exit; } } add_filter('bp_core_validate_user_signup','check_honeypot');best regards,
flamurenHello 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 ScanIs “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?
Topic: Headers using HTML help!
Hi guys
I love to highlight different forums and topics on the forum list and this can be done using HTML in the title itself. The issue I’m having is that the HTML is being shown where I don’t want it (I know this is within bbPress).
This is how it looks in the forum (how I would like it to look):

This is how it looks in Activity Stream:

This is just an example – and I don’t want the HTML prefix/suffix to be shown in there – only the name/text like it is in the forum/topic itself.
Is it possible to force BuddyPress to “accept” the HTML and showcase it like bbPress does?
Anyone know if this is possible?
Hello. I’m using Buddypress 14.1.0, WordPress 6.6.2. My site is romancingrarehearts.com
And I’m using the 2024 WP theme.After using the 2015 WordPress theme for years, BuddyPress no longer worked, so I had to change the theme. The member account delete button was visible on the 2015 theme but not on the 2024 theme. In the Buddypress settings under options, I ticked the box that says Allow registered members to delete their own accounts, but to no avail. Can anyone tell me how I can fix this problem, please? Thanks!
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
Topic: Redirect Logged in users
When a users logs in they currently land in my homepage.
How can I have them redirectee to the BuddyPress Groups?
I am using the latest WordPress and BuddyPress versions, legacy theme.
Theme ised GeneratePress
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?
