Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 451 through 475 (of 5,755 total)
  • Author
    Search Results
  • shanebp
    Moderator

    Do you have this issue for profile fields that you did create or populate with the NADI plugin?
    If not, use a database tool like phpmyadmin and check the visibility settings for that field id – those settings are in the _bp_xprofile_meta table.

    warrencat
    Participant

    In the extended profile fields, I’ve created a field that automatically pulls in data using the process described further below. This field is required and is located in the Base (Primary) group of profile fields.

    The issue I’ve run into is that I’ve configured the field to be visible to “Only Me” and have selected the option to Enforce field visibility, but when I look at the public-facing profile page, this field is still visible to any other logged in user, regardless of role. (I have confirmed this by logging in with a subscriber level account and viewing the profile page.)

    The profile fields data import process:

    I am using the NADI plugin (https://active-directory-wp.com/) to automatically create and sync users and user data from company Active Directory database. This plugin has an add-on tool that will subsequently sync selected data from the user WordPress profile over to the BuddyPress profile.

    Troubleshooting steps I’ve already completed:

    1. I’ve deactivated all plugins other than BuddyPress; the “Only Me” profile is still visible on the public-facing user profile page for any logged in user. It doesn’t appear to be caused by a plugin conflict.
    2. I’ve changed to a default WordPress bundled theme; again, the “Only Me” profile is still visible on the public-facing user profile page for any logged in user. It doesn’t appear to be caused by a theme conflict.

    WP Version: 5.2
    BP Version: 4.3.0
    NADI Plugin Version: 2.1.9 (Up to date)
    NADI Add-on Version: 1.0.4 (Up to date)

    I hope I’ve provided enough information. I’m struggling to determine why this profile field that should only be visible to the person who is logged in and no else is visible to every user. I also hope someone here might have a suggestion or recommendation for what I might try next.

    Thanks.

    #305767
    bdd
    Participant

    I’d like to take the URL entered in an Xprofile field and display it on another page using a different Xprofile field as the link text (instead of using the URL entered in the the Xprofile field as both the link text and the destination).

    So as an example, the Xprofile fields are Blog Name and Blog Address. On the profile, the Blog Name is plain text, and the Blog Address is a URL. When I display it on the other page, I want the Blog Name field to show up as the link text, and then the link’s destination will be the Blog Address field.

    I’m able to grab and display both Xprofile fields as is, but the URL field is coming through as the full link (with link text and address).

    How do I convert that URL Xprofile field to text? Or split it up somehow so I’m just getting the address part?

    #305763
    bdd
    Participant

    Thanks again. I’ll try that.

    I’ve been making some progress and getting closer. Created a new template with a copy of the member directory code, then started manipulating that.

    Tried using what’s in the “Filtering by Xprofile fields” section here to guide me:
    https://codex.buddypress.org/developer/loops-reference/the-members-loop/

    Right now I have a few errors, but I also see a link to just the one member that has a blog field filled in. (Long way to go, but feels like I’m getting to the right track.)

    #305753
    Venutius
    Moderator

    Sorry I don’t.

    The code to get the xprofile field data for a member is as follows:

    $field_data = xprofile_get_field( $field_id, $user_id, true );
    $field_value = $value->data->value;

    One thing you could do as a first step is to add these fields to the standard members loop:

    add_action( 'bp_directory_members_item', 'bpex_add_profile_field_data' );
    
    function bpex_add_profile_field_data() {
        $field_data = xprofile_get_field( $field_id, bp_member_user_id(), true );
        $field_value = $value->data->value;
        
        echo '<span>' . $field_value . '</span>';
    }

    You’d need to supply the $field_id for this to work.

    That would obviously add this data to all the members directory view which may not be what you want but it’s a start.

    #305749
    Venutius
    Moderator

    One option would be to setup a members list and filter the members based on if they have certain profile fields set then display the extra profile fields in the loop.

    #305747
    Venutius
    Moderator

    I’ve created a group member list shortcode in the same plugin that allows extra profile fields to be displayed as part of a group member list, don’t suppose all the members you want to display belong to the same group?

    #305734
    Venutius
    Moderator

    You can add shortcodes to display the members profile fields and links to profile using BP Profile Shortcodes Extra. I don’t think you can set a condition that if one profile field is filled in then so should the other one by default but you could write some code to carry out that check an reject the change if the appropriate field is not filled in.

    #305718
    bdd
    Participant

    I would like to ask members for Blog Name and Blog Address (URL) in their profiles, and then if they fill in those fields, I’d like to display that info on a Member Blogs list on a separate page.

    Is there a way to do this?

    Wishlist:
    1. Ideally, I’d like to require both Blog Name and Blog Address if one or the other is filled in.
    2. I’d like to display the username (linked to the member’s profile) along with the linked blog name.

    Thanks.

    #305682
    allnamestaken
    Participant

    1)How would I go about group name/members to show username | age | location
    I have added those fields in user profile.

    2)Would I be able to have age displayed as number instead of date?

    happyday1
    Participant

    When my users sign up on my page they can choose to be:
    -Seller
    -Buyer or
    -Both Seller and buyer.
    That I have set up as a dropdown select box under the profile fields.

    But when I go to the profile search I can only search for each of the three profile types. I would like to ensure that if I search for “seller” all the members who see them self as “both seller and buyer” should also occur in the search results.
    How do I do that?

    coolhunt
    Participant

    hey guys..

    my standard (most recent updated WP/BP install) doesnt have a link to the @username when @mention on the profile field of a user.

    you guys have any ideas how to enable @mention inside buddypress profile fields

    subhamkotnala
    Participant

    Hi,
    How can I add file upload field type in profile fields?
    Thank you.

    imborx
    Participant

    Hi,

    I would like to add some users to groups according to their profile fields selection. For example, in the users profile there’s a “city” field and the user select “london”, so that user should be added to the group called “london”. How can I do that?

    I checked a couple of plugins but are old or they don’t do what I need:

    BuddyPress Group-O-Matic


    https://wordpress.org/plugins/buddypress-auto-group-join/

    Thanks!

    #305493
    allnamestaken
    Participant

    In wordpress Users /Profile Fields
    Date selector will not change date format. picture of the problem

    #305455
    shanebp
    Moderator

    What does profile filters mean?
    Profile fields ?
    If so, perhaps a profile fields search plugin is what you want.

    #305446
    webmister76
    Participant

    Hi guys šŸ™‚
    My users have many custom fields in their profile.
    I’m trying to create a member page, with different loops, because I need to split them in different groups with different criteria.

    I’m using the my_custom_ids function, but I’m getting crazy…

    <?php if ( bp_has_members( my_custom_ids( 'Nome', 'testB' ) ) ) : ?>
    is working. The loop displays only one user, named “testB”

    <?php if ( bp_has_members( my_custom_ids( 'Nickname', 'web9' ) ) ) : ?>
    is working. The loop displays only one user, with the nickname “web9”

    <?php if ( bp_has_members( my_custom_ids( ‘Role’, ‘iscritto’ ) ) ) : ?>
    is NOT working. Also Administrators are displayed.
    This is not the only problem. It happens also with other fields, but I can’t understand why…

    rmchale
    Participant

    Hi,

    Is there a way to hide the rich text editor toolbar in a multi-line text area field based on the users role.

    I don’t want to have to create separate fields for each user role.

    Thank you

    #305274
    polywebjeff
    Participant

    Hey! I have a My Profile page containing 2 forms in which these are the fields to fill to modify your informations. Those are separated in two because they are in 2 seperate groups of xprofile profile fields. I want to send both groups of fields at the same time with the same “save changes” button. I know jQuery will not work since the page refresh made by the submit prevent the first form from sending. I also know I have to call an Ajax call for that. Can someone help me find that call please? Here is my code, shortened:

    if ( bp_has_profile( 'profile_group_id=1' ) ) :
        while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    
            <form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form1" class="standard-form <?php bp_the_profile_group_slug(); ?>">
                <?php
    
                /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
                do_action( 'bp_before_profile_field_content' ); ?>
    
                <h2><?php printf( __( "My Profile", 'buddypress' ), bp_get_the_profile_group_name() ); ?></h2>
    
                <div class="clear"></div>
    
                <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    
                    <div<?php bp_field_css_class( 'editfield' ); ?>>
                        <fieldset>
    
                            <?php
                            $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
                            $field_type->edit_field_html();
    
                            /**
                             * Fires before the display of visibility options for the field.
                             *
                             * @since 1.7.0
                             */
                            do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
                            ?>
    
                            <?php
    
                            /**
                             * Fires after the visibility options for a field.
                             *
                             * @since 1.1.0
                             */
                            do_action( 'bp_custom_profile_edit_fields' ); ?>
    
                        </fieldset>
                    </div>
    
                <?php endwhile; ?>
    
                <?php
    
                /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
                do_action( 'bp_after_profile_field_content' ); ?>
    
                <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    
                <?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    
        <?php endwhile; endif; ?>
    
    <div class="submit">
            <input type="button" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?> " onclick="submitForms()"/>
        </div>
    
        <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    
            <?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    </form>
    
        <?php
    if ( bp_has_profile( 'profile_group_id=2' ) ) :
        while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    
            <form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form2" class="standard-form <?php bp_the_profile_group_slug(); ?>">
                <?php
    
                /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
                do_action( 'bp_before_profile_field_content' ); ?>
    
                <h2><?php printf( __( "About me", 'buddypress' ), bp_get_the_profile_group_name() ); ?></h2>
    
                <div class="clear"></div>
    
                <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    
                    <div<?php bp_field_css_class( 'editfield' ); ?>>
                        <fieldset>
    
                            <?php
                            $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
                            $field_type->edit_field_html();
    
                            /**
                             * Fires before the display of visibility options for the field.
                             *
                             * @since 1.7.0
                             */
                            do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
                            ?>
    
                            <?php
    
                            /**
                             * Fires after the visibility options for a field.
                             *
                             * @since 1.1.0
                             */
                            do_action( 'bp_custom_profile_edit_fields' ); ?>
    
                        </fieldset>
                    </div>
    
                <?php endwhile; ?>
    
                <?php
    
                /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
                do_action( 'bp_after_profile_field_content' ); ?>
    
                <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    
                <?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    
        <?php endwhile; endif; ?>
    
        <div class="submit">
            <input type="button" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?> " onclick="submitForms2()"/>
        </div>
    
        <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    
            <?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    </form>
    
    pixieblitz
    Participant

    Hi!

    I have “City” and “State” as required additional profile fields. What would be the best way to change things so that in the activity stream, instead of showing “Jane became a registered member 42 minutes ago” it shows “Jane from City in State became a registered member 42 minutes ago”? I would prefer to modify a template or add a new function rather than installing an additional 3rd party plugin.

    Thanks!

    #305159

    In reply to: Age instead Birthday

    Venutius
    Moderator

    Hi Ben,

    How did you get on with this? I’ve been playing with profile fields and I’ve come up with a solution to this, however there is a bug in BP which prevents it from working:

    https://buddypress.trac.wordpress.org/ticket/8082#ticket

    Also, in doing this I realised that it would be simpler to add this as a feature to the existing datebox that comes with BP, it already has an option to display the elapsed time and it’s not too difficult to add another option for Age:

    https://buddypress.trac.wordpress.org/ticket/8083#ticket

    #305133
    Venutius
    Moderator

    Hi there,

    In Users>>Profile Fields there is the default Base profile Field Group. The fields are included in the Registration form inputs, if you make any of these required the user can’t sign up unless they fill them out.

    You can create other field groups, but the fields on these are not included in the registration page and would need to be filled out after registration.

    At the front end, site users viewing the page sitename.com/members/username/profile, There user can edit these fields by accessing the age sitename.com/members/username/edit.

    As an admin you can view these details by going to the Users page in admin, for each user there is an Extended link which allows you to view and edit the users Extended Profile (xProfile).

    When you are editing the profile field there’s a setting to Autolink the profile field, this should include it in the Members search.

    #305131
    somatherapist
    Participant

    Hi, I’m using WP 5.1.1 and BuddyPress 4.2.0

    I don’t really know PHP (therapist, not a programmer), so I’m flying by the seat of my pants here. I have created several profile fields but I haven’t found where they show up for members to use them. Also is there a way for members to search the member group by profile fields?

    website is southaustinpsychotherapygroup.com/biblio-therapy and requires password “bibliotherapy”

    Thanks!

    #305114
    Venutius
    Moderator

    Well one option would be to set up a parental contact as mandatory profile fields, then run a reminder plugin that gets your scouts to enter those details before they can continue to the site. That’s the easy part.

    what you would do would be to trigger a function on the messages_message_before_save action, this would return to your function the message object of every message before it got saved and processed.

    You can get the recipients array from $message_info->recipients and the person sending the message is get_current_user_id();

    You’d want to check the role relationship and if it’s Scout – Scout Leader then you would look up the profile field data using the function xprofile_get_field( $field_id, $user_id, true );

    #305112
    Venutius
    Moderator

    So you could put the parental contacts into profile fields and then run a filter on all outgoing email to check the role relationship and copy in the parental contact as appropriate?

Viewing 25 results - 451 through 475 (of 5,755 total)
Skip to toolbar