Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi,
    I had a look at the registration page.

    1. Please disable the conditional field plugin. You do not need that for this case.
    2. I will post some code(in couple of hours) to help you get it working.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Sam,
    Thank you.

    Please allow me to update the plugin. Will be releasing in next couple of hours and will be writing back.

    PS:- About upgrading to our membership, I will be providing coupon to get the plugin price discounted from the membership cost.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Pause,
    Thank you for the question.

    I am sorry but I still unsure of the question.

    1. Do you want to list all users who have selected(checked) some of these option and then show them as well as their choices.

    2. Or do you want to list all users who have checked a specific choice? This will be a bit difficult for large number of users(40 is fine).

    PS:- Will you have a lot more users in future or is it going to be limited to few users? I am asking to help me provide you more efficient solution.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi,
    I am sorry but the way you are looking for is not available in BuddyPress.

    What you are looking for a derived/caculated field from the values of another field.

    The general strategy in this case is to use only one field and calculate the other value.

    For example, If a person is Man, you can write code to derive the Research field value as woman.

    There does not seem to be any existing solution for this kind of use case. I do see that you can write some code to sync value of another field based on a field.

    If you can post me the field ids for both the field(and exact options), I will be able to provide you some code to resolve it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] BuddyPress xprofile fields #21396

    Hi Vivek,
    No,
    The answer was in context to “member type field”.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Joss,
    I am using the hook provided by you in the previous reply

    
    gwangi_buddypress_member_xprofile_custom_fields
    

    Please ask the theme developer for the correct hook or you can use the updated code like this

    
    
    function buddydev_show_pmpro_membership_level_in_dir() {
    	if ( ! bp_is_members_directory() ) {
    		return;
    	}
    	// for the logged in user.
    	$level = pmpro_getMembershipLevelForUser( bp_get_member_user_id() );
    
    	if ( ! $level ) {
    		return;
    	}
    
    	echo '<div class="bp-member-xprofile-custom-field bp-member-level">' . $level->name . '</div>';
    }
    
    add_action( 'gwangi_buddypress_member_xprofile_custom_fields', 'buddydev_show_pmpro_membership_level_in_dir', 10 );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Adi,
    You are welcome. Glad that I was able to assist.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    No problem.
    You are welcome 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: BuddyPress Activity Shortcode #21385

    Hi Max,
    Thank you for asking.

    I am not sure what kind of lazy load you are referring to. Is it about images? It will depend on the plugin/code offering lazyload whether they will work with it or not(they work with selectors most of the time). My suggestion will be to give a try and see how it goes.

    Regards
    Brajesh