Skip to:

Search Results for 'profile fields'

Viewing 25 results - 1 through 25 (of 4,981 total)
  • Author
    Search Results
  • #266577
    Profile photo of rikardo85rikardo85


    I’m a newbie to buddypress and have a couple of hopefully simple questions before I implement to a website.

    – How can I allow profiles to be visible to all types of users? I.e users do not have to be logged into see profiles?

    – Can I add repeater fields to the registration form process? If not can I use the advanced custom fields (ACF) plugin?

    Any help much appreciated.


    Profile photo of weizenhuhnweizenhuhn

    I just got a solution. I analysed the function xprofile_get_field_data itself. I could figure out, that it just can’t catch the user_input of the field.

    But the following workaround $value = $user_fields[$field_id]['value']; gives me back the userinput

    Profile photo of axew3axew3

    In the hope that the topic is inserted into the correct forum (i’m first time here and i’m little confused to be honest, in case so, please change this topic node location) …
    I’m checking the buddypress code into class-bp-xprofile-field.php because i need profile fields data when profile fields are updated by user, and i see three actions about profile fields update (there are more, but i need these) which are:
    xprofile_group_after_save, xprofile_field_after_save and xprofile_updated_profile. This last one is the only one that work. And i’ll go using this so, but asking to myself if there is any reason why, the other two instead fails?

    function action_xprofile_updated_profile( $user_id, $posted_field_ids, $errors, $old_values, $new_values ) { 
        // work fine
    // add the action 
    add_action( 'xprofile_updated_profile', 'action_xprofile_updated_profile', 10, 5 ); 
        // define the xprofile_group_after_save callback 
        function action_xprofile_group_after_save( $array ) { 
        // not work
        // add the action 
        add_action( 'xprofile_group_after_save', 'action_xprofile_group_after_save', 10, 1 ); 
        // define the xprofile_field_after_save callback 
        function action_xprofile_field_after_save( $array ) { 
         // not work
        // add the action 
        add_action( 'xprofile_field_after_save', 'action_xprofile_field_after_save', 10, 1 );
    Profile photo of artemprartempr

    i ve add a new “City” field as a dropdown select box to the user profile. But for 300 cities it is ridiculous to add 300 options or even more. So i defined js function which takes cities from table and creates dropdown menu of cities on the fly. Everything works fine except when i enter the profile and try to change city to another city, i get an error (because these cities is not located in the xprofile_fields table but created on the fly by js fucntion). So what i should do in that case?

    Profile photo of coolhuntcoolhunt
    <table class="profile-fields">
    					<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    						<?php if ( bp_field_has_data() ) : ?>
    							<tr<?php bp_field_css_class(); ?>>
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>

    I found this at bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php

    I have no idea about HTML.. any tips?

    Profile photo of coolhuntcoolhunt

    Hey Guys,

    Im on the newest install of WP & BP and im using the twenty seventeen theme.

    The Problem:
    The members profile – profile fields are displayed in a TWO COLUMN table. However, I would like to have this displayed so that its just a SINGLE COLUMN.

    The profile “field names” are on the left and the user entries to that “field” are on the right. – How can I get it so thats its just a single columm?

    Where do I need to start modifying this?

    Profile photo of virre131Victor

    I’m trying to get HyperDB to work width Buddypress.

    I’m trying to move bp_activity, bp_activity_meta, bp_notifications, notifications_meta, xprofile_data, xprofile_fields, bp_xprofile_groups, bp_xprofile_meta into there own ‘Buddypress’ database. But it does not work.

    I’m getting this error: Undefined variable: server

    Here is my current config:

        'host'     => DB_HOST,
        'user'     => DB_USER,
        'password' => DB_PASSWORD,
        'name'     => 'DATABASE-NAME',
        'write'    => 1,
        'dataset'  => 'bpress',
     else if(preg_match("/bp_activity/", $wpdb->table)){
        return 'bpress';

    Witch preg_match should I use?

    Anyone that is using HyperDB with Byddypress?

    Profile photo of mortspudmortspud

    I have an xprofile field called “Biography” which is a multi-line text area.

    In profile-loop.php I am trying to output the content of this xprofile field in a certain place.
    Usually this does the trick for all the other xprofile fields:
    bp_profile_field_data( 'field=Biography' );
    However when this is outputted, it loses all it’s formatting from the rich text editor that the member enters on their edit.php page.

    I have also tried to mimic the native BP profile-loop.php code:

    while ( bp_profile_fields() ) : bp_the_profile_field();
    if (bp_get_the_profile_field_id() == 37) :

    but this hasn’t worked either.

    Can someone please enlighten me on how to output this multi-line text area while keeping its formatting?

    Many thanks.

    Profile photo of dave8528dave8528


    I’m on WP version 4.7.4 and BP 2.8.2
    I like to add and modify profile fields from admin area if possible. Any tips will greatly be appreciated.

    Profile photo of jeffersonbrunheirajeffersonbrunheira


    After instalation plugin, show error message:

    [30-May-2017 16:02:22 UTC] Erro de banco de dados do WordPress Table ‘portal.wp_2_bp_xprofile_fields’ doesn’t exist para a consulta SELECT name, parent_id, type type FROM wp_2_bp_xprofile_fields feita por require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/woffice_2.4.1/woffice/page.php’), get_footer, locate_template, load_template, require_once(‘/themes/woffice_2.4.1/woffice/footer.php’), wp_footer, do_action(‘wp_footer’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_admin_bar_render, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Woffice_Setup->toolbar_admin_menu, woffice_get_settings_option, fw_get_db_settings_option, FW_Db_Options_Model->get, FW_Db_Options_Model_Settings->get_options, _FW_Component_Theme->get_settings_options, _FW_Component_Theme->get_options, fw_get_variables_from_file, require(‘/themes/woffice_2.4.1/woffice/framework-customizations/theme/options/settings.php’), _FW_Component_Theme->get_options, fw_get_variables_from_file, require(‘/themes/woffice_2.4.1/woffice/framework-customizations/theme/options/buddypress.php’)

    Help me, please?


    Profile photo of JmantisJmantis


    I followed this guide: and added social profiles’ icons to members’ profiles. But how can we also add it to members’ loop on Members directory page? I found that using this code

    <?php echo bp_member_profile_data('field=Field Name'); ?>

    you can insert profile fields, but that simply inserts whatever user put inside text field. How to make it an icon such as Facebook and Twitter, like we did inside members profile?

    Profile photo of gebkngebkn


    My site has different user types/roles that each have different profile fields they need to fill out when registering. I have handled this by hiding/showing fields on the registration page with jQuery based on the chosen user type. The problem being that this solution is hard to maintain when adding/removing fields, so I am looking for a better solution.
    I want to use the different xprofile groups and connect each group to each of the user types, which I have managed. The problem is I could not show more than the default group on the registration page (I have searched and tried a bunch of solutions for this to no avail).
    I think I will have to make users only fill in username+password+email and then redirect them to a form where they fill out the user type, followed by the profile fields in the group that corresponds to the chosen type.
    Any tips on how to do this? I couldn’t find any plugins that handles this unfortunately.

    I hope I explained my problem properly

    Profile photo of linkreflinkref


    I’m trying to display all the group fields in the registeration form. I.E : not only the base group field.

    I’ve found those two topics :
    But it seems to be outdated over 6 years…

    Could someone bring me the solution, maybe after 6 years there is a feature i dont even know…

    Thanks you for your time.

    Profile photo of lordramlordram


    I am new to buddypress and I am trying to build a custom plugin on top of buddypress. The only problem I am facing is that I am finding the proper documentation required to do this.

    One of the problems I am facing is that I want to query users based on the extended profile fields data. Is there a buddypress function or class for this?

    Will I need to write some code of my own to interact with the bp database tables using the $wpdb class?

    Profile photo of metalheadmetalhead

    Read this conversation in its entirety.

    The plugin author was kind enough to guide me through the process of making that work. If you follow those instructions, your users will be able to upload their profile photo during registration.

    Although this method works, it causes a slight problem: The users won’t be able to update their photo in the future, because the default Buddypress “Change avatar” function refers to a different file, or location, than the xprofile custom fields type location.

    If you find a way to fix that problem, please let me know.

    Profile photo of joelworshamjoelworsham

    Under Manage Signups, some HTML is showing in the profile fields. How do I prevent this?

    See screenshot:

    Profile photo of alancralancr

    I installed buddypress captcha plugin and set up a question/response via my dashboard. Due to a different problem I then deleted the captcha plugin but on my buddypress registration page the captcha question/response field is still there! I honestly cant remember where in my dashboard this field is located. I went into users custom fields and my primary base field only has the profile title. I am going round in circles trying to find where to delete the captcha response field. It was listed somewhere on my dashboard and now i cant find it. Please help!!!!! Going nutz.

    Profile photo of Henry WrightHenry Wright

    You can get the value of an xProfile field in BuddyPress quite easily but you will need to use code. Take a look at this article to get started:

    Displaying Extended Profile Fields on Member Profiles

    Profile photo of manm0untainmanm0untain

    Extended Buddypress profile fields demands an additional name / username field. This is the case whether you are using Buddypress Usernames Only plugin or not.

    This is only relevant if you require extended profile fields. If you don’t, then go into Buddypress settings and turn off extended profiles. That will remove the requirement for a second name on the registration / profile area.

    If you want to use extended profile fields on BP, but you don’t want the second username / name field uglying up your registration flow, you can do the following.

    You have to be careful with this, because if you hack it, remove the second required name / username field, or any of a dozen other solutions I’ve found – the registration will break down. You will get 500 errors, missing confirmation emails etc.

    The solution I used for this is as follows.

    1. Assuming you just want to use a singular Username for your site – install the Buddypress Usernames Only plugin. It says the plugin is old but it is still working as of WP version 4.7.4 (for me at least). This deals with the display / access of various username / name / fullname / nickname issues throughout the WP / Buddypress install.

    2. Next you’ll need to hide the extra name / username field on the registration area, and the BP profile area. Stick this CSS into your theme custom CSS under Appearance > Customize:

    #profile-edit-form .field_1 { display: none;}
    #signup_form .field_1 { display: none;}

    (I have seen a 3rd line of CSS on other solutions – #register-page p { display: none;} – all this did for me was to hide the confirmation message after the user registers. You probably want that so I’d leave that line out).

    3. The fields should now be hidden, but the system still requires that information to process properly. So next create a file in notepad and save it as name_remove.js

    In that file put the following javascript:

    document.getElementById("signup_username").onchange = function() {myFunction()};
    function myFunction() {
     var x = document.getElementById("signup_username");
    document.getElementById("field_1") .value = x.value

    Save that file and upload it to your theme folder (same folder as functions.php etc). This javascript automatically populates the hidden field with the username, so the system does not complain or fall over.

    4. Finally you need WordPress to pick this javascript file up. You can do that with a function, using file enqueing. Copy and paste this function into your themes functions.php file Appearance > Editor

    function wpb_adding_scripts() {
    wp_register_script('name_field_remove', get_stylesheet_directory_uri() . '/name_remove.js', array('jquery'),'1.1', true);
    add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );

    You have to be careful about the path. If it’s not working at this point, you can view the page source of your register page, and search for “name_remove.js” – look at the path on that script line. If the path is wrong, tweak it in the function above (you might need to change the get_stylesheet_directory_uri() part, or the path part after it. You can check if the path is correct by clicking the link to the .js file in the page source. If the path is wrong, you will get a 404 error. If the path is right, you should see the script code contained in the js file. Fiddle around with the path until it’s correct.

    At that point, you have hidden the fields with CSS, and populated the second hidden username / name field automatically with javascript. Test your registration / confirmation email etc to make sure everything is working. But you should be good to go.

    Hope that helps someone. Thanks to the folks I cobbled this solution together from.

    Profile photo of legendarylvl1legendarylvl1

    So, when I try to edit my base registration fields (located in users>profile fields)

    It takes me to a page that says I’m not authorized (but I’m the only keymaster/admin)

    I can delete groups. But it won’t let me delete individual fields – and thats a problem because there are so many of the same fields!

    Does anyone know what kind of error this is?

    Profile photo of lalitavalonlalitavalon


    I have xprofile field in my buddypress form. It is a drop down field there are multiple entris in this drop down. In another page we want to make filter so that is why I want to get all the entries in the select box of of xprofile dropdown field. Please help me how we can get the all the fields

    Profile photo of edh890edh890

    Wordpress: Version 4.7.4
    Buddypress: Version 2.8.2

    Not sure why lots of options in all member profile fields suddenly are all linked to the Member page. Those links were not there before and I can’t find out why.

    In this photo”%20alt=”commercial%20photography%20locations&#8221;

    everything under the “user1” column are linked to the Member page. Every member’s profile are like that. But these links weren’t there before and I don’t know why they are now suddenly there.

    Profile photo of humaniterrianhumaniterrian

    No Base profile or any others, and when I try to create it says “There was an error saving the group. Please try again.”

    Running WP 4.7.3 single site
    Buddypress 2.8.2
    Kleo Theme 4.2.2
    PHP Version 5.6.30
    MySQL Version 10.0.30-MariaDB

    Everything was running fine, until I migrated to a faster server using Litespeed to handle the WPGeodirectory Plugin. I migrated from a sub-site of a Multi-site to a single site. I paid a professional to do it, and everything else migrated fine, except this, which I just noticed now.

    I deleted the buddypress and reinstalled a fresh copy, in case the database files were corrupted or missing.

    I’ve deactivated most plugins except the GEO Directory ones (I don’t want to lose settings), updated my KLEO theme, and even tried it on 2017 theme. But still the same issue.

    Site is


Viewing 25 results - 1 through 25 (of 4,981 total)
Skip to toolbar