hey guys..
my standard (most recent updated WP/BP install) doesnt have a link to the @username when @mention on the profile field of a user.
you guys have any ideas how to enable @mention inside buddypress profile fields
Hi,
I would like to add some users to groups according to their profile fields selection. For example, in the users profile there’s a “city” field and the user select “london”, so that user should be added to the group called “london”. How can I do that?
I checked a couple of plugins but are old or they don’t do what I need:
BuddyPress Group-O-Matic
https://wordpress.org/plugins/buddypress-auto-group-join/
Thanks!
What does profile filters mean?
Profile fields ?
If so, perhaps a profile fields search plugin is what you want.
Hi guys 🙂
My users have many custom fields in their profile.
I’m trying to create a member page, with different loops, because I need to split them in different groups with different criteria.
I’m using the my_custom_ids function, but I’m getting crazy…
<?php if ( bp_has_members( my_custom_ids( 'Nome', 'testB' ) ) ) : ?>
is working. The loop displays only one user, named “testB”
<?php if ( bp_has_members( my_custom_ids( 'Nickname', 'web9' ) ) ) : ?>
is working. The loop displays only one user, with the nickname “web9”
<?php if ( bp_has_members( my_custom_ids( ‘Role’, ‘iscritto’ ) ) ) : ?>
is NOT working. Also Administrators are displayed.
This is not the only problem. It happens also with other fields, but I can’t understand why…
Hi,
Is there a way to hide the rich text editor toolbar in a multi-line text area field based on the users role.
I don’t want to have to create separate fields for each user role.
Thank you
Hi Ben,
How did you get on with this? I’ve been playing with profile fields and I’ve come up with a solution to this, however there is a bug in BP which prevents it from working:
https://buddypress.trac.wordpress.org/ticket/8082#ticket
Also, in doing this I realised that it would be simpler to add this as a feature to the existing datebox that comes with BP, it already has an option to display the elapsed time and it’s not too difficult to add another option for Age:
https://buddypress.trac.wordpress.org/ticket/8083#ticket
Hi there,
In Users>>Profile Fields there is the default Base profile Field Group. The fields are included in the Registration form inputs, if you make any of these required the user can’t sign up unless they fill them out.
You can create other field groups, but the fields on these are not included in the registration page and would need to be filled out after registration.
At the front end, site users viewing the page sitename.com/members/username/profile, There user can edit these fields by accessing the age sitename.com/members/username/edit.
As an admin you can view these details by going to the Users page in admin, for each user there is an Extended link which allows you to view and edit the users Extended Profile (xProfile).
When you are editing the profile field there’s a setting to Autolink the profile field, this should include it in the Members search.
Well one option would be to set up a parental contact as mandatory profile fields, then run a reminder plugin that gets your scouts to enter those details before they can continue to the site. That’s the easy part.
what you would do would be to trigger a function on the messages_message_before_save action, this would return to your function the message object of every message before it got saved and processed.
You can get the recipients array from $message_info->recipients and the person sending the message is get_current_user_id();
You’d want to check the role relationship and if it’s Scout – Scout Leader then you would look up the profile field data using the function xprofile_get_field( $field_id, $user_id, true );
So you could put the parental contacts into profile fields and then run a filter on all outgoing email to check the role relationship and copy in the parental contact as appropriate?
Thanks for your suggestions @venutius. With these the only options I’m going to wait for BuddyDev to update a workaround into BuddyPress Member Types Pro plugin (he’s very proactive, and says it’s now in queue).
Hopefully Nouveau and future BP templates will make conditionally hidden (but required) xProfile fields inert in this state. These fields are so important to augmenting registration on BP sites, and so hopefully it gets baked into the code (instead of having to find workarounds).
I appreciate your help!
Sam
Yep tht function works for the main WordPress signup fields, not the extended profile fields. However, thinking about it what this would do would make all those fields options, so why don’t you make all the fiedls optional in your settings, then you would not get the error, obviously it means making fields you want filling out optional but the way Nouveau works there’s not really an alternative if you are going to hide them for some member types.
The alternative would be to create a multi-stage signup form where the first page takes in the basic signup information and member type then the second page displays the extended profile info specific to the member type.
BP Better Registration splits the form into sections, I wonder if that could be used to create such a signup form?
See my response in https://buddypress.org/support/topic/bypass-email-requirement-2/ it includes a function to remove the required setting for profile fields in BP Nouveau, I think it will help.
Any solution to this? I also need images to be allowed in xprofile text fields.
On BP Legacy and Noveau, the fields to the left under View Profile – Base are whited-out. I can see that there are descriptors, and if I highlight, I can read them, but otherwise, I cannot. Does this have something to do with my theme (Hestia) or is there a way I can change the text color? The details to the right are readable in black text, so it’s weird the stuff on the left isn’t. To clarify, I have no add-ons for BP.
I guess one option would be to use a text widget to display the profile fields using shortcodes such as are provided with BP Profile Shortcodes Extra. Then you’d just need to hide these from displaying in the page content which could be a simple case of some CSS?
Thanks Venutius,
I am slightly closer to what I want to achieve. There is something slightly odd about the way it appears on the front end using those hooks: before each ‘block’ of fields (i.e. Base, Profile, extended) it seems my_function is called once, but it is not in a loop of any sort.
Is there a way to get it to call my_function say.. before the Base Fields?
I think you’d have to write a custom profile field which retained the date of birth on edit, but displayed the age when viewed. As a first option I’d ask the developers of the few xprofile custom fields plugins if they’d consider adding it as an option.
I added a Number type field and a Phone Number type field on profile fields.
The number type fields are not displayed on a profile edit page, but I can input values on admin pages and see it on a profile view page.
How do i fix this problem? Thank You.


I tried 2 environments.
1. localhost
nginx
PHP 7.2.9
WordPress version 5.0.4
buddy press Version 4.2.0
plugins Classic Editor & BuddyPress only
theme bp-default
2. AWS (Amazon Linux)
Bitnami WordPress 4.9.10 (multi sites)
buddy press Version 4.2.0
PHP 7.0.31
theme bp-default
Thanks a lot for that Venutius, i did what you asked and tried clicking in various places of the member’s page but i am not seeing any table which has a class or says ‘profile fields’. If i am not mistaken the fields should be listed right underneath the member’s name and i tried there as well as other parts of the page but didn’t see it.
So obviously they are not being printed.
Ah sorry, well listen carefully becuase I’m going to tell you about a very important diagnostic tool for your site. Take time to get to know it as it’s incredibly useful.
Right click on the page where you expect the profile fields to be displayed and you will see a bunch of options, one of them will be ‘Inspect’ or ‘inspect Element’ click on this.
This takes you to your browsers diagnostics, opened in the inspect html section. on the left of this content you will see the html structure of the page to are viewing, at the position of the element you wanted to inspect.
Take time to scroll around this area and you will see the various content areas for your page. Notice the elements are typically collapsed, there’s a triangle pointing right to show the element is collapsed, click on this and the element opens up and the triangle points down.
You should be able to fins a <table> on the page with a class of ‘profile-fields’, this is the table that holds your profile field data, inspect this and see if the profile fields you created are there.
Notice when you click on an element the browser diagnostics will show you the CSS that’s being applied to the elements and what files have set it. Take some time to get used to this incredibly powerful tool. A key feature is that with it you can set new CSS for screen elements on the fly, it won’t be saved and is a great way of seeing the impact of css changes you are looking to make without pushing it out site wide.
One issue I came across recently was the theme was hiding the user profile fields by printing them with the colour white with a white background. So my first suggestion would be to switch themes to a default theme such as 2017.
Have you done any customisations that could affect this?
if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) :
do_action( 'bp_before_directory_members_list' );
while ( bp_members() ) : bp_the_member();
// the loop content goes here
endwhile;
do_action( 'bp_after_directory_members_list' );
bp_member_hidden_fields();
else:
// and then the were none
endif;
Let’s say we have a simple members loop code just like the one above. And let’s say that all of our members have this xprofile field named “Lucky Number” filled accordingly.
Can we sort out the loop output so it displays members with highest “Lucky Number” first?
Thank you.
Helloooo there BuddyPress! 🙂 🙂
I am new to BuddyPress and I am so excited to learn and use it.
Website: http://ceefworld.org/ – In development, it is not live yet.
Theme: Charity Is Hope: (https://themeforest.net/item/hope-nonprofit-charity-donations/18634753?s_rank=3)
WordPress version: 5.1.1
BuddyPress version: 4.2.0
I have installed BuddyPress and I cannot see any of the default fields on the Registration page or when a person is logged in I don’t see the defaults fields there either, where the can edit their profile or anything.
So, I guess what am I doing wrong? I set-up all settings I wanted but still don’t see them on the front end. What do I need to do?
Thank you for your support. I truly appreciate it,
Christine 🙂
thanks @venutius, just so folks are clear (it took me awhile to unravel how it works) the blog-author-profile-for-buddypress plugin creates a Widget you can place in a widget area – my theme has an ‘after post widget’ area
author widget pulls extended profile data fields. nice.
Hello,
I am working on one of my project with buddypress, but when user goes to thier profile it will show his extended profile fields data but when user clink on edit tab from front end it will not show any option to edit the profile from front end.
How can I give access to user to edit their profiles from front end instead of going to backend.
Please help me for this, I am looking for the solution but didin’t find anything for this
Thanks in advance