Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,151 through 1,175 (of 5,755 total)
  • Author
    Search Results
  • #258675
    JetZ
    Participant

    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.

    #258626
    danbp
    Participant

    Best recommendation would be to use this premium plugin

    WooCommerce BuddyPress Integration


    and some additionnal add_on like this one:
    https://fr.wordpress.org/plugins/woocommerce-buddypress-integration-xprofile-checkout-manager/

    Note: BuddyPress doesn’t handle registering, it only shows the wp-login form with some more fields (if xprofile component is activated).

    rafiamudasar
    Participant
    grebehead
    Participant

    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.

    #258444
    giilour
    Participant

    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.

    cs181
    Participant

    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?

    David Cavins
    Keymaster

    Hi r083r7-

    Within the same site, you could write a short code that would render the profile. Outputting profile data is pretty straightforward: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/

    One another site, I’m less sure. You’d need BP API or similar, which we’re just now writing.

    Check our Bowe Codes for some other useful short codes and examples for your own: https://wordpress.org/plugins/bowe-codes/screenshots/

    #258339
    bradleyrf
    Participant

    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.

    #258313
    danbp
    Participant

    Hi @shughesd,

    for clarification, the first topic author mentionned Trying to find where to edit the text above the fields.
    Are you looking for the exact same thing ?
    Is register.php in the right folder ? /child/buddypress/members/register.php ?

    The only text above the fields when registration is allowed is
    Registering for this site is easy. Just fill in the fields below, and we\’ll get a new account set up for you in no time.

    You have 2 options to edit/modify this string:
    – using the language file if you only want to change the text.
    – modify it in register.php if you want to change the HTML tag (by default it’s <p>)

    Other text above fields is the field title.
    This can be changed in fields admin. Dashboard > Users > Profile Fields. Edit the field and change the title to your need.

    And finally, which doesn’t need any alteration of a template or language file, you can use one of the 30 action hooks existing in register.php

    You can write a function and hook it to the placeholder of your choice. To do this, you add the below functions to bp-custom.php

    Example
    Add a welcome message at the top of the registration page, above Registering for this site.
    And another one below it.

    function my_custom_register_msg_title() {
    echo '<h2>Welcome on my site !</h2>';
    }
    add_action( 'bp_before_register_page', 'my_custom_register_msg_title' );
    
    function my_custom_register_message() {
    echo '<p>Thank you for registering.</p>';
    }
    add_action( 'bp_before_account_details_fields', 'my_custom_register_message' );

    In hope it helps you to understand the principle of operation on templates.

    #258295
    buddycore
    Participant

    You could put all your fields as xProfile and group them in sections.

    On top of that you could write some jQuery.

    I struggle going into BuddyPress code but I’m sure you could target this with client side validation via jQuery.

    It’s not perfect but it could be done.

    #258278
    danbp
    Participant

    i can’t replicate your issue. My snippet works as expected and when TOS box is not checked, the registration is aborded.
    You can test the error messages appearing for required fields by going to register page. Don’t fill any field and click on regiter. Does this work ?

    Also do you use any kind of plugin on registration page or for xprofile fileds ? Or other custom code ?

    The description field is stripped by default. But you should be able to add an href by using single cotes. But that’s all. If you insert a target to href, it will be removed.

    #258230
    bcanr2d2
    Participant

    Have you checked out Buddypress Conditional Profile Fields ?

    #258158
    downscnz
    Participant

    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!
    Chris

    danbp
    Participant
    #258046
    danbp
    Participant

    That’s a Firebug question, but not important anyway. Also, there is no need to use all rules, as they are handled by the original CSS. You declare only the part you want to modify for .label

    Open /child-theme/style.css and add only this: (#xyz123 is the color hex you want to use)

    #buddypress table.profile-fields tr td.label,{
       background-color: #xyz123!important;
       color: #xyz123!important;
    }
    #258036
    danbp
    Participant

    Hi,

    this feature is currently handled field by field when you’re on the field creation page.
    dashboard > Users > Profile Fields
    Edit an existing field and see in the right column the box named Autolink. From there you can choose to enable/disable it.

    For more details about the concerned fields and autolinking, read comments in bp-xprofile/bp-xprofile-filters.php:322

    #258025
    ekko848
    Participant

    Well, I was able to do this by going into wp_bp_xprofile_fields in phpmyadmin, finding my Profile Field Label… and changing the value to include the HTML.

    Also it seems, for some, since there is a 150 character limit, I may have to increase the character limit size to meet my html length.

    Thing is, I’m not sure if this is the best way to do something like this?
    Editing straight from the database seems a little iffy, I don’t want to potentially break anything.

    Any comments? Re-assurance?

    ekko848
    Participant

    I’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_id or xprofile_get_field_data but none which seem to help me modify the profile field label.

    Any tips?
    TY!

    idichoo
    Participant
    idichoo
    Participant

    Hi,

    WEll.. i have the same problem as this person posted.

    i have a similar problem as the above link.
    i tired to understand install child theme but it does not work.
    Thru this link

    Building a Child Theme of the BP Default Theme


    But i have quite complicated is there any video you can provide me.
    Btw I am not using FTP, I am using cloudways to bulid the site.

    #257884
    Kuma20
    Participant

    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!

    idichoo
    Participant

    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.

    ladama
    Participant

    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.)

Viewing 25 results - 1,151 through 1,175 (of 5,755 total)
Skip to toolbar