BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] XProfile Custom Fields allowed file types #43627

    Hello John,

    Thank you for the acknowledgment. Please refer to the link:

    https://github.com/buddydev/bp-xprofile-custom-field-types/blob/master/src/field-types/class-field-type-file.php#L138

    This function output the field display.

    You can use the ‘bpxcftr_file_display_data’ filter to modify the field output as per your need. Please check.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Profile page – sites #43626

    Hello Uros,

    Look under BuddyBoss > Settings > Activity > Posts in Activity Feeds > WordPress from here you can enable Blog component. Just enable “WordPress Posts” this option.

    Please let me know if it helps.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Join Blog Widget can´t be setted #43625

    Hello Uros,

    Thank you for your cooperation.

    Regards
    Ravi

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

    Hello Yuriix,

    Thank you for posting here. Please disable the setting with the name “Allow activity stream commenting on posts and comments” under Dashboard > BuddyPress > Options > Activity Settings

    Please let me know if it helps or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Join Blog Widget can´t be setted #43602

    Hello Uros,

    Thank you for the acknowledgment. I am glad that I could help.

    it is a simple plugin. But we do not aim to provide anything other than joining at the moment. You may hire a developer if you need further customizations.

    Regards
    Ravi

    • This reply was modified 3 years, 4 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Yuriix,

    Please try to use the following code:

    
    
    /**
     * Excerpt length of activity in shortcode context
     *
     * @param int $length No. of words.
     *
     * @return int
     */
    function buddydev_modify_activity_excerpt_length( $length ) {
    	return 50;
    }
    
    add_action( 'bp_activity_stream_shortcode_before_generate_content', function() {
    	add_filter( 'bp_activity_maybe_truncate_entry', '__return_true' );
    	add_filter( 'bp_activity_excerpt_length', 'buddydev_modify_activity_excerpt_length', 100 );
    } );
    
    add_action( 'bp_activity_stream_shortcode_after_generate_content', function () {
    	remove_filter( 'bp_activity_maybe_truncate_entry', '__return_true', 10 );
    	remove_filter( 'bp_activity_excerpt_length', 'buddydev_modify_activity_excerpt_length', 100 );
    } );
    

    Please let me know if it helps you or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] How can I follow my affiliateWP referrer? #43599

    Hello Renaat,

    Thank you for the acknowledgment. I am glad that I could help.

    Regards
    Ravi

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

    Hello Pedrogarcia,

    Thank you for the acknowledgment. Please make sure the group has posted activities within it. If Group has an activity and still showing the message there might be chances that any other plugin or your active theme customizing or conflicts with the activity loop. Please try after deactivating other active plugins except for BuddyPress and Activity Shortcode and switching to the default theme temporarily and let me know if the issue still persists or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] XProfile Custom Fields allowed file types #43592

    Hello John,

    Sorry for the delayed reply. Please use the following code:

    
    add_filter( 'bpxcftr_allowed_extensions', function ( $extensions ) {
    
    	if ( isset( $extensions['file'] ) ) {
    		$new_extensions = array( 'm4a', 'flac', 'mp3', 'mp4', 'aiff', '3gp' );
    
    		$extensions['file'] = array_merge( $extensions['file'], $new_extensions );
    	}
    
    	return $extensions;
    } );
    
    

    It will allow users to upload files of the mentioned extension. But File will be shown as a download link. Also, It might not support all formats.

    Regards
    Ravi

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

    Hello Yuriix,

    Thank you for the acknowledgment. I will check for post content type activity and will let you know.

    Regards
    Ravi