Search Results for 'profile fields'
-
Search Results
-
Was working on custom profile fields for BP – essentially adding required fields to the registration page – with 0 problem
Randomly – stuff died.
Went on the support and did a search, he’s what I’ve tried so far.
– Have reinstalled buddypress – nothing
– Have made sure to modify memory limits on SiteGround – set at 256 mb
– Reset the memory , then reinstalled – nothing
– Made a php info page to verify : myodphi.omegadeltaphi.com/phpinfo.php
– Tried disabling jetpack for conflict – nothingSo when I rename the BP plugin folder to something else – WP admin comes up fine.
Minute I rename it back to BP – site white screensNow earlier today , when I was looking at fixes, the first time i renamed the BP folder to BP_old, then renamed it back to BP – site came back up fine.
Checked error logs , no errors, just notices – nothing fatal there, no memory warnings,etc
Thoughts?
Hello,
I can add profile field groups to a user profile, but is it possible to add them also in the registration page so their fields could be filled during registration?Thanks!
Hi. I have set the registration profile fields to be shown only to the user, but no, after buddypress update to 2.4, this setting does not work anymore, as when they go to registration page, they can select which fields they want to show to whom. How do I remove that option for them/make it as it was before?
CheersThis is a quick fix until https://buddypress.trac.wordpress.org/ticket/5373 is resolved and should only be used with caution as it edits core files. Future updates should be changed file by file. Not recommended for everyone!
Remove following code from buddypress/bp-members/bp-members-screens.php Line 129 – 154
// Now we've checked account details, we can check profile information. if ( bp_is_active( 'xprofile' ) ) { // Make sure hidden field is passed and populated. if ( isset( $_POST['signup_profile_field_ids'] ) && !empty( $_POST['signup_profile_field_ids'] ) ) { // Let's compact any profile field info into an array. $profile_field_ids = explode( ',', $_POST['signup_profile_field_ids'] ); // Loop through the posted fields formatting any datebox values then validate the field. foreach ( (array) $profile_field_ids as $field_id ) { if ( !isset( $_POST['field_' . $field_id] ) ) { if ( !empty( $_POST['field_' . $field_id . '_day'] ) && !empty( $_POST['field_' . $field_id . '_month'] ) && !empty( $_POST['field_' . $field_id . '_year'] ) ) $_POST['field_' . $field_id] = date( 'Y-m-d H:i:s', strtotime( $_POST['field_' . $field_id . '_day'] . $_POST['field_' . $field_id . '_month'] . $_POST['field_' . $field_id . '_year'] ) ); } // Create errors for required fields without values. if ( xprofile_check_is_required_field( $field_id ) && empty( $_POST[ 'field_' . $field_id ] ) && ! bp_current_user_can( 'bp_moderate' ) ) $bp->signup->errors['field_' . $field_id] = __( 'This is a required field', 'buddypress' ); } // This situation doesn't naturally occur so bounce to website root. } else { bp_core_redirect( bp_get_root_domain() ); } }Remove following code from buddypress/bp-members/bp-members-screens.php Line 204 – 231
// Make sure the extended profiles module is enabled. if ( bp_is_active( 'xprofile' ) ) { // Let's compact any profile field info into usermeta. $profile_field_ids = explode( ',', $_POST['signup_profile_field_ids'] ); // Loop through the posted fields formatting any datebox values then add to usermeta - @todo This logic should be shared with the same in xprofile_screen_edit_profile(). foreach ( (array) $profile_field_ids as $field_id ) { if ( ! isset( $_POST['field_' . $field_id] ) ) { if ( ! empty( $_POST['field_' . $field_id . '_day'] ) && ! empty( $_POST['field_' . $field_id . '_month'] ) && ! empty( $_POST['field_' . $field_id . '_year'] ) ) { // Concatenate the values. $date_value = $_POST['field_' . $field_id . '_day'] . ' ' . $_POST['field_' . $field_id . '_month'] . ' ' . $_POST['field_' . $field_id . '_year']; // Turn the concatenated value into a timestamp. $_POST['field_' . $field_id] = date( 'Y-m-d H:i:s', strtotime( $date_value ) ); } } if ( !empty( $_POST['field_' . $field_id] ) ) $usermeta['field_' . $field_id] = $_POST['field_' . $field_id]; if ( !empty( $_POST['field_' . $field_id . '_visibility'] ) ) $usermeta['field_' . $field_id . '_visibility'] = $_POST['field_' . $field_id . '_visibility']; } // Store the profile field ID's in usermeta. $usermeta['profile_field_ids'] = $_POST['signup_profile_field_ids']; }Remove following code from buddypress/bp-templates/bp-legacy/buddypress/members/register.php Line 143 – 247
<?php if ( bp_is_active( 'xprofile' ) ) : ?> <?php /** * Fires before the display of member registration xprofile fields. * * @since 1.2.4 */ do_action( 'bp_before_signup_profile_fields' ); ?> <div class="register-section" id="profile-details-section"> <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div<?php bp_field_css_class( 'editfield' ); ?>> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); /** * Fires before the display of the visibility options for xprofile fields. * * @since 1.7.0 */ do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: %s', 'buddypress' ), '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' ); ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: %s', 'buddypress' ), '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' ); ?> </p> <?php endif ?> <?php /** * Fires after the display of the visibility options for xprofile fields. * * @since 1.1.0 */ do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> <?php endwhile; ?> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> <?php /** * Fires and displays any extra member registration xprofile fields. * * @since 1.9.0 */ do_action( 'bp_signup_profile_fields' ); ?> </div><!-- #profile-details-section --> <?php /** * Fires after the display of member registration xprofile fields. * * @since 1.1.0 */ do_action( 'bp_after_signup_profile_fields' ); ?> <?php endif; ?>Remove following code from buddypress/bp-themes/bp-default/registration/register.php Line 61 – 207
<?php if ( bp_is_active( 'xprofile' ) ) : ?> <?php do_action( 'bp_before_signup_profile_fields' ); ?> <div class="register-section" id="profile-details-section"> <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="editfield"> <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" /> <?php endif; ?> <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea> <?php endif; ?> <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"> <?php bp_the_profile_field_options(); ?> </select> <?php endif; ?> <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple"> <?php bp_the_profile_field_options(); ?> </select> <?php endif; ?> <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?> <div class="radio"> <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <?php bp_the_profile_field_options(); ?> <?php if ( !bp_get_the_profile_field_is_required() ) : ?> <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a> <?php endif; ?> </div> <?php endif; ?> <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?> <div class="checkbox"> <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <?php bp_the_profile_field_options(); ?> </div> <?php endif; ?> <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?> <div class="datebox"> <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day"> <?php bp_the_profile_field_options( 'type=day' ); ?> </select> <select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month"> <?php bp_the_profile_field_options( 'type=month' ); ?> </select> <select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year"> <?php bp_the_profile_field_options( 'type=year' ); ?> </select> </div> <?php endif; ?> <?php if ( 'url' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>/> <?php endif; ?> <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?> <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </p> <?php endif ?> <?php do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> <?php endwhile; ?> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> <?php do_action( 'bp_signup_profile_fields' ); ?> </div><!-- #profile-details-section --> <?php do_action( 'bp_after_signup_profile_fields' ); ?> <?php endif; ?>Hi,
I’m new to Buddypress (but not WordPress), so I may be missing something obvious here. Our client wants to have several user profile fields that allow users to type in what are essentially tags, e.g., which instruments they play from possibly hundreds of instruments. WordPress tags are perfect for this. They provide an input field with autocompletion, sorting and indexing, auto-generated pages for tags, and so on. WordPress tags also can be set up so that only admin/editor user types can add new tags (e.g., so a basic user doesn’t accidentally add a ‘paino’ tag instead of ‘piano’ as an instrument).I can get this working on the default WordPress user profile by creating a custom taxonomy. However, the default profile fields don’t show up when a normal user edits their buddypress profile.
So I guess there are two questions:
1.) Is there already a way to incorporate tags/taxonomies in a Buddypress profile? The only thing I’m seeing is a text box, but that probably wouldn’t have autocomplete, loses the searchability and sortability of tags, etc. The checkbox and multi-select options will be tough since they may need to pick 6 items out of a few thousand (one of these will be languages, and there are around 7,000 of them!).
2.) If not, is there any documentation or examples of how to get a standard user profile field to show up in Buddypress’ member profile? I’m definitely willing to try custom coding to get it working.
Thanks in advance for any input or suggestions!
I have an issue that the ‘Name (Primary) (Required)’ field is repeating itself 7x and I cannot get it to delete. Any Ideas?
Hello,
I’m using the KLEO theme, latest version, and Buddypress 2.4.0.
1) When going to wp-admin Users – Profile Fields – , the tabs have a broken style (only the Primary tab appears correctly, the other ones are there but with no names and small, kind of a css problem)
2) In both wp-admin and the front-end (edit profile), the checkboxes and radio buttons dissappeared. You can see the options, but no radio or checkbox on the side.It happens only with Buddypress 2.4.0. As soon as I went back to 2.3.5, everything worked perfectly again.
I presume it’s a conflict with the KLEO theme, if not everyone should have reported this. I couldn’t find the source of the problem 🙁
Cheers
RamiWe’ve updated to 2.4 but the checkboxes and radiobuttons in our register page have disappeared without any markup, error or debug log… In the forms, only text fields and textareas are shown.
After trying to deactivate many plugins, finally the only solution i’ve found is to revert buddypress to the 2.3.5, so we must wait to find a solution with the register form items…
Is the 2.4 working good for everybody except us? maybe is failing only in our particular combination of theme (x) and plugins…
Thanks a lot for keeping this plugin alive!Hi,
I’m using WordPress 4.3.1 and just updated Buddypress to 2.4. Since the update of Buddypress the profile fields can be overwritten by the members although I choose “enforce profile visibility” in the settings. Before the update everything worked. I just tried it with WP 2015 and the problem still exists.
My Website is http://community.midoggy.de
Thank you for your help,
JuliaGreetings…
I’ve inherited a development project that is using WordPress 3.7 along with BuddyPress 1.5. The intent being to upgrade both to current RC’s.
There is a lot of customized code dealing with xprofile fields and member search functions, with most being achieved by way of template overload in a child theme based on bp default. There are also modifications to the BP 1.5 core files that I am in the process of migrating over to BP 2.3.4. Due to relative unfamiliarity with BuddyPress, not exactly sure where that will lead. Realistically, about 50% of that code base has been migrated over without breaking the BP 2.3.4 install.
Backtracking a bit, it is my intent to update WordPress to 4.3.2 with the current BP 1.5. I have actually updated WordPress and corrected the BP slugs that were changed with the update. All except for the BP members slug which resolves correctly to …/profile/edit/group/1 but returns a 404 “page can’t be displayed error.”
I have found a few threads that deal with this issue but none of the proposed solutions seem to resolve. Some deal with plugin type conflicts and others deal with updating BuddyPress (which is not a viable option at the moment).
My bp-xprofile-screens.php includes some validations and can be viewed on pastebin…
http://pastebin.com/b13kAk2vI have the site migrated onto a development box at http://52.6.38.92/. For those savvy enough to provide some insight, temporary login credentials from DropBox at https://www.dropbox.com/sh/wt1wxd32duosb0j/AADSDSI81VOxUg89L_bqHddZa?dl=0.
It should be noted that if I do upgrade BuddyPress to 2.3.4 (both plugins are installed on the site), I am able to edit the profile at …/profile/edit/group/1, but that’s defeating my purpose as all the code has yet to be migrated (if that is even possible to achieve). And there are still display issues with my search form using BP 2.3.4.
I guess the relevant question is why would the “bp_core_redirect( bp_displayed_user_domain() . $bp->profile->slug . ‘/edit/group/1’ );” statement work with WordPress 3.7 and not with 4.3.2? What am I missing? Is something being overwritten in the database upgrade?
I’m hoping that someone more intimate than I am with BP can provide some additional insight.
Topic: BuddyPress 2.4.0 – Pietro
Hi everyone, we’re very excited to announce BuddyPress 2.4.0 Pietro is available for download/upgrade.
Here’s the post announcing the release: https://buddypress.org/2015/11/buddypress-2-4-0-pietro/
PS: this was my first time releasing a major version 🙂
—
Reported issues with fix:
- Cosmetic issue with BuddyPress Activity Privacy plugin – reported fix to plugin author:
https://buddypress.org/support/topic/buddypress-2-4-0-and-buddypress-activity-privacy/#post-246630 - Fatal error: Call to undefined method stdClass::save() in Extended Profiles component – caused by the WOFFICE theme and their Birthday extension. Fix should be available from the WOFFICE theme authors:
https://buddypress.org/support/topic/fatal-error-call-to-undefined-method-stdclasssave/
Issues needing verification:
If you can replicate any of the following, please reply in the threads below with clear steps to duplicate.
- Radio and checkbox profile fields do not work properly (might be specific to the KLEO theme only):
https://buddypress.org/support/topic/bp-2-4-0-profile-fields-registration-problem/
https://buddypress.org/support/topic/buddypress-2-4-0-profile-fields-broken/
—
Please do not report issues in this thread. Create a new topic and tag with
2.4. - Cosmetic issue with BuddyPress Activity Privacy plugin – reported fix to plugin author: