Skip to:

Search Results for 'profile fields'

Viewing 25 results - 1 through 25 (of 4,250 total)
  • Author
    Search Results
  • #239800
    Profile photo of shanebp

    I’m calling it from the buddypress-xprofile-custom-fields-type plugin, do you think could be some filter that intercept querystring and reset it ?

    I doubt it.
    Where in the plugin are you calling it?
    In a function?
    And what is that function hooked to?
    Is that hook being called on the page where you manually call the $_GET? Probably not.

    Profile photo of city4run

    Hello Shane,
    I called manually the URL in the browser with the ?var1=TEST to be sure that it’s called properly but nothing change.

    I’m calling it from the buddypress-xprofile-custom-fields-type plugin, do you think could be some filter that intercept querystring and reset it ?

    Profile photo of starbuck

    I’m building a site where a user’s identity in one group isn’t related to his/her site identity, and where the identity is different across groups.

    So for example, the site provides single-signon between that site and this site. But while I’m Starbuck there, I might prefer to be “MrBuddy” here, or “TechDude” in some other developer site.

    My application is for a single site but the concept is the same. A user has a single site account and wants to be in different groups where he is recognized by a different name, has different different profile fields, etc.

    Given that scenario I’m also trying to figure out the best way to manage group invitations. Some people invited to a group will already be site members. Rather that requiring group admins to have the email address for all group members I’d prefer that they invite site members by their member name/ID, with an email going out to the user from the site using a stock template : “You’ve been invited to the ZSite group Blah, click here to accept…”.

    Can anyone refer me to extensions/plugins for this? I’ve found some that do some of this, but not all, and nothing that’s been maintained for a while.


    Profile photo of dsr07mm

    Ok so this comes from complete beginner when coding come in question.

    Can I actually change like complete design/template of buddypress profile page look ? I dont mean on fields and tabs, I mean about making everything smaller ?

    Also I would like to add comment count and history including follow button for profiles.

    Any links to guides/example where I could learn more about that if its possible it would be appreciated.

    Profile photo of danbp

    Please search before asking. Search: Remove Profile Links brings up:

    Profile photo of tammywashington

    We are using WordPress Multisite version 4.2.2 with sub-domain folders. We are using the following plugins:

    BuddyPress ver., BuddyPress Xprofile Custom Fields Type ver. 2.1.6, and s2Member Framework ver. 150311 + s2Member Pro v150311.

    When a user uploads their avatar image to the primary website along with additional BuddyPress Profile Custom Field information the avatar image does not show in the subdomain for the user account. We added the following code to the bp-custom.php file suggested from this link but it still does not allow the profiles images to show in the sub-domain:

    /* This fixes the MULTIBLOG avatar problem */
    function nfm_bp_avtar_upload_path_correct($path){
    if ( bp_core_is_multisite() ){
    // $path = ABSPATH . get_blog_option( BP_ROOT_BLOG, ‘upload_path’ );
    $path = ABSPATH . ‘wp-content/uploads/';
    return $path;

    add_filter(‘bp_core_avatar_upload_path’, ‘nfm_bp_avtar_upload_path_correct’, 1);

    function nfm_bp_avatar_upload_url_correct($url){
    if ( bp_core_is_multisite() ){
    $url = get_blog_option( BP_ROOT_BLOG, ‘siteurl’ ) . ‘/wp-content/uploads';
    return $url;

    add_filter(‘bp_core_avatar_url’, ‘nfm_bp_avatar_upload_url_correct’, 1);

    Profile photo of tstrickland415

    Ok now everything works as you mentioned, but there’s just one caveat. The xprofile gets updated fine, but it’s not updating the actual Members Type field in the Extended Profile section of the Users panel in the backend.

    To clarify, when we make the xprofile field it’s a completely separate field than the Members Type field that Buddypress introduced recently. So in the Users->Extended Profile section there’s two fields for Member Types, the one we created and the one Buddypress introduced. Your code is only affecting the one we created and not the real Buddypress Member Type field. Is there a way to have the BP Member Type field get updated with the corresponding member type from the xprofile field?

    Profile photo of danbp

    Yes indeed, there is a way.

    Step by step tutorial with example code which you add to bp-custom.
    Note: use this code as is and follow the instruction. Once you understood what it does and how it works, you will be able to modify it to your needs.

    First, create a new xprofile field in the first group field (aka Base Group and containing Name as default field). Only fields created in that group are visible on the register page. Call it Type, enter description and choose multiselectbox as field type. Add operator, vendor, coach as select option.

    That’s all for the register part handled by BuddyPress.

    Now we need to declare the whole thing to get it work on front-end.
    Member-type is an additionnal functiony to select members by… type ! Not by role, not by latest, mst popular or anything else. Just (for the moment) by a custom type of your choice.

    We have to built a member directory for our types. We have 3 types and they will be shown on 3 new tabs on that directory.

    1) we formally declare the member types
    2) we count members by type (to stay correctly informative on the directory)
    3) we display the tabs

    function using_mt_register_member_types() {
    	bp_register_member_type( 'operator', array(
    		'labels' => array(
    			'name'          => __( 'Operators', 'using-mt' ),
    			'singular_name' => __( 'Operator', 'using-mt' ),
    	) );
    	bp_register_member_type( 'vendor', array(
    		'labels' => array(
    			'name'          => __( 'Vendors', 'using-mt' ),
    			'singular_name' => __( 'Vendor', 'using-mt' ),
    	) );
    	bp_register_member_type( 'coach', array(
    		'labels' => array(
    			'name'          => __( 'Coaches', 'using-mt' ),
    			'singular_name' => __( 'Coach', 'using-mt' ),
    	) );
    add_action( 'bp_init', 'using_mt_register_member_types' );
    function using_mt_count_member_types( $member_type = '', $taxonomy = 'bp_member_type' ) {
    	global $wpdb;
    	$member_types = bp_get_member_types();
    	if ( empty( $member_type ) || empty( $member_types[ $member_type ] ) ) {
    		return false;
    	$count_types = wp_cache_get( 'using_mt_count_member_types', 'using_mt_bp_member_type' );
    	if ( ! $count_types ) {
    		if ( ! bp_is_root_blog() ) {
    			switch_to_blog( bp_get_root_blog_id() );
    		$sql = array(
    			'select' => "SELECT t.slug, tt.count FROM {$wpdb->term_taxonomy} tt LEFT JOIN {$wpdb->terms} t",
    			'on'     => 'ON tt.term_id = t.term_id',
    			'where'  => $wpdb->prepare( 'WHERE tt.taxonomy = %s', $taxonomy ),
    		$count_types = $wpdb->get_results( join( ' ', $sql ) );
    		wp_cache_set( 'using_mt_count_member_types', $count_types, 'using_mt_bp_member_type' );
    	$type_count = wp_filter_object_list( $count_types, array( 'slug' => $member_type ), 'and', 'count' );
    	$type_count = array_values( $type_count );
    	if ( empty( $type_count ) ) {
    		return 0;
    	return (int) $type_count[0];
    function using_mt_display_directory_tabs() {
    	$member_types = bp_get_member_types( array(), 'objects' );
    	// Loop in member types to build the tabs
    	foreach ( $member_types as $member_type ) : ?>
    	<li id="members-<?php echo esc_attr( $member_type->name ) ;?>">
    		<a href="<?php bp_members_directory_permalink(); ?>"><?php printf( '%s <span>%d</span>', $member_type->labels['name'], using_mt_count_member_types( $member_type->name ) ); ?></a>
    	<?php endforeach;
    add_action( 'bp_members_directory_member_types', 'using_mt_display_directory_tabs' );

    We also need to sort the members list on each type tab using the loop scope.

    function using_mt_set_has_members_type_arg( $args = array() ) {
    	// Get member types to check scope
    	$member_types = bp_get_member_types();
    	// Set the member type arg if scope match one of the registered member type
    	if ( ! empty( $args['scope'] ) && ! empty( $member_types[ $args['scope'] ] ) ) {
    		$args['member_type'] = $args['scope'];
    	return $args;
    add_filter( 'bp_before_has_members_parse_args', 'using_mt_set_has_members_type_arg', 10, 1 );

    And we finally clean the cache to stay up to date with the output

    function using_mt_clean_count_cache( $term = 0, $taxonomy = null ) {
    	if ( empty( $term ) || empty( $taxonomy->name ) || 'bp_member_type' != $taxonomy->name )  {
    	wp_cache_delete( 'using_mt_count_member_types', 'using_mt_bp_member_type' );
    add_action( 'edited_term_taxonomy', 'using_mt_clean_count_cache', 10, 2 );

    That’s all for a members directory page showing All Members and tabed Members by type.

    If you want to show the type of a member on his profile header, use this:

    function using_mt_member_header_display() {
    	$member_type = bp_get_member_type( bp_displayed_user_id() );
    	if ( empty( $member_type ) ) {
    	$member_type_object = bp_get_member_type_object( $member_type );
    	<p class="member_type"><?php echo esc_html( $member_type_object->labels['singular_name'] ); ?></p>
    add_action( 'bp_before_member_header_meta', 'using_mt_member_header_display' );

    Or if you want to display the type under each user avatar on the member directory, you can use this snippet. Note: was originally made to add a geoloc shortcode below the member type. I let it as is, so you can see how it’s done.

    function who_are_you_directory() { // by member_type name + geoloc (wpgeo me)
    $user = bp_get_member_user_id();
    $terms = bp_get_object_terms( $user,  'bp_member_type' );
    	if ( ! empty( $terms ) ) {
    		if ( ! is_wp_error( $terms ) ) {		
    				foreach( $terms as $term ) {
    					echo '<p>' . $term->name . '</p>'; 					
    					echo do_shortcode('[gmw_member_info]');
    add_filter ( 'bp_directory_members_item', 'who_are_you_directory' );

    Anything inspired by Codex and heavy topics reading.

    May this help.

    Profile photo of PersepolisTehran

    I changed this note “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” to my custom note, and i changed “Blog detail” to “Profile detail”. Then i made 2 file : 1) – . 2) buddypress-en_US.po and i uploaded both to /wp-content/languages/plugins/ .

    Profile photo of danbp


    i’m part of the one percenter who cares about well formed urls and a basic system which is working on 23% of www’s sites !

    If you have enhancement ideas, feel free to post in the appropriate forum or open a ticket on Trac.

    BP is only a WP plugin and doesn’t handle registration. On the other hand, WP use a very short registering form, containing 3 fields: username, email and password.

    First and last name are optionnal fields on the standard WP user profile. These fields are not mandatory, never appear on the registration page and it’s in the freedom of everyone to use them or not. When BP is installed, he provides a mandatory Name field, which can be used to enter a username or a first/last name.

    Even if i have no percentage to give you, i’m pretty sure that almost all users are satisfied to use a CMS which doesn’t ask them for real names at first ! And why not their address, blood group, gran’mother nickname or their mom’s phone number ?

    This are privacy options, and WP is smart enough to not abuse of such things, by default. Smart enough also to use the simpliest existing register routine, like all other major web operators, a username, a valid email and an encrypted password.

    Anything else is matter of flexibility, one of the major interrest to use BuddyPress. And definetly no, not all communities have members who knows each others. Don’t make you the spokeman of such behalf speculation. 😉

    I think you’re confused by system requirements and your own desires. To get it clear for the register aspect, read here please.

    Oh, and the answer to your question is here:

    Profile photo of poco06


    I’m creating a Buddypress site with different types of members (men, women and couples).
    For each type, I have defined some fields (age, color, size …)
    In case the option “couple” is chosen, I need to fill all fields (both men and women) and for the other tupes, only the related fields.
    My question here is : how to manage this kind of problem within Buddypress?

    The issue there is on the subscription, but also on member profile.
    Thanks for your advices.

    Profile photo of shavonn4prez

    I am doing a multi-step registration thing. The user will select from 3 drop-downs to begin. I am posting them to the registration page and then updating the fields there via JS.

    My issue is getting the options on the first page. I need to get the 3 dropdowns there- Is this possible?

    Profile photo of Shamonabona

    So what I want to try to do is create a page called matchmaking, which essentially matches users together based on fields that they would create using profile fields. How would I go about doing this?

    Profile photo of minglonaire

    Default Privacy:
    Logged in Users

    I would assume this is who can see the profile, but changing the fields does not do anything.

    How is this supposed to work or what is it supposed to do?

    Profile photo of thomasoriis

    @modemlooper – It could be nice if one could handle this from the xprofile fields in wp_admin as well – do you know how to do that ? I don’t think I have to request that feature I am sure it will come.

    Could be nice : )

    Profile photo of David Jensen
    David Jensen

    On the BP registration page, I have several xProfile fields of varying field types.

    If I do a test registration, and purposely leave a required field blank (or similar action to trigger an error message), all the xProfile field values get erased and I have to re-enter them.

    Looking at the code the fields are generated using an admin_field_html() method, but I do not see a way to retain their values if an error occurs.

    Is this possible or can someone lead the way on how to do this?

    Profile photo of

    I am new to BP and have somehow managed to create duplicates in the Extended Profile User Tab. FIRST NAME (required) and LAST NAME (required) is repeated about twenty times each and I am unable to delete them. screenshot of duplicate fields.

    Profile photo of @modemlooper

    Your question is vague. Please tell more. Are you referring to profile fields?

    Profile photo of danbp

    The unique field coming with BP xtended profile is called Name by default. This field name can be changed and you can add some specific description to it to fit your need.

    On the register page you have on the left the 3 mandatory fields from WP

    on the right BP’s Name field in which you can enter first and last name.

    Profile photo of shanebp

    Try this in your theme/functions.php or in bp-custom.php

    function klosurdo_unlink_fields( $field_value ) {
    	$no_link_fields = array( 'Photographer Bio' );
    	$bp_this_field_name = bp_get_the_profile_field_name();
    	if ( in_array( $bp_this_field_name, $no_link_fields ) )
    		$field_value = strip_tags( $field_value );
    	return $field_value;
    add_filter( 'bp_get_the_profile_field_value', 'klosurdo_unlink_fields', 99, 1 );
    Profile photo of Klosurdo


    I like the idea of having certain fields link to other members with the same selection however, in one of the text fields buddypress seems to have arbitrary selected text to link that makes no sense (see screen capture). Why has it selected those sentences as links? Is there a way to remove that from happening without effecting the other dropdown and selection fields. This field should be pure text without arbitrary links.




    In reply to: Email Profile Field

    Profile photo of Hope

    That’s why I said “without using “BuddyPress Xprofile Custom Fields Type” plugin” ^_^ The default BP profile fields don’t include Email field, that’s why I’m using “Text Box”.
    I cannot use the mentioned plugin for now because I’ve done a special processing for some fields, that won’t work with this plugin….

    Profile photo of Hope


    Anybody knows how to make an Email field without using “BuddyPress Xprofile Custom Fields Type” plugin. I’m using a text field but I want the behavior to be opening an email when clicking on the email link (mailto:..).
    How can this be implemented?


    Profile photo of jasnmallory

    Hi, I recently started my first WordPress site, on a new WP 4.2.2 install, and with BP plugin installed, but I can’t find anything inside the plugin about the member type feature!?! I have read up on it, but nothing has let me know exactly what to do to get it on my dashboard, or to enable it in any way… Can someone please hold my hand on this? If I need to copy and paste code from here: I have no idea of where to do it? I’m ready to start populating profiles, but need the member type feature, and separate member type questions/fields in order for the site to function properly. Please help. My site is – Thanks.

    Profile photo of danbp

    hi @tiquality,

    to show the user’s mail above the other user information, you can add the following snippet to bp-custom.php or child-theme’s functions.php

    Assuming users gave a valid email at registration, we can output that address.
    Avantage is that they haven’t to enter their mail a second time while completing their profile.

    So we just need to manually add this address to the template, using one of the action hook avaible in profile-loop.php

    function tiquality_add_custom_field() {
    	if ( bp_is_active( 'xprofile' ) ) :
    		if ( is_user_logged_in() ) {
    	<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    		<table class="profile-fields">
    			<tr class="my_mail">
    				<td class="label">Contact me</td>
    				<td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td>
    add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');

    If you prefer it on the profile header, use the action hook indicated by Brajesh
    add_action('bp_member_header_actions', 'tiquality_add_custom_field');

Viewing 25 results - 1 through 25 (of 4,250 total)
Skip to toolbar