Did you put the profile fields in the ‘Base (Primary)’ group?
By default, only those fields appear on Register.
Did you try switching to a WP theme like 2015 to determine if the issue is in your theme?
Hi there, I have recently installed version 2.3.3
I’ve created my profile fields in Users – Profile Fields setting.
Then under Settings – BuddyPress I have pointed the Register and Activate pages to the pages I have created (I created these pages under Pages – Add New, as this version does not allow me to create pages in the BuddyPress pages setting, I only have the view option)
When I view my Register page I dont see any of the profile fields I have created, I only see: Username and Email.
Am I missing something? I had BuddyPress installed previously on another hosting site and it was working perfectly.
Thanks.
Found it. The internet is written in ink. 😛
http://web-archive-me.com/page/1845294/2013-04-09/http://modemlooper.me/allow-youtube-embed-in-buddypress-profile-fields/
While you are here… It seems to be working great. It’s a bit old. Do you think it will cause any security or other issues with the current version of BP?
Thanks again.
Hi,
I need to make a profile field which allows my swedish users to pick their city. How can I make a custom list with swedish cities?
If this is possible, I wonder if you also can make a similar list for county/states?
Thank you
You know what! Hahaha I didnt know you could scroll the code-box. So, I saw the word ‘country when I posted it into the buddypress editor. Silly me…
But unfortunately…it didnt work There are no delete buttons to the profile fields.
Don’t replace the code.
Use this function, and change ‘Country’ to the name you gave the field.
function naisai_make_field_delete() {
global $wpdb;
$table = $wpdb->prefix . "bp_xprofile_fields";
$wpdb->query( "UPDATE $table SET can_delete = 1 WHERE name = 'Country'" );
}
add_action( 'bp_ready', 'naisai_make_field_delete' );
Then visit your site’s home page.
Then go to that field in wp-admin and you should see a Delete link.
If you have more than one field you want to Delete, then change the name in the function and repeat the process.
When you are done – remove the function.
Then, if you want, get the code from the gist and run again.
Thank you so much!
You need to find the row(s) in the bp_xprofile_fields table and for each row, change the can_delete field value to 1
But what if I have already deleted the code? Should I then replace it and overwrite according to your corrections?
@ericks89,
There is a way, if you use BBPress Signature. 😉 Modifying bbp_get_reply_content filter.
Here an example fetching 3 xprofile fields called Signature, Industry and Type. Change it to your need. Code goes into bp-custom.php or child theme functions.php
function my_bbp_reply_content_append_user_signature( $content = '', $reply_id = 0, $args = array() ) {
// Default arguments
$defaults = array(
'separator' => '<hr />',
'before' => '<div class="bbp-reply-signature">',
'after' => '</div>'
);
$r = wp_parse_args( $args, $defaults );
extract( $r );
// Verify topic id, get author id and potential signature
$reply_id = bbp_get_reply_id ( $reply_id );
$user_id = bbp_get_reply_author_id( $reply_id );
// Get fields data. Caution: name is case sensitive.
if(function_exists('bbpress') ) {
$signature = xprofile_get_field_data( 'Signature', $user_id );
$wowi = '<br>'. xprofile_get_field_data( 'Service', $user_id );
$wowt = '<br>'. xprofile_get_field_data( 'Type', $user_id );
}
else {
$signature = bbp_get_user_signature ( $user_id );
}
// If signature exists, adjust the content accordingly
if ( !empty( $signature ) )
$content = $content . $separator . $before . $signature . $wowi . $wowt . $after;
return apply_filters( 'my_bbp_reply_content_append_signature', $content, $reply_id, $separator );
}
if ( !is_admin() ) {
// remove the original BBPress filter
remove_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_user_signature', 1, 2 );
// add our custom filter
add_filter( 'bbp_get_reply_content', 'my_bbp_reply_content_append_user_signature', 1, 2 );
}
May this help. 😉
Wordpress version: 4.3
Buddypress version: 2.3.3
Is there any way to designate a user profile field for a forum signature? While searching for support at wordpress.org I found a topic saying as of version 1.4 you can designate profile fields for the signature field, however since 1.4 was quite awhile ago I just assume it’s changed.
Is there any way to create a user profile field to display as a forum signature? I’m using BBPress.
Thanks!
You should remove that code as soon the field is created.
If you edit the field name, then a new field will be created – if you don’t remove the code.
They dont have a delete button and now I cannot remove any of the fields.
That is because 'can_delete' => false, should be 'can_delete' => true,.
I have corrected the gist.
To delete the fields you already have, you can use a database tool like phpmyadmin.
You need to find the row(s) in the bp_xprofile_fields table and for each row, change the can_delete field value to 1. Then a ‘Delete’ will appear for that field in wp-admin.
Hi!
I needed a country list for my sign-up form. I found this code on the net that fixed the problem, it created a “country field”. This meaning under User/ Profile field/Primary field . Once i edited the “country field” a new identical field showed up. They dont have a delete button and now I cannot remove any of the fields.
I have tried:
(1) Deleting the code
(2) Deleting buddypress pluging incl. files. And then reInstall the plugin.
Thank you for any feedback. I know nothing about codes.
Hi all,
This may be an easy question to answer (I’m hopeful), but I’ve been unable to find a solution to my problem so far. I’m currently using WordPress 4.3 with BuddyPress 2.3.2.1 installed on my server. I have Extended Profiles enabled, and am using the plugin BuddyPress xProfiles ACL to manage custom extended profile groups assigned by user role.
I have two roles that I am working with primarily – ‘students’ and ‘institutions’. Each of these roles have their own unique group of profile fields, some of which have the same name (e.g., each role has an ‘Address’ extended profile field). Within the bp_members loop, I am usually able to obtain a given user’s extended profile data by using the following function:
$value = xprofile_get_field_data($field, $user_id);
where $field is the name of the field I want to retrieve a value from in all lowercase letters (e.g., ‘Address’ would be ‘address’). I have run into an issue when trying to get field data from a profile field that has the same name for two separate user role groups. Using the same field name for both user roles will only return results for one of the roles (the role where that profile field was first created). I’m assuming the extended profile field for one of the user roles is being stored in the database with a slightly modified name, but I am unsure of how to retrieve this name.
Is there a way to request all xprofile field names for a given group of users (or even an individual user)? If I can obtain a list of the xprofile field names – or more specifically, a list of strings I could pass to the xprofile_get_field_data function – I should be able to get all the data I am looking for.
If you could please help me solve this problem, it would be greatly appreciated.
Thanks a lot,
Cam
Hello
I want to add a Terms & Conditions checkbox on buddypress signup form. I tried it using: dashboard/users/profile fields ( https://buddypress.org/support/topic/terms-of-agreement-checkbox-for-registration/ ) but I can’t see any changes when I add a new field (It doesn’t matter the kind of field). What am I doing wrong? Buddypress version 2.3.2.1. Theme Mediso.
Thanks,
How about all other fields.
Your best bet is to not nibble at the problem.
Write a script to migrate all the WP profile fields & user data into BP xprofile fields & user data.
I have existing site with 500 plus users and already have WP profile fields created a while ago with simple fields like address, city, state and Zip and custom fields like year joined and speciality.
I am planning on deploying Buddypress to add functionality to the site. How can sync all these fields with XProfiles fields
I know https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ help you create Xprofile fields and https://wordpress.org/plugins/bp-xprofile-wp-user-sync/ help you sync first and last name.
How about all other fields. I need members to be able to message each other, create events, map each other by location and events by location and finally create groups. Do I need BuddyPress or alternate that work with WP Profiles will work.
Thanks/Shaunik
In the Dashbord, under users, go to profile fields, go to Add New Field, and in a box on the right there should be a requirement box, just switch it from Not Required to Required.
@katiemeeks
someone posted a similar question 4 days ago ( https://buddypress.org/support/topic/i-want-to-nobody-can-not-change-own-gender/ )
someone else answered to take a look at http://buddydev.com/plugins/bp-non-editable-profile-fields/
I have not used this yet – but it sounds perfect for this kind of thing.
Is there a way to remove the edit from the sub navigation for users
or
remove the capabilities to edit their extended profile information? I only want the admin to be able to edit these fields. I want the user to be able to see them.
On a single install: danshboard > users > profile fields( your-site.com/wp-admin/users.php?page=bp-profile-setup).
Base(primary)tab, then use Edit button.
Here an example for profile field lenght with some comments.
function bpfr_custom_textfield_length() {
//Check if user is logged in & if xprofile component is activated
if ( is_user_logged_in() && bp_is_active( 'xprofile' ) ) :
$my_custom_textfield = bp_get_member_profile_data( 'field=Brief Biography&user_id='.bp_get_member_user_id() );
/*
* The length = number of characters, not words.
* Set the number of caracters to show.
* The 3 dots are the appended text ending the excerpt.
* Don't remove the quotes if you change this
* BuddyPress 2.1 will add new class and id for custom fields.
* The span can be omited to style this part. See ticket #5741
*/
if ( strlen($my_custom_textfield) > 20) : //adjust to your need
$my_custom_textfield = substr($my_custom_textfield, 20).'...'; //adjust to your need
endif;
// uncomment the following line to get a span around the displayed field content
// echo '<span class="short-custom">'. $my_custom_textfield; .'</span>';
// comment the following line if you use the span
echo $my_custom_textfield;
endif; // is_user_logged_in
}
add_action( 'bp_directory_members_item', 'bpfr_custom_textfield_length' );
Ticket #5741
Just like the check on the topic title, how to set a max length for group name, group description, message subject, message content, what’s new, username, password and/or even other extended profile fields?
coz now long name completely breaks the page layout, especially in activity notice “%s created a group <very long group name>”.
I would GUESS that you could edit that plugin to add in the code as mentioned above https://buddypress.org/support/topic/how-users-can-link-to-their-profile/
Or ask the plugin author for clarification.
I stopped using that plugin when they added the extra security stuff for strong passwords that broke things for me.. however the plugin’s support page is pretty active, and given that he/she has options for redirecting users after login based on role – there may be an easy way to add such functionality to the plugin by asking the plugin author.
There is a bit of info with some of the functions here ->https://codex.buddypress.org/themes/members-navigation-menus/
I see others are asking about bp xprofile fields and such within the them my login support forum,
( wordpress.org/support/plugin/theme-my-login )
so hopefully this plugin author will add more and more BP options – I enjoyed using that plugin some time ago – hope it continues to mature.