Search Results for 'profile fields'
-
Search Results
-
Topic: Field groups in registration
I found this question in this forum, which is my question also. But the answer (this code) doesn’t work for me. The question is really old, and so is the code. The current register.php has changed quite a bit.
I did get some guidance from the pastebin code and tried different variations. Here’s a shortened version:
<?php do_action( 'bp_after_account_details_fields' ); ?> <?php /***** Extra Profile Details ******/ ?> <?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' => true ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="editfield"> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); 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: <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; ?> <!-- <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?> --> <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; ?> <?php /***** Extended Profile Fields: About Me (group 9) ******/ ?> <?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( 'About Me', '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' => 9, 'fetch_field_data' => true ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="editfield"> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); 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: <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; ?> <!-- <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?> --> <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; ?>Basically I reused the original profile field loop and made it specific to the group field I want. I have 5 other groups I need in the register form. And repeating the initial loop for each one makes them display beautifully in the register form, but when I fill them out and click submit only the last group is displayed in the profile. It’s like only the last bit of code is being executed, so each loop is overwriting the previous one. In the forums I read that placement of
<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />is very important but after playing around with it I still have nothing.I also found this but have no idea of where or how to use it.
Any guidance will be greatly appreciated.
Hi,
I’ve installed Buddypress and created extended fields. I’ve found that when I create a new user in the WordPress admin, it copies some of the information from the profile fields into the extended profile fields.
For example one of my extended fields is ‘Membership type’. When I create a new user with the name ‘Bob’, I find that the ‘Membership type’ is now ‘Bob’ for that record. When I try to overwrite it I find all the fields start overwriting each other every time I click save. For example I change ‘Membership type’ to ‘Individual’ and find that the ‘first name’, ‘nickname’ and ‘display name’ are all now ‘Individual’.
I’m using BuddyPress version 2.6.2 and WP version 4.6.1
Can anyone shed some light on what’s going on?
Many thanks.
Topic: filter xprofile fields
Is there a way to filter out some xprofile fields to be displayed on the members profile page? Some fields I want to hide as default.
Hi
I am building a website that for different professionals to register as a member of the website. For example, an accountant can register as a member in the accountant user group, a lawyer can register as a member in the lawyer user group and so on. Each user group needs to have different profile feilds to fill in on the registration form.
Can this be achieved by BuddyPress and its plugins?
Hey there,
Regarding profile fields (Users>Profile Fields), I have several hundred of one type that’s a drop down select. I moved web hosts two days ago and ever since moving hosts I have been unable to add new options to this one profile field. When I try to add a new option I get an error message at the top that reads “These field options are invalid.”If I change the field type to check box, then it works but then I can not change the field type back to drop box, unless I do so in the database. I contacted the host company and they said it’s not a server-side error.
Any ideas?
I’m using WordPress 4.6, BuddyPress 2.6.2 and it happens with Twenty Sixteen.
Hi !
I’m experiencing issue whith my registration page. After filling every fields, when I try to validate the form the page reload and nothing happen.
After the loading of the page, almost every fields are still complete. The only empty field is the password.
Version of WordPress : 4.6
Buddypress : 2.6.2
Xprofile activated
Theme : KleoDatabase version : MySQL 5.5
(some other plugins like Geodirectory, Geo WP are installed)
Thanks for your patience 🙂 Hope you will be able to help me !
WP Version: 4.6
BP Version: 2.6.2
Theme: MH Newsdesk
Plug-ins: WP-Members (for registration and log-in)
Site: https://www.fwdforensics.comHi,
My site uses email addresses for log-in user names, and thus users’ email addresses are showing up in the BP member directory and in the name field and cover image on members’ BP profiles. Most members would rather not publish their email addresses even behind the registration wall.
I think I can hide the email addresses on profiles just by using CSS (display: none) on the name field and on the nickname in the cover image. Then I can add some custom fields to let people enter their first and last names.
But the member directory is tricky (for me). Is there a way to display a field other than user_login as the name in the BP member directory? This can probably be done with a PHP script added to bp-custom.php or functions.php, but I’d rather not reinvent the wheel if someone has already posted the code.
TIA
Hi guys,
We’ve just started with BuddyPress, can you please let me know if there is a way to restrict profile feilds to be visiable to selected groups.
E.G all our members will enter an address but they may only want people in Group A and B to see it but not people in groups C, D, E & F is this possible at all?
Thanks in advance!
ChrisI’m trying to add a ‘tooltip’ hover feature to some of my Profile Field labels.
For example, one of my profile fields is ‘Twitter Handle’And I’m trying to modify it that it is something like….
<abbr title="Twitter handle without the @ sign" rel="tooltip">Twitter Handle</abbr>I’ve found strategies to modify to HTML in bp-custom the profile field DATA using
bp_get_the_profile_field_idorxprofile_get_field_databut none which seem to help me modify the profile field label.Any tips?
TY!Topic: 2nd Registration form
Hi,
I need to add buddypress 2nd registration form but without email or password. just username may be, with some custom fields.
Example: Teacher register from main register plugin and add students ( using 2nd register form) to the database, students also will have profiles with these data.
Is this something possible, buddypress can do? Any plugins?
Thanks!
Hi,
I have same problem with my profile field label cannot be seen due to same colour background.
I have downloaded custom css, but not sure of the coding to use.
Hello! I’m trying to get a buddypress going and have a question about profile fields. So, in the Profile Fields we can choose let members set the visibility of certain fields. However when I’m testing out searches, I’m finding that member profiles are still coming up when I search for terms that I know are in hidden or limited fields.
For Example: I have a location field that members are allowed to set the visibility of. I edited my admin profile so that it says I’m in Boston and set it so that only I can see this info. (autolink is also disabled)
When I view the admin profile as a logged out user or as my logged into Participant account, Boston is not listen anywhere. But, when I got to “Members” and search for the term “Boston”, that admin profile pops up as a result despite that field being set to “only me”. The Location is still not visible when I (as a logged out or logged in participant) actually view the profile, but I feel like something set to “only me” shouldn’t be coming up in search results at all!
Is there a way to set it so that these terms in these hidden or partially hidden DON’T come up in general or all members search results? Or is there a plug in that can handle this?
(apologies if this as been asked and answered somewhere I ran a few topic and plug0in searched but didn’t find anything.)