Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 26 through 50 (of 3,918 total)
  • Author
    Search Results
  • #335470
    gardendarts
    Participant

    The button to update the profile field is blocked by the type box. I cannot press update.

    See screen shot https://ibb.co/jyMvngr

    timdavid01
    Participant

    You can achieve a vertical display of profile fields in BuddyPress by adding some custom CSS. Try this:

    css
    #profile-fields .field {
    display: block;
    margin-bottom: 15px; /* Adjust spacing as needed */
    }
    Add this code to your theme’s custom CSS section or the Additional CSS section in the WordPress Customizer. This should stack your profile fields vertically with some space between them.

    Have you checked if your theme might have any specific settings that affect the layout of BuddyPress fields?

    stephunique
    Participant

    I have WordPress 6.6.2 and Buddypress 14.1.0 and in the edit profile page, the options are displayed horizontally like this: https://snipboard.io/DrOLiw.jpg

    This does not look good, they do not even have a gap between them. How can I make them display vertically like a list?

    notpoppy
    Participant

    My users are being confused by our ‘register’ page as it prompts them to enter a ‘Name’ twice. It prompts them to fill in six forms as follows:

    —–

    Account Details

    Username (required)
    Email Address (required)
    Choose a Password (required)
    Confirm Password (required)

    Profile Details

    Name (required)
    Name (required)

    —–

    Should the ‘Name’ option appear twice? It seems wrong.

    I have found the option to edit this in the WordPress admin under User > Profile Fields > Signup Fields. But although I can drag the two options which are labelled ‘Name (Primary) (required) (Sign-up)’, I cannot remove either of them. How can I fix this?

    I am using BuddyPress 14.1.0 and WordPress 6.5.3.

    #334865
    Renato Alves
    Moderator

    XProfile Fields in it, but only the full_name field is getting saved, all other fields are not getting saved when signup is complete.

    Now, it is important the signup fields are registered in the proper location.

    Confirm if your signup fields are correctly grouped here: your-site.com/wp-admin/users.php?page=bp-profile-setup In the Signup Fields group.

    Pls
    Participant

    I’m trying to get the XProfile of the specified user using the API.
    My endpoint looks like this:
    https://xxxxxxxx/wp-json/buddypress/v1/xprofile/2/data/4

    As expected, it will get Fields #2 with user ID 4, which has enforced visibility and visibility level onlyme (adminsonly in the database).
    But when I used an authentication with admin privileges to get the endpoint, it returned “Sorry, the profile field value is not viewable for this user.”

    After testing,”All Members” is also invalid, only in “Everyone” API can get data properly

    The Buddypress version I am using is 14.0

    #334836
    Pratik Londhe
    Participant

    I have added the request payload ans also the response to the xprofile/fields?signup_fields_only=true endpoint, but it doesn’t seem to be appearing under this post.

    #334830
    Pratik Londhe
    Participant

    I am sending the signup API data the way it is defined in the Documentation to add XProfile Fields in it, but only the full_name field is getting saved, all other fields are not getting saved when signup is complete.
    Any idea why this might be happening?

    #334792
    ladypersonal11
    Participant

    To validate file type fields before saving to the database, ensure you are using the correct hook and validation logic. The xprofile_data_before_save hook is intended for profile data in BuddyPress, but your issue might be with the validation function itself. Verify that your validate_required_unshared_fields function is properly defined and hooked. Additionally, check that you are correctly accessing and validating the file type fields within this function. Ensure your function looks something like this:

    php
    Copy code
    function validate_required_unshared_fields($field) {
    // Add your validation logic here
    if (/* validation fails */) {
    // Handle validation failure
    }
    }
    add_action(‘xprofile_data_before_save’, ‘validate_required_unshared_fields’);
    Make sure to replace the placeholder comments with your actual validation logic.

    #334789
    sunil1988lits
    Participant

    Is there a way to validate the file type fields, before the saving to db. I am using this hook but it’s not working add_action( ‘xprofile_data_before_save’, ‘validate_required_unshared_fields’);

    #334750
    locker17
    Participant

    I want to make users able to add bullet or numeric lists to their profile page. Doesn’t matter if I chose wp user meta bio field or multiline xprofile field, both display lists in user profile as words with linebreaks (br). How can I avoid that and show it like it is saved in db?

    Same question here 3 years ago, unanswered.

    weird formatting with bulleted lists in user meta fields?

    powebdesign
    Participant

    Hello, I had this code, what it does is that certain users already enter with a subscription and can use the chat without having to pay. When updating to the latest version the code no longer works. Any idea what has changed?:
    add_filter(‘bp_get_total_member_count’,’bpfr_hide_get_total_filter’);
    function kleo_pmpro_default_level($user_id) {
    global $wpdb, $bp;

    //Change this with your field name
    $field_name= “i am”;

    //Change the field value
    $value_to_match = “woman”;

    //Membership level id
    $membership_level = 4;

    //Done editing
    $field_id = $wpdb->get_var( $wpdb->prepare( “SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s”, $field_name ) );
    if ($_POST[‘field_’.$field_id] == $value_to_match) {
    pmpro_changeMembershipLevel($membership_level, $user_id);
    }
    }

    if (is_multisite()) {
    add_action( ‘wpmu_activate_user’, ‘kleo_mu_pmpro_default_level’, 10, 4);
    } else {
    add_action(‘user_register’, ‘kleo_pmpro_default_level’);
    }

    Thanks!

    #334662
    #334560
    priyam1234
    Participant

    Can you add an image upload functionality in the profile section? To elaborate, within the profile, we can create multiple groups with custom fields such as text, textarea, etc. We need to include an image upload field in these groups.

    nkolaka
    Participant

    Hi everyone

    This code below add Age after the username in the members directory.

    /**
    * Show Xprofile Field Data After The username in The Members Directory.
    */
    function yzc_add_xprofile_field_data_after_username( $name ) {

    if ( bp_is_members_directory() ) {

    $field_data = xprofile_get_field_data( ‘Age’, bp_get_member_user_id() );

    return $name . ‘, <span class=”bp-user-age”>’ . $field_data. ‘</span>’;
    }

    return $name;

    }

    add_filter( ‘bp_member_name’, ‘yzc_add_xprofile_field_data_after_username’, 10 );

    Please I also want to include City and Country to this code. Can anyone help me modify this code to also include City and Country?

    tuckeror
    Participant

    I am using Extended Profile for a user registration form. I’d like to use the default WordPress bio field (Biographical info). I am able to add it in the Extended Profile settings (under Type -> WordPress Fields -> Biography), but there is no option to require it. I can make other fields required. How could I go about making that field required?

    WordPress 6.5.4
    BuddyPress 12.5.0

    stephunique
    Participant

    I want to be able to add a description that tells users their profile slug would use their username rather than their first or surname. Unfortunately, the username field is not editable in the Profile Fields section of the Buddypress profile like other fields are.

    Wondering if there is a different way to add the message?

    sbanner26
    Participant

    I have profile fields setup for the registration form. I’ve included a field for the user to choose which groups they’d like to join on signup. However, it doesn’t seem to be mapped(?) to the Groups I have created since the user isn’t added to the group(s) they select in the form. I’ve seen this work on other sites but not sure what I’m missing. I also can’t add them to groups in the user > extended profile either. Any ideas?

    stephunique
    Participant

    I have tried the solutions found on the internet including the one here on Buddypress Forum, and also this one: https://www.cozmoslabs.com/docs/profile-builder/add-ons/buddypress/#Hide_8220This_field_can_be_seen_by8221_notification_displayed_under_the_fields

    but they all seem to hide only the message on the registration form and not in their profile. I want to hide it everywhere.

    Anyone with a new idea?

    stephunique
    Participant

    I am testing out Buddypress Version 12.5.0 and I made a registration form with Buddypress’ profile fields as well as a third party plugin “User Registration” by WPEverest. I tested both separately and noticed that Buddypress registration form does not collect the surname of the user, only the first name, because there is no field for surnames. I made a separate text box field and named it “surname” but obviously it does not connect to actual surname field in the buddypress and wordpress back end.

    User Registration has an actual surname field and can collect the user’s surname which shows up correctly in the back end, but it displays the user’s username as the name when the person logs in. For example if a person’s name is “Jane Doe” but their username is “gelato”, in the top right corner when they log in it says “gelato” which is not good, so I can’t use this.

    So I am wondering if anyone has a way to force the Buddypress registration form to collect the surname correctly so it shows in the backend?

    Thanks

    #333892
    Venutius
    Moderator

    on my site, profile fields does not lead to anything obvious about user roles

    #333890
    angelinajaade
    Participant

    Added through WordPress Users > Profile Fields…….

    I have more menu links created the same way which include all Member Types we have and are visible to all these Member Types (all members of community), as should, with no issues.

    This specific menu link that I have issues with uses specific User Roles, where not all User Roles available are included, just three User Roles selected – and it has this issue.

    Thank you for replying.

    daveccampbell
    Participant

    is there a way to have that function executed for every user ensuring that the profile visibility fields are set properly after a new user is imported by a 3rd party tool?

    i just don’t have much wp-programming experience – but have full access to the back-end, so could run a php program from the command-line if necessary.

    i could also come up with a list of the user_ids to run that function against, and of course would be logged in with admin access all the while.

    my alternative is to save the Extended Profile manually in the UI for 950+ users. not fun.

    daveccampbell
    Participant

    i’d like to migrate 950 users from a bespoke system to BuddyPress.
    i can easily create a CSV file with the user information, including fields that i can create in the Extended Profile.

    are there suggestions on how to import that CSV file, and ensure that the default Profile Visibility settings are set during the import for those NEW users?

    one plug-in that i tried had problems with the Profile Visibility piece.

Viewing 25 results - 26 through 50 (of 3,918 total)
Skip to toolbar