New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: BuddyDev Dashboard #13389

    Thank you John.

    I will do a setup and will monitor for next couple of days to see if I am able to replicate it for the plugins.

    Is it happening for all plugins or only few of them? Also, if you can name some that wil help.

    A few of our plugins are not auto up-gradable(due to slug/name conflict).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Groups name change #13388

    Hi Shelley,
    Our forums do not allow reply by email. You replied to an invalid email address.

    Please post me the link here.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] BuddyPress Ajax Registration #13387
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] BuddyPress Ajax Registration #13377
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] BuddyPress Ajax Registration #13375
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Add or Change feature to add link/url to images. #13372

    Hi Tara,
    Welcome to BuddyDev.

    Linking to the original thread for more details on the topic.
    https://wordpress.org/support/topic/use-wordpress-media-uploader-with-mediapress/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Setting up Member Types #13371

    Hi Neil,
    Thank you.

    My apologies for the delayed reply. I have been planning a solution for the scenario.

    Will it be feasible if the same BuddyPress Registration form allowed registering all users? You can send the users a registration form like
    http://example.com/register/?mtp-ref=the_member_type name

    Or we can allow you to add some unique ids(any random hash) for each member type and pass that here.

    As I see, you don’t want your new users to select their member type manually. It should be prefilled based on the url.

    In that case, we can use a strategy to achieve it.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Member Type Email & Configuration #13369

    Hi Mohammad,
    Sorry, I kept you waiting for such a long time.

    Please use the updated code

    
    
    function buddydev_assign_member_type_on_registration( $user_id, $data ) {
    
    	// replace =gender with your field name
    	$gender = isset( $data['gender'] ) ? $data['gender'] : '';
    
    	if ( ! empty( $gender ) ) {
    		if ( 'male' == $gender ) {
    			bp_set_member_type( $user_id, 'member_type_name' ); // please change member type with valid member type.
    		} elseif ( 'female' == $gender ) {
    			bp_set_member_type( $user_id, 'member_type_name' ); // please change member type with valid member type.
    		}
    	}
    }
    add_action( 'arm_after_add_new_user', 'buddydev_assign_member_type_on_registration', 10, 2 );
    
    

    Please make sure to change the member_type_name with appropriate member types(The unique name/key) as registered.

    Also, if it does not work in bp-custom.php, please put it in your theme’s functions.php

    Please let me know how it goes.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] BuddyPress Ajax Registration #13368
    This reply has been marked as private.