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: 25472
    Brajesh Singh on in reply to: How to add a report button? #44204

    Hi,
    Thank you for the question.

    BuddyPress Moderation tools does all of the above and more.

    https://buddydev.com/plugins/buddypress-moderation-tools/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: filtering activities #44202

    Please visit Dashboard->Appearance->Widgets, you will find the site wide activity widget there and once you add it, the widget settings will appear.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: filter activity stream #44200

    Hi Fabien,
    Thank you for the question.

    It seems you are using the plugin from a different developer. Please contact their support for the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: change in post permalink structure #44195

    Hi Tosin,
    Thank you.
    It seems fine but most of the code is not even necessary. There is no need to rewrite the attachment/feeds etc.

    also, if you change the permalink in WordPress, the front value only affects other post types(custom post types) when with front is true. If you have only limited number of custom post types and you have control over how they are being registered, you can simply add rewrite=>array( ‘with_front’ => false)

    This approach will be much suited if you have control over registered post type.

    If the post types are being registered by 3rd party plugins, you may keep the above code insead.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Carsten,
    Thank you.

    Please do keep me informed.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: BuddyPress Profanity Filter extended functionality #44186

    Hi Cristi,
    Thank you for the question.

    We don’t have experience with that plugin. Our plugin does offer an API to filter any content.

    You can use the following method to get the filtered content

    
    $filtered_content = bp_profanity_filter_get_parsed_content( "the content to be filtered" );
    

    You may get help from the plugin’s support in using that function and filtering the content.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Giuseppe,
    You can dd the following code to redirect to site home.

    
    // redirect to site home when auto logging after activation.
    add_filter( 'bpdev_autoactivate_redirect_url', function ( $url ) {
    	return home_url();
    } );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Carsten,
    Thank you for posting.

    I had a look and I am unable to find a reason.

    1. The user list in header only shows limited number of entries(5 by default). You can control that from the plugin settings. can you please check if it is set to 3?

    2. The members loop(directory/profile loop) gets affected by other code or plugins hiding users as they are standard BuddyPress.

    Please test the plugin on a default installation with any BuddyPress template pack and default WordPress theme without other codes/plugins.

    After that, you can try adding the plugins/code and if you are able to find the conflict, Please let me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Nancy,
    Thank you for the question.
    I am sorry, I could not assist earlier.

    By default, BuddyPress does not add any distinguishing classes for specific member type.

    You may add following code in your child theme’s functions.php or in wp-content/plugins/bp-custom.php or use a snippet manager to add it.

    
    /**
     * Appends bp-member-type-{member-type-id} to body.
     */
    add_filter( 'bp_get_the_body_class', function ( $classes ) {
    
    	if ( ! bp_is_members_directory() ) {
    		return $classes;
    	}
    
    	$member_type = bp_get_current_member_type();
    
    	if ( $member_type ) {
    		array_push( $classes, 'bp-member-type-' . esc_attr( $member_type ) );
    	}
    
    	return $classes;
    } );
    
    

    It will append a class specific to each member type on the member directory.

    For example, for ‘teacher’, the class will be ‘.bp-member-type-teachers’ and do on.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Scoob,
    Thank you.
    We will be pushing the update next week around 4th/5th April.

    Regards
    Brajesh