Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 901 through 925 (of 5,755 total)
  • Author
    Search Results
  • #267455
    udarmo
    Participant

    Do you know if in DB all these fields are one long string?
    I’m looking for same thing, but I want to search by several fields (BP profile search) and I don’t see how it works with it.

    #267371
    r-a-y
    Keymaster

    This only takes effect for other created profile fields, not the “Name” field.

    Try creating a new profile field and then you should be able to access the options you are looking for.

    #267369
    kariellen35
    Participant

    Hello!

    I have been trying to find an answer to this for weeks now… not consistently, just coming back to it again and again. I’ve tried to look up solutions and from what I can tell it seems like something is not set up right. I will post an example of what my administrator settings for profile visibility should be vs what they actually are. Also, I read that someone else had this issue but there was no response to follow up with their inquiry.

    Here are the two images:

    (From “How to Change Buddy Press Profile Field” https://wptavern.com/how-to-change-buddypress-profile-field-visibility-settings)

    Screen shot of what this how-to guide says my edit screen should look like when I go to Users > Profile Fields > Edit Field:

    https://www.mycrewlink.com/wp-content/uploads/2017/08/Screen-shot-1.png

    This is what it looks like when I go to Users > Profile Fields > Edit Field:

    https://www.mycrewlink.com/wp-content/uploads/2017/08/Screen-shot-2.png

    And when I click on edit for the specific field:

    https://www.mycrewlink.com/wp-content/uploads/2017/08/Screen-shot-3.png

    Thank you so much for your time.

    Take care,
    Kari

    edvard1
    Participant

    Hello all forum members. Recently I encountered the need to add here such fields for profiles, including registration of a new account. Record, give an example. There is a single choice field for the country. And there is a plural list with cities. And it is necessary to make so that cities vary depending on a choice of the country. Well, or so that just changed the field. Found at the moment such a plugin: https://buddydev.com/plugins/conditional-profile-fields-for-buddypress/. But for some reason it does not work for me, maybe this problem arises because of my theme. In advance thanks to all responded =)

    #267192

    In reply to: Remove Base

    Aslan Guseinov
    Participant

    Hi, you can rename it.
    Go to Users=>Profile Fields=>Edit Group.

    Shmoo
    Participant

    I don’t have super advanced PHP skills so I made this as a start to show off only 3 profile fields (will be svg icons later) ..when their set of course.

    
    <?php
    	$twitter = bp_get_member_profile_data( 'field=Twitter', bp_get_member_user_id() );
    	$instagram = bp_get_member_profile_data( 'field=Instagram', bp_get_member_user_id() );
    	$website = bp_get_member_profile_data( 'field=Website', bp_get_member_user_id() );
    
    	if ( isset( $twitter, $instagram, $website ) ) {
    
    		echo '<div class="test">';
    
    			if ( isset( $twitter ) ) {
    				echo '<span>'. $twitter .'</span><br>';
    			}
    			if ( isset( $instagram ) ) {
    				echo '<span>'. $instagram .'</span><br>';
    			}
    			if ( isset( $website ) ) {
    				echo '<span>'. $website .'</span><br>';
    			}
    
    		echo '</div>';
    	}
    ?>
    

    I have this feeling, this can be made better or nicer within some sort of loop instead of all those IF statements.

    Usually I use Advanced Custom Fields Pro for those kinda of things because of their detailed Documentation and examples but I thought it would be overkill to use ACF only for 3 simple fields while BuddyPress has this inside the core.

    Thanks.

    jamesdoherty1708
    Participant

    I’m using the following to add profile information to the members directory, and its working, but i cant seem to re-position where the text appears (at the moment its under the ‘add friend’ button).

    function add_pf_to_members_page() {
    $field_content = bp_get_member_profile_data( ‘field=field name here’ );
    if( $field_content != false )
    echo ” ” . $field_content;
    }
    add_action( ‘bp_directory_members_item’, ‘add_pf_to_members_page’ );

    I’d ideally like it moved to the middle of the page – http://tyfy.co/members/, but any advice on how to move the text would be great, i’ve tried CSS but there is no div information.

    Thanks in advance for any help.

    #266885
    jaydeeptrivedi92
    Participant

    On our website . I am using BuddyPress version 2.8.2 and am using the xProfile fields addon as well. There are several field groups as well as some regular and xProfile fields. For some of the users on our website, the profile data added is getting deleted later at some point. Could you please help us out?

    xxmesoxx
    Participant

    This is a topic that has been brought up before, but all the posts I found were from years ago and didn’t seem to work for me…

    I am looking to create a small piece of functionality based off custom user profile fields.

    My users are birders who have several fields in their profiles related to how many birds they have seen in a specific area. Eg: Each state has a profile field and each user has a value for each state.

    Now I want to have a page called Florida for example, and on that page I want to loop through all registered users who have a value more than 200 in their Florida profile field, and then print both their username and their total number for that field in a list that is sorted from highest to lowest, so the person with the most sightings in that state is on top.

    Any assistance in this would be most appreciated, as I’ve been struggling for several months now with this.

    #266846
    winstart
    Participant

    whenever i update xprofile fields, the display name changes to email. How can i stop that?

    #266722
    wbcomdesigns
    Participant

    Hi @dave8528

    Please, you can use this plugin…

    Buddypress Xprofile Custom Fields Type

    Hope this will help.

    Thanks.

    beckyH
    Participant

    Hi,

    I have buddypress installed and I’m using for a company Intranet.

    To create additional fields that I need, I have installed Buddypress Xprofile Custom Fields Type and it works rather well.

    The problem is now is that I want to store the users manager in one of the profile fields. I do not want to create a manual list to do this where I name all the users. This would just be a maintenance nightmare. I want to select a manager from a list that dynamically populates with the current list of users.

    Any ideas on how I can do this?

    In regards to coding i get the jist of it but I’m really not a coder so if that’s the answer the please be kind and simplify it for me!

    Of course, the ultimate solution would be to use conditional logic on existing fields to determine the current manager. That way if a manager of a team changes over all user profiles are kept up-to-date with little maintenance, but I’m not sure if anyone would have the answer to this one?!

    Thank you

    #266676
    beckyH
    Participant

    Hi,

    I have buddypress installed and I’m using for a company Intranet.

    To create additional fields that I need, I have installed Buddypress Xprofile Custom Fields Type and it works rather well.

    The problem is, I want to store additional info about each person that they can’t edit or see.

    I have figured out how to hide a group of fields when viewing the user’s profile by adding in some code to exclude the group, in this instance the group ID 4:

    <?php
    /**
     * BuddyPress - Members Profile Loop
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
    do_action( 'bp_before_profile_loop_content' ); ?>
    
    <?php if ( bp_has_profile() ) : ?>
    
    	<?php while ( bp_profile_groups() ) : bp_the_profile_group(); if ( bp_get_the_profile_group_id() != '4' ) :?>
    
    		<?php if ( bp_profile_group_has_fields() ) : ?>
    
    			<?php
    
    			/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
    			do_action( 'bp_before_profile_field_content' ); ?>
    
    			<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    
    				<h2><?php bp_the_profile_group_name(); ?></h2>
    
    				<table class="profile-fields">
    
    					<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    
    						<?php if ( bp_field_has_data() ) : ?>
    
    							<tr<?php bp_field_css_class(); ?>>
    
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    
    							</tr>
    
    						<?php endif; ?>
    
    						<?php
    
    						/**
    						 * Fires after the display of a field table row for profile data.
    						 *
    						 * @since 1.1.0
    						 */
    						do_action( 'bp_profile_field_item' ); ?>
    
    					<?php endwhile; ?>
    
    				</table>
    			</div>
    
    			<?php
    
    			/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
    			do_action( 'bp_after_profile_field_content' ); ?>
    
    		<?php endif; ?>
    
    	<?php endif; endwhile; ?>
    
    	<?php
    
    	/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
    	do_action( 'bp_profile_field_buttons' ); ?>
    
    <?php endif; ?>
    
    <?php
    
    /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
    do_action( 'bp_after_profile_loop_content' ); ?>
    

    What I can’t seem to figure out is how to hide the group of fields in Edit mode. So basically, at the minute when a user goes to edit the profile fields, group 4 will display.

    I believe it’s the edit file I need to edit but I’m not a coder. I learnt vb, php etc a decade ago so i get the drift but I’m playing around here and can’t quite get it work with the lack of knowledge I have.

    I have tried doing what I’ve done about but just get an error. Any ideas please?

    <?php
    /**
     * BuddyPress - Members Single Profile Edit
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    /**
     * Fires after the display of member profile edit content.
     *
     * @since 1.1.0
     */
    do_action( 'bp_before_profile_edit_content' );
    
    if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
    	while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    	
    
    <form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" 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( __( "Editing '%s' Profile Group", 'buddypress' ), bp_get_the_profile_group_name() ); ?></h2>
    
    		<?php if ( bp_profile_has_multiple_groups() ) : ?>
    			<ul class="button-nav" aria-label="<?php esc_attr_e( 'Profile field groups', 'buddypress' ); ?>" role="navigation">
    
    				<?php bp_profile_group_tabs(); ?>
    
    			</ul>
    		<?php endif ;?>
    
    		<div class="clear"></div>
    
    		<?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 visibility options for the field.
    				 *
    				 * @since 1.7.0
    				 */
    				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: %s', 'buddypress' ),
    							'<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
    						);
    						?>
    						<a href="#" class="visibility-toggle-link"><?php _e( 'Change', '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 : ?>
    					<div 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>'
    						);
    						?>
    					</div>
    				<?php endif ?>
    
    				<?php
    
    				/**
    				 * Fires after the visibility options for a field.
    				 *
    				 * @since 1.1.0
    				 */
    				do_action( 'bp_custom_profile_edit_fields' ); ?>
    
    				<p class="description"><?php bp_the_profile_field_description(); ?></p>
    			</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' ); ?>
    
    	<div class="submit">
    		<input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?> " />
    	</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 endwhile; endif; ?>
    
    <?php
    
    /**
     * Fires after the display of member profile edit content.
     *
     * @since 1.1.0
     */
    do_action( 'bp_after_profile_edit_content' ); ?>
    

    Thank you

    #266577
    rikardo85
    Participant

    Hello,

    I’m a newbie to buddypress and have a couple of hopefully simple questions before I implement to a website.

    – How can I allow profiles to be visible to all types of users? I.e users do not have to be logged into see profiles?

    – Can I add repeater fields to the registration form process? If not can I use the advanced custom fields (ACF) plugin?

    Any help much appreciated.

    Thanks

    axew3
    Participant

    In the hope that the topic is inserted into the correct forum (i’m first time here and i’m little confused to be honest, in case so, please change this topic node location) …
    I’m checking the buddypress code into class-bp-xprofile-field.php because i need profile fields data when profile fields are updated by user, and i see three actions about profile fields update (there are more, but i need these) which are:
    xprofile_group_after_save, xprofile_field_after_save and xprofile_updated_profile. This last one is the only one that work. And i’ll go using this so, but asking to myself if there is any reason why, the other two instead fails?

    function action_xprofile_updated_profile( $user_id, $posted_field_ids, $errors, $old_values, $new_values ) { 
        // work fine
    }; 
             
    // add the action 
    add_action( 'xprofile_updated_profile', 'action_xprofile_updated_profile', 10, 5 ); 
    
        // define the xprofile_group_after_save callback 
        function action_xprofile_group_after_save( $array ) { 
        // not work
        }; 
                 
        // add the action 
        add_action( 'xprofile_group_after_save', 'action_xprofile_group_after_save', 10, 1 ); 
    
        // define the xprofile_field_after_save callback 
        function action_xprofile_field_after_save( $array ) { 
         // not work
        }; 
                 
        // add the action 
        add_action( 'xprofile_field_after_save', 'action_xprofile_field_after_save', 10, 1 );
    #266413
    artempr
    Participant

    i ve add a new “City” field as a dropdown select box to the user profile. But for 300 cities it is ridiculous to add 300 options or even more. So i defined js function which takes cities from table and creates dropdown menu of cities on the fly. Everything works fine except when i enter the profile and try to change city to another city, i get an error (because these cities is not located in the xprofile_fields table but created on the fly by js fucntion). So what i should do in that case?

    coolhunt
    Participant
    <table class="profile-fields">
    
    					<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    
    						<?php if ( bp_field_has_data() ) : ?>
    
    							<tr<?php bp_field_css_class(); ?>>
    
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    
    							</tr>
    

    I found this at bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php

    I have no idea about HTML.. any tips?

    coolhunt
    Participant

    Hey Guys,

    Im on the newest install of WP & BP and im using the twenty seventeen theme.

    The Problem:
    The members profile – profile fields are displayed in a TWO COLUMN table. However, I would like to have this displayed so that its just a SINGLE COLUMN.

    The profile “field names” are on the left and the user entries to that “field” are on the right. – How can I get it so thats its just a single columm?

    Where do I need to start modifying this?

    #266342
    Victor
    Participant

    I’m trying to get HyperDB to work width Buddypress.

    I’m trying to move bp_activity, bp_activity_meta, bp_notifications, notifications_meta, xprofile_data, xprofile_fields, bp_xprofile_groups, bp_xprofile_meta into there own ‘Buddypress’ database. But it does not work.

    I’m getting this error: Undefined variable: server

    Here is my current config:

    $wpdb->add_database(array(
        'host'     => DB_HOST,
        'user'     => DB_USER,
        'password' => DB_PASSWORD,
        'name'     => 'DATABASE-NAME',
        'write'    => 1,
        'dataset'  => 'bpress',
    ));
     else if(preg_match("/bp_activity/", $wpdb->table)){
        return 'bpress';
    }

    Witch preg_match should I use?

    Anyone that is using HyperDB with Byddypress?

    mortspud
    Participant

    I have an xprofile field called “Biography” which is a multi-line text area.

    In profile-loop.php I am trying to output the content of this xprofile field in a certain place.
    Usually this does the trick for all the other xprofile fields:
    bp_profile_field_data( 'field=Biography' );
    However when this is outputted, it loses all it’s formatting from the rich text editor that the member enters on their edit.php page.

    I have also tried to mimic the native BP profile-loop.php code:

    while ( bp_profile_fields() ) : bp_the_profile_field();
    if (bp_get_the_profile_field_id() == 37) :
    bp_the_profile_field_value();
    endif;
    endwhile;

    but this hasn’t worked either.

    Can someone please enlighten me on how to output this multi-line text area while keeping its formatting?

    Many thanks.

    #266208
    dave8528
    Participant

    Hi,

    I’m on WP version 4.7.4 and BP 2.8.2
    I like to add and modify profile fields from admin area if possible. Any tips will greatly be appreciated.

    #266200
    jeffersonbrunheira
    Participant

    Hi,

    After instalation plugin, show error message:

    [30-May-2017 16:02:22 UTC] Erro de banco de dados do WordPress Table ‘portal.wp_2_bp_xprofile_fields’ doesn’t exist para a consulta SELECT name, parent_id, type type FROM wp_2_bp_xprofile_fields feita por require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/woffice_2.4.1/woffice/page.php’), get_footer, locate_template, load_template, require_once(‘/themes/woffice_2.4.1/woffice/footer.php’), wp_footer, do_action(‘wp_footer’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_admin_bar_render, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Woffice_Setup->toolbar_admin_menu, woffice_get_settings_option, fw_get_db_settings_option, FW_Db_Options_Model->get, FW_Db_Options_Model_Settings->get_options, _FW_Component_Theme->get_settings_options, _FW_Component_Theme->get_options, fw_get_variables_from_file, require(‘/themes/woffice_2.4.1/woffice/framework-customizations/theme/options/settings.php’), _FW_Component_Theme->get_options, fw_get_variables_from_file, require(‘/themes/woffice_2.4.1/woffice/framework-customizations/theme/options/buddypress.php’)

    Help me, please?

    Thank’s

    Jmantis
    Participant

    Hi,

    I followed this guide: https://buddypress.org/support/topic/display-users-social-follow-buttons-in-profile/ and added social profiles’ icons to members’ profiles. But how can we also add it to members’ loop on Members directory page? I found that using this code

    <?php echo bp_member_profile_data('field=Field Name'); ?>

    you can insert profile fields, but that simply inserts whatever user put inside text field. How to make it an icon such as Facebook and Twitter, like we did inside members profile?

    gebkn
    Participant

    Hi

    My site has different user types/roles that each have different profile fields they need to fill out when registering. I have handled this by hiding/showing fields on the registration page with jQuery based on the chosen user type. The problem being that this solution is hard to maintain when adding/removing fields, so I am looking for a better solution.
    I want to use the different xprofile groups and connect each group to each of the user types, which I have managed. The problem is I could not show more than the default group on the registration page (I have searched and tried a bunch of solutions for this to no avail).
    I think I will have to make users only fill in username+password+email and then redirect them to a form where they fill out the user type, followed by the profile fields in the group that corresponds to the chosen type.
    Any tips on how to do this? I couldn’t find any plugins that handles this unfortunately.

    I hope I explained my problem properly

Viewing 25 results - 901 through 925 (of 5,755 total)
Skip to toolbar