BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 66

    youre absolutely correct, i dont know why but when i try to activate it again it just activates the parent theme…

  • Participant
    Level: Enlightened
    Posts: 66

    Brajesh, for some reason after updating BP none of this code in my child theme functions.php is working, the slug stays buddyblog and all cats + tax show:

    define( 'BP_BUDDYBLOG_SLUG', 'battleblog');
    function buddydev_add_default_category_to_post( $post_id ) {
        
    	$tax = array_filter( $_POST['tax_input'] );
    	
    	if( empty( $tax ) && $post_id ) {
    		//no category was set
    		$term = 79;//ID
    		wp_set_object_terms( $post_id, $term, 'category' );
    		
    	}
        }
    
    function buddyblog_show_custom_cats( $settings ) {
    	$tax = array();
    
    	$tax['category'] = array(
    
    		'taxonomy'  => 'category',
    		'view_type' => 'dd',
    		'child_of'  => 91, //CHANGE It with the correct ID,
    		'orderby'   => 'slug',
    		'order'     => 'ASC'
    	);
    
    	$tax['post_tag'] = array(
    
    		'taxonomy'  => 'post_tag',
    		'view_type' => 'dd',
    		'include'   => array( 83,85,88,92),// tag ids.
    		'orderby'   => 'slug',
    		'order'     => 'ASC',
    	);
    
    	$settings['tax'] = $tax;
    
    	return $settings;
    }
    add_filter( 'buddyblog_post_form_settings', 'buddyblog_show_custom_cats', 100 );
    add_action( 'bsfep_post_saved', 'buddydev_add_default_category_to_post' );

    I never had a bp-custom.php, I just used the child function file and it worked before. If that is why its not woorking now where in my child can i add that file?

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on in reply to: restrict upload types buddypress #18980

    I agree with you 100%, but whenever i mention to them a buddypress compatibility issue they act insulted as if I am talking bad about the work they’ve done, but in reality all I’m doing is trying to improve usability for everyone including myself. I feel like they dont actually know how to fix it and the only way I will get them to implement any improved code is if i give it to them. I might be good at finding bugs and issues but I sure cant write php!

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on in reply to: Conditional Profile Fields #18974

    could this be fixed with a custom registration template in the child theme?

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on in reply to: restrict upload types buddypress #18973

    maybe i can just block filetypes in uploads with htaccess rules

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on in reply to: font awesome icons in tabs #18972

    no you are right they never had any sub tabs at all. I wonder if this is fixable by customizing the child theme

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on in reply to: font awesome icons in tabs #18966

    yeah unfortunately this only works on top level tabs but wont allow me so save on subs. Good catch though at least I can do my main tabs now

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on in reply to: font awesome icons in tabs #18950

    any luck with a little snippet?

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on in reply to: Conditional Profile Fields #18949

    ill try to get them to make a new registration page template but i doubt they will

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on in reply to: font awesome icons in tabs #18941

    Absolutely, and wherever you are happy Thanksgiving from america brother.