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
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Bin,

    Thank you for the acknowledgment. Please remove the previous code and use the following code. It will work. Please let me know if there is an issue.

    
    /**
     * Filter categories on group create screen
     *
     * @param array $args       An array of get_terms() arguments.
     * @param array $taxonomies An array of taxonomies.
     *
     * @return array
     */
    function buddydev_bcg_filter_categories( $args, $taxonomies ) {
    
    	if ( ! function_exists( 'buddypress' ) || ! bp_is_active( 'groups' ) ) {
    		return $args;
    	}
    
    	if ( bp_is_group_creation_step( 'blog-categories' ) || bp_is_group_admin_screen( 'blog-categories' ) ) {
    		// Replace category ids with your category ids you want to show from the page.
    		$args['include'] = array( 33, 35 );
    	}
    
    	return $args;
    }
    
    add_filter( 'get_terms_args', 'buddydev_bcg_filter_categories', 10, 2 );
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Latest upgrade to BCFG brought down my server #19736

    Thank You for acknowledgment.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Latest upgrade to BCFG brought down my server #19734

    Hello George,

    Sorry, I took things differently. The plugin still works even if you don’t have BP Simple Frontend plugin active and Make plugin completely dependent over Simple Frontend. But I have fixed the bug in the latest version. Please download the latest version.

    Sorry for the inconvenience.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Latest upgrade to BCFG brought down my server #19732

    Hello George,

    Sorry for the inconvenience. But it seems you have deactivated BuddyPress Groups module or BuddyPress Simple Frontend plugin missing. This is the only case plugin throwing this error. But this is a bug of the plugin and I have fixed this by the newer version. Please download the latest version of the plugin. Please let me know if there is an issue or not.

    Plugin Url: https://buddydev.com/plugins/blog-categories-for-groups/

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Question about Blog Categories For Groups setting #19706

    Hello Bin,

    Thank you for posting. It can be done easily. Please use the following code in your “bp-custom.php” file and let me know if it works or not.

    
    /**
     * Filter categories on group create screen
     *
     * @param array $args       An array of get_terms() arguments.
     * @param array $taxonomies An array of taxonomies.
     *
     * @return array
     */
    function buddydev_filter_categories_on_group_create_screen( $args, $taxonomies ) {
    
    	if ( ! function_exists( 'buddypress' ) || ! bp_is_active( 'groups' ) || ! bp_is_group_creation_step( 'blog-categories' ) ) {
    		return $args;
    	}
    	// Replace category ids with your category ids you want to show from the page.
    	$args['include'] = array( 33, 35 );
    
    	return $args;
    }
    
    add_filter( 'get_terms_args', 'buddydev_filter_categories_on_group_create_screen', 10, 2 );
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: customize email notification #19675

    Hello Mike,

    We have updated the plugin. Now you can modify email from Emails menu in the backend. Please let me know if it works or not. Please download the latest version of the plugin.

    https://buddydev.com/plugins/recent-visitors-for-buddypress-profile/

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Translation issue with plugin "BuddyPress User Circles" v1.0.2 #19674

    Hello Thorsten Wollenhöfer,

    I have added German translation file to the plugin. Please download the latest plugin version and let me know if it works or not.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Panos,

    Thank you for the acknowledgment.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Panos,

    I have tested the plugin on my local development server and it is working fine. Please let me know which version of the plugin you are using it was a bug in older version but fixed by the new version.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Tosin,

    Thank you for the acknowledgment. Yes plugin is conflicting with our custom code. Please use the following code and let me know it works or not.

    
    function buddydev_hide_buttons() {
    
    	if ( ! is_user_logged_in() ) {
    		return;
    	}
    
    	$restricted_user_ids = array( 5, 26, 10, 4 ); // Replace by yours user ids.
    
    	if ( ! in_array( get_current_user_id(), $restricted_user_ids ) ) {
    		return;
    	}
    
    	if ( function_exists( 'bp_profile_message_ux_init' ) ) {
    		remove_all_filters('bp_get_send_public_message_button');
    		remove_all_filters('bp_get_send_message_button');
    	}
    
    	add_filter( 'bp_get_send_public_message_button', '__return_false' );
    	add_filter( 'bp_get_send_message_button_args', '__return_false' );
    }
    add_action( 'bp_init', 'buddydev_hide_buttons', 11 );
    

    Regards
    Ravi