Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,226 through 1,250 (of 5,755 total)
  • Author
    Search Results
  • #256530
    sunilkumark
    Participant

    Hi,

    I am new to wordpress. I created some profile fields using buddy press in signup page.

    After clicking the sign-up page the values which I am submitting is not saved in db.

    How can I fix this ? Kindly somebody help me.

    #256516
    danbp
    Participant

    Hi,

    it’s not the solution but an example you can perhaps use.
    The snippet handles the object members and sort them by type “contributing”
    Replace object by activity and type by “beer” and see what you can do from that.

    // add order options to members loop
    function ch_member_order_options() {
    ?>
       <option value="contributing"><?php _e( 'Contributing Members', 'buddypress' ); ?></option>
    <?php
    }
    add_action( 'bp_members_directory_order_options', 'ch_member_order_options' );
    
    // filter ajax members by contributing
    function ch_filter_ajax_querystring( $querystring = '', $object = '' ) {
    
    	if( $object != 'members' )
    		return $querystring;
    
    	$defaults = array(
    		'type'            => 'active',
    		'action'          => 'active',
    		'scope'           => 'all',
    		'page'            => 1,
    		'user_id'         => 0,
    		'search_terms'    => '',
    		'exclude'         => false,
    	);
    
    	$ch_querystring = wp_parse_args( $querystring, $defaults );
    
    	if( $ch_querystring['type'] == 'contributing' ) {
    	
           // grab members by Member Type role declared on xprofile	
    	$users = get_users( array( 'fields' => array( 'ID' ), 'role' => 'contributor' ) );
    		
    		$users_str = '';
    		foreach ( $users as $user ) {
    				 $users_str .=  $user->ID . ',';
    			}
    		$users_str = rtrim($users_str, ",");
    
    		$ch_querystring['include'] = $users_str; 
    		$ch_querystring['type'] = 'alphabetical'; 
    		
    		return $ch_querystring;
    		
    	}	
    	
    	else
    		return $querystring;
    			
    }
    add_filter( 'bp_ajax_querystring', 'ch_filter_ajax_querystring', 20, 2 );

    https://buddypress.org/support/topic/adding-new-order-by-on-members-loop/

    Members Loop

    Member Types

    #255942

    In reply to: Profile Fields

    danbp
    Participant

    It’s not a duplicate, but how it works.
    On the left, you have the WP field for “username”, on the right BP’s mandatory field “name”. Both are used for registering a new user. WP’s username field accept only lower case alphanumerics without space. Mostly used to enter a pseudonym. BP’s field accept uppercase and space or even carets, wich allows to enter first and last name for example.

    Note that you’re not obligated to enter a first and last name. If you rename Name to City or Gender, a user must enter a city name or his gender. Eg. username: johnrobertsonquid | city: Los Angeles or username: johnrobertsonquid | gender: male

    But whatever the field may contain, it cannot be removed.

    About xprofile fields:

    User Extended Profiles

    #255936

    Topic: Profile Fields

    in group forum Installing BuddyPress
    johnrobertsonsquid
    Participant

    Hi,

    I’m using KLEO Theme and I have the latest version of buddypress. The Profile Fields though provides 2 required fields out of the box and both are named as NAME it seems like a duplicate and I don’t want it and I can’t delete it. How can I remove the duplicate?

    #255668

    Hello!

    I’m trying to modify the way fields appears in the profile of an user. For example, I want that when an user wants to modify the fields that appears in the section configuration/notificacions, it appears directly in the profile/edit section.

    I’ve achieved that, to show the fields, but when I try to save changes, I get an error.
    I think it’s due to the redirection, because I’ve tried to do it directly in the settings section too (instead of have a couple of tabs, I’ve copied all the sections in the main settings.php) and when I change the action of the form, to redirect to bp_displayed_user_domain() . bp_get_settings_slug() instead of bp_displayed_user_domain() . bp_get_settings_slug() . ‘/notifications’ it gives me the “are you sure you want to do this?” error (but if I do to the complete url with /notifications, it works.

    Thank you for your support!

    #255601
    rmalex
    Participant

    I’m using 2.6.6.1 for BP and 4.5.3 of WP. Whenever I try adding a new custom field nothing gets added. I go to Users > Profile Fields and then click on add field, I give it a name and set it to required and then click save which then takes me back to the Profile Fields page with no changes. I’ve tried uninstalling and reinstalling the extended profile plugin (which I assume is what manages this), adding new field groups, and trying the other settings when adding a new field and still nothing shows up. What’s going on?

    yahya92
    Participant

    Hello there,
    users registering to my website used to be asked to enter their names and surnames as required fields.
    now I want to delete these required fields but I do not see the “delete” option the appears on the other fields that are out of base group
    I managed to move them to other groups (that do not appear on register page) but then register button redirected me to homepage without adding a new user to pending users
    how to delete these fields safely?
    thanks in advance

    #255394
    rajsandy11
    Participant

    @danbp
    Thanks for the replay, Script to load xprofile list is working well, I also had state and city fields in my registraion form… Is there any script to achieve conditional selects ??? i mean if i select a country it should populate states belong to that country and if i select state from that list it should populate cities belong to that city only.

    Thanks

    invest0r7
    Participant

    I might be missing something, but I’m confused as to why Buddypress implements nofollow on URL text inputs but not textareas? It basically opens the door to spam. Shouldn’t all links in any field type be nofollow? How can this be implemented so people don’t spam their Bio and other textareas with links?

    #255245
    rajsandy11
    Participant

    Thanks for the replay, I already seen some tutorials… If we go with javascript we have to enter the values manually and assign it to a input tag and we call it using javascript/jquery with an ID, But I already added values in buddypress profile fields (Country Field). How can i use that values and auto suggest on frontend ??

    #255224
    vitamincee
    Participant

    @r-a-y I’m running:

    Akismet
    Alexa Certify
    AmazoLinkenator
    AMP
    Select Audio player
    Better WordPress Recent Comments
    BP Profile Search
    BuddyPress
    BuddyPress Friends Only Activity Stream
    BuddyPress Xprofile Custom Fields Type
    CloudFlare
    Co-Authors
    Comment Rating Pro
    Cookie Consent
    Core Control
    Delete Expired Transients
    Edit Flow
    Email Address Encoder
    Enhanced Text Widget
    Export Users to CSV
    Featured Images in RSS w/ Size and Position
    Gigaom New Relic
    Gravity Forms
    Gravity Forms Polls Add-On
    IFRAME Embed For YouTube
    Jetpack by WordPress.com
    MemberPress Business Edition
    MemberPress MailChimp
    Meta Slider
    Post-Plugin Library
    Recent Posts Widget Extended
    Regenerate Thumbnails
    Revision Control
    Simple Lightbox
    SSL Insecure Content Fixer
    WangGuard
    Widget CSS Classes
    Wordpress Video Plugin
    WP Crontrol
    WP Missed Schedule
    WP Resized Image Quality
    WP-Ban
    Yet Another Related Posts Plugin
    Yoast SEO

    But I’m also running all of these on my dev server, and it works fine there.

    I double check the nginx config

    navyspitfire
    Participant

    When I go to another users profile, to the right of their profile picture I see two tabs: 1) profile fields, 2) photos. These buttons are ajax and toggle/display info when pressed. Is there a way to add a third tab, videos, which would display all the users’ uploaded videos?

    I know the code is in class-bp-tabs.php. I tried making a copy of class BpMembersTab_rt_media extends BpMembersTab {...} and changing the database query from photo to video, but I’m not sure how to get the tab generating function to create the 3rd tab that would display all the videos.

    navyspitfire
    Participant

    So I created a new BP xprofile field called Height (from /buddypress/bp-xprofile/classes/) based on the the Date Box field (class-bp-xprofile-field-type-datebox.php – my code is here)

    Essentially I just replaced every instance of day/month with feet/inches, then made sure to include the filepath in two other places: 1) bp-xprofile-functions.php under function bp_xprofile_get_field_types() {...}, and 2) bp-xprofile-classes.php.

    I got the field to appear on my user profile but when the user tries changing the fields and saving, it doesn’t save. Is there something I am missing in my files, or does anyone know why this is and how to fix it?

    bertl11
    Participant

    Hello,

    I habe some profile fields at the registration eg. address, email.
    Now I want them not to show at the registration and only under the profile tab. I tried it with css but then it dissappears at both pages 🙁

    .editfield.field_8.field_e-mail.optional-field.visibility-public.alt.field_type_textbox {display: none;}
    With the code above it’s hidden everywhere. How can I only hide it at registration page? Would be great if someone can help me!

    Thanks for yout help

    #254967
    terpz
    Participant

    Hi again

    i found the problem, but i do not have enough insight to buddypress to fix it.
    file: wp-content/plugins/buddypress/bp-members/bp-members-screens.php

                            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() );
                            #}
    

    on my page, signup_profile_field_ids (hidden field) does not exist on my reqistry page, and therefore it redirects using signup_profile_field_ids

    commenting those 3 lines out, made it work for me.

    Is this a bug or am i missing some settings?

    danbp
    Participant

    I’m unable to reproce this issue.

    Check following tables for duplicate entries in DB
    wp_bp_xprofile_fields and wp_bp_xprofile_groups (wp is the table prefix; could be different on your install)

    Provide the list of used & activated plugins.

    Did you found a similar issue mentionned on Salutation support ?
    Note that it’s a premium theme for which we can’t assist you, as we have no access to it’s code or support.

    jodys
    Participant

    I’m using WordPress Version 4.5.2, BP Version 2.5.3 and installed Salutation WP Theme.

    I have set up extended profile fields using multi-select checkboxes. It appears that I have set up the fields correctly. See screen shot #1. However, when a user tries to edit their personal interests they see duplicate fields on the edit screen. See screen shot #2.

    How do I remove the duplicate fields on the user’s edit screen?

    https://www.dropbox.com/sh/xc4suyybb8la56s/AAB752JqHXWBviJlkj68ANm9a?dl=0

    I am very new to Buddypress and would appreciate any help you can provide.

    shanebp
    Moderator

    To show xprofile fields, you could do this:

    // add the custom column header
    function philopress_modify_user_columns($column_headers) {
    
            $column_headers['extended'] = 'Meta Fields';
      
            return $column_headers;
    }
    add_action('manage_users_page_bp-signups_columns','philopress_modify_user_columns');
    
    // dump all the pending user's meta data in the custom column
    function philopress_signup_custom_column( $str, $column_name, $signup_object ) {
    
    	if ( $column_name == 'extended' ) 
                 return print_r( $signup_object->meta, true );
    
            return $str;
    }
    add_filter( 'bp_members_signup_custom_column', 'philopress_signup_custom_column', 1, 3 );

    If you only want to show specific meta fields, you need to know the field id(s).
    Then you could do this:
    return $signup_object->meta['field_4472'];

    GIST

    #254707

    In reply to: CV upload in Profile

    aamirpsy
    Participant

    Thanks, i found helpful plugin for solution.
    Plugin Name:
    BuddyPress Xprofile Custom Fields Type
    https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/

    navyspitfire
    Participant

    Bump on this, having the same issue. Trying to see registration fields (mainly the gravatar) as well as some xprofile fields (file uploads) before activating them.

    #254701

    In reply to: CV upload in Profile

    danbp
    Participant

    Add a a new field group to profiles, call it CV, add some fields and options and you’re done.

    User Extended Profiles

    As you certainly want to get this part a bit apart of the other profile fields, you can also use this plugin who brings a nice tabbed profile page.

    Masoud
    Participant

    @shanebp
    hi. tnx for answer and patience. got 5 more minutes? 🙂
    i read and worked on what you said. and if i want to be honest, i could’t do anything special unfortunately.
    now, i want to ask your opinion about this idea:
    i’ve come up with the idea of hiding that field. (not email field), how?
    with the use of if condition… (if it’s not empty show it. if it has data, hide it)!
    ——-
    i’ve created a custom-meta with this code in theme functions:

    add_action( 'personal_options_update', 'my_save_extra_profile_fields' );
    add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' );
    function my_save_extra_profile_fields( $user_id ) {
    if ( !current_user_can( 'edit_user', $user_id ) )
    	return false;
    /* Copy and paste this line for additional fields. */
    add_user_meta( $user_id, ‘person_relation’, 30318 );
    update_usermeta( absint( $user_id ), 'person_relation', wp_kses_post( $_POST['person_relation'] ) );
    update_user_meta( $user_id, 'person_relation', $_POST['person_relation'] );
    }

    and used it in my buddypress signup form, to get data from users. ok?
    after what you said, i went to edit.php (copy to my theme buddypress folder…)
    and added these codes. but it seems that they do not recieve/send data at all.
    it looks like they are empty!! 😐
    after <?php at the start,
    i added :

    global $user, $user_id;
    $person_relation = get_the_author_meta( 'person_relation', $user->ID );
    $user_id = get_current_user_id();

    and in the <form> ,
    i added this piece of code (not working)
    then copied and changed the “save changes button”.
    so there is 2 buttons. one is for my-custom-meta, and the other is for buddypress form.
    buddypress edit page
    if user writes the name and click save. the box/button, all should gone. and i have to see the data in Users admin panel.
    but nothing is getting save… and i dont know where am i doing it wrong

    <?php if( $person_relation == '' ): ?>
    <tr>
    <th><label for="person_relation">Invitor's Name</label></th>
    <td>
    <input type="text" name="person_relation" id="person_relation" value="<?php update_usermeta( $user_id, 'person_relation', $_POST['person_relation'] ); ?>" class="regular-text" /><br />
    <span class="description">Please enter your invitor's name.</span>
    </td>
    </tr>
    <input type="hidden" id="userID" value="<?php echo $user_id ?>"/>
    <div class="submit">
    <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Name', 'buddypress' ); ?> " />
    </div>
    <input type="hidden" name="person_relation" id="person_relation" value="<?php update_usermeta( $user_id, 'person_relation', $_POST['person_relation'] ); ?>" />
    <?php add_action( 'personal_options_update', 'my_save_extra_profile_fields' ); ?>
    <?php add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' ); ?>
    <?php do_action( 'xprofile_profile_field_data_updated'); ?>
    <?php endif; ?>

    so sorry for long description. tnx for help.
    any suggestions do you have?

    #254628
    danbp
    Participant

    The word Name can be changed on the profile fields admin screen. Simply edit it !
    Dashboard > User > Profile Fields (wp-admin/users.php?page=bp-profile-setup)

    What do you call blanks ? Your field names are all aligned left and the width seems to be equal for all. You can reduce it via your child-thme style.css.

    Note that you will anyway get different blank space as the width will be adjusted to the longest word. Ie. ABCDEF will go from left to right border, but ABC will left a blank space on the right.

    navyspitfire
    Participant

    I’m using the xprofile fields plugin and have two file fields in my registration. These files are automatically uploaded to /profiles/user-id/. Is there a way to change the folder name to /profile/user-email?

    #254591
    navyspitfire
    Participant

    I am trying to get a users registration info to appear in the new members email to admins. I’m using xprofile plugin, and simply want the regular registration fields (name, email) fields included and all the xprofile fields (3 of them- dropdown, two file inputs). Is there a way to do this?

    I found several solutions but none of them are working.

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