When you add users in the admin the xprofile fields are not present for you to add info. I don’t think there is a way around this unless there is some filter to force all xprofile fields to be shown even if they are empty.
When a user signs up on the front they have the fields shown to fill in. If they do not fill these in then they still wont be shown. It’s worth a possible trac enhancement ticket to include the xprofile fields in the user profile creation step in the WP admin. But even then if you do not fill in each field they will not be shown on a profile
thanks for taking the time looking at my problem mate. No, indeed it’s not broken but I want to have the unfilled fields present in the user profile if they want to edit it later on. Also, what do you think about users created from dashboard but still only have the name field displayed in their public profile? While this is also the only existing field which this particular user can edit?
Please hover on the 1st and 2nd user to see the difference. The 1st one was created from the dashboard “add user” while the second one had registered from the registration form. I can’t understand why those created from dashboard don’t have the custom fields in their profiles???
Here is the story Paul. I run a normal buddypress install on my website http://tinyurl.com/cuq6axy. If you go to the 2nd menu item in the main top nav (sorry it’s in French), you’ll see a list of users. The admin of the site did add a bunch of these users from the WP dashboard. But when a user is published in this section from buddypress, it doesn’t display the extra custom fields created nor does it carry the unfilled fields (for later editing) from the registration form which is here http://tinyurl.com/9aqtbez. How can I synchronize all the fields and make them appear on these users profiles or when they edit their profile they still have the fields which were not mandatory but not filled still appear?
Does this explanation makes sense to you or anyone there?
What profile field group are the new profile fields in? Did you create a new profile group, or are the new fields in the default profile group?
I set some of the profile fields to default visibility to “logged in users”, but when you go to the register page, it shows by all fields “This field can be seen by: Anyone” (even the fields that I set to default to other settings).
Has anyone else been having this issue?
No, the custom profile fields don’t appear in the user’s profile page if they want to edit and add the extra info. That’s the issue. If I create a user from the front end, I have all the filled up fields but if created from dashboard from admin, I only have the name and this is the only field that I can see.
I’m also experimenting another issue here. When a user creates his profile and doesn’t enter info for the non mandatory fields, he doesn’t have the blank fields again in his profile if he wants to fill them later. Only the fields which are marked “required” appear (those he has filled up). How can all the custom fields be present in his profile for later editing???
A real headache right now and if you can help, this will be a real heal for my sore brain
The custom profile fields created in the backend are not showing up in the user’s edit profile page when they are not filled up. Even if the user hasn’t filled up a field which isn’t mandatory, I want to let the user have the possibility to later fill it if they decide, from their edit profile page. How can this is achieved?
If you’ve added more BuddyPress profile fields, then it shouldn’t matter *how* a user account was created — they should appear for editing in the user’s profile.
It seems that adding new users from adding is becoming a headache. All users created from admin panel don’t have the custom fields I created on the registration form!!! All I can see is the name and this is the only editable field available so far.
So, my question is; how can I have users added from admin panel and when they log in and edit their profile, they have all the existing fields which they can fill out easily?
Hello,
For two days I’ve been searching for a solution but can’t get it done. I really need for my network Name, Middle Name and Last name and now there are many ppl with the same Name and I can’t find a way to combine all the profile fields so I can display the full name site wide. I tried to write a code but programming
= me. I’m sure a developer can write a snippet to put in in functions.php and I would really appreciate it if someone can help with this issue.
I’m using the latest version of Buddypress and WordPress.
Kind regards
I’m using BP custom profile fields to make a directory of professionals. I use a multiline text box for a description field. Now I want to limit the amount of characters one can type in this field. It would be nice if this can be done the same way as Gravity Forms does it. But if that is not possible or too complicated, I will settle for a second best option i.e. limiting the amount of characters that is written to the database with some simple substring / length php processing on the data before it is submitted to the database.
Can anyone shed some light on posible ways to do this? Are there any BP hooks or functions I can use to accomplish this?
Another question: is there any filtering on the profile fields to prevent sql injection?
Holy shitake mushrooms…I’m an idiot. The user I’m working with didn’t have any values in any of the fields. Please ignore. Keep moving. Nothing to see here.
btw, if i go to /members/username i can see their profile (with no imported fields just username and avatar
)
hi guys,
i have a brand new installation WPMU on my mamp system. i dumped in WP+BB sql base from a website i should restyle. i dumped:
• wp_bp_xprofile_data
• wp_bp_xprofile_fields
• wp_bp_xprofile_groups
• wp_bp_xprofile_meta
• wp_usermeta
• wp_users
here they come the troubles:
– BACKEND: i have all my users base data, but in Network/Users/Profile Fields i cannot see fields nor groups. actually i can add new fields groups (and they store in wp_bp_xprofile_groups) ma they neither then show…
– FRONTEND: in my members list page i have only the first user i created once i installed WP. no new users right here…
where do i go wrong?
ty!
Thanks
1. AMU is a plug-in called Add Multiple Users which https://wordpress.org/extend/plugins/add-multiple-users/ It enables a CSV import of users. [Sorry for not being clearer in the OP].
2. Users added manually – ie using the WordPress new user screen – and users Registering using the front end – work fine in BuddyPress – [both those entered before and after doing the CSV import with AMU) ie the user has a profile page and can edit it.
3. All the users imported using AMU have all fields complete including first, last, nick and display names. The only empty fields are www, jabber and AIM.
4. Users from both the CSV import and the manual user added from the Users_Add_New_Screen screen are added to a BP groups using @boonebgorges‘ Buddy Press Group Management plug in. All appear in the group member list (and all members lists) but the ones bulk entered using CSV file do not have profiles.
I’m going to try doing another import and see if I get the same result.
We actually have a pretty limited number of users, who are paired as mentees and mentors. We want each mentor/mentee to be able to select their corresponding mentee/mentor from the list to make sure the spelling is the same. We also want to show linked pairs in another section, which is another headache all to itself.
The first name and last name are stored as xprofile fields because I needed the privacy and user controls that Buddypress provides. Role is also stored as an xprofile field because we’re using our own defined roles (mentor and mentee).
Looks like I’m going to have to get deep into the SQL to do this – was just hoping there was something easy I’d missed!
Anonymous User 96400Inactive
What do you need the profile fields for? Seems like WP_User_Query would do the job perfectly.
https://codex.wordpress.org/Class_Reference/WP_User_Query.
If role is stored as an xprofile field, you might want to look at BP_User_Query. Haven’t used that class yet, but it might do what you want.
If it’s just first and last names for your drop down – you can fetch those from the default WordPress fields / calls.
Is ‘role’ stored as an xprofile field or are you mapping across to WordPress roles? If the latter, you should also be able to achieve with the built-in WP functions.
If you want to grab multiple xprofile fields from all members, the best way at the moment to accomplish this is to use a direct DB query.
I was going to recommend the members loop, but you need specific xprofile fields.
I’m trying to find a function that will return an array of certain xprofile fields from all members, similar to how get_users() works for WordPress user fields. Ideally, I’d also like to select only those members who are attached to a certain role.
My end goal is to populate a drop-down select menu with the first and last names of all members (from a role).
It seems like this should be a built in function, but perhaps not?
Might be a silly question… How do you change the order that plugins hook into the members header file (single) to display things like “active 3 minutes ago” and “verified member” (BP Verified) and profile progression” and Rank, and QA Rep etc… It seems there is no way to set the order that some plugins add content to your members header file
Hi @ubernaut
I have installed the plugin and it happens the same: it appears to have the option but when I tested it the policy is not enforced and even logged out users can see the private fields on my site.