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: 25456
    Brajesh Singh on in reply to: Amazon s3 integration #6209

    Hi Richard,
    Please use any of the existing plugin for offloading media. They should work out of the box. All MediaPress media is just attachment.

    Hope that helps.
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Ken,
    Sure we can. here is the updated code from the above example.

    
    
    function buddyblog_limit_terms( $settings ) {
    
    	if ( ! isset( $settings['tax'] ) ) {
    		return $settings;
    	}
    
    	$tax = $settings['tax']; //it is multi dimensional array
    
    	$tax_terms = array(
    		'category'=> array(1, 53 ), // tax_name=> term_ids
    		'post_tag' => array( 7, 9 ), //add as you please, //you can add other taxonomy too
    	);
    
    	foreach ( $tax_terms as $taxonomy => $terms ) {
    
    		if ( ! isset( $tax[ $taxonomy ] ) ) {
    			$tax[ $taxonomy ] = array();
    		}
    
    		$tax[ $taxonomy ]['include'] = $terms;
    	}
    
    	//update settings
    	$settings['tax'] = $tax;
    
    	return $settings;
    
    }
    add_filter( 'buddyblog_post_form_settings', 'buddyblog_limit_terms' );
    
    

    It is simplified to use multiple taxonomies.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: [Resolved] BP Member Multiple Types #6198

    Hi Marc,
    My apologies. I just missed it. I see you are looking for multi fields. Please give me a day and I will update the plugin.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: [Resolved] BP Member Multiple Types #6196

    Hi Marc,
    Please put this line in your bp-custom.php

    
    add_filter( 'bd_xprofile_field_type_membertype_as_radio', '__return_true');
    

    We have it mentioned on the page, It seems you skipped it somehow.

    In future, we will allow it from the xprofile field create/edit page too.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Marc,
    I am sorry but I can not understand the context. Which plugin/code are you using for the State/City combo.

    I will advise to ask the author of that code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: [Resolved] BP Member Multiple Types #6192

    Hi Marc,
    BuddyPress allows users to have multiple Member types but the management interface is not yet appropriate for that.

    The BP Member Types Generator plugin does not manage adding member type to user. It simply manages registering the member type.

    If you are using our BuddyPress Member Type Xprofile Field plugin, Then you can certainly ask it to use checkboxes at registration.

    Please see this
    https://buddydev.com/plugins/bp-xprofile-member-type-field/

    Hope that helps.
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Please put the code in bp-custom.php .

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Ken,
    hope you are doing fine.

    Please use the following code and modify the term ids with your own to include only them.

    
    
    function buddyblog_limit_terms( $settings ) {
    
    	if ( ! isset( $settings['tax'] ) ) {
    		return $settings;
    	}
    
    	$tax = $settings['tax']; //it is multi dimensional array
    
    	$taxonomy = 'category';//name of taxonomy
    
    	// Array  of term ids to include.
    	$terms = array(1, 53 ); //term ids
    
    	if( ! isset( $tax[ $taxonomy ] ) ) {
    		$tax[ $taxonomy ] = array();
    	}
    
    	$tax[ $taxonomy ]['include'] = $terms;
    
    	//update settings
    	$settings['tax'] = $tax;
    	
    	return $settings;
    
    }
    add_filter( 'buddyblog_post_form_settings', 'buddyblog_limit_terms' );
    

    Hope that helps.

    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Owen,
    I will test with Kleo and post the code evening today or early tomorrow. It may need some css.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Ken,
    I am sorry I missed it. I will post the code today(Around noon PST).

    Thank you
    Brajesh