BuddyDev

Search

Replies

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

    Hello Milan,

    Please try the following code. It will allow editing MediaPress activity text.

    
    function buddydev_modify_activity_allowed_type( $allowed_types ) {
    
        if ( ! in_array( 'mpp_media_upload', $allowed_types ) ) {
            $allowed_types[] = 'mpp_media_upload';
        }
    
        return $allowed_types;
    }
    add_filter( 'bp_editable_activity_allowed_type', 'buddydev_modify_activity_allowed_type' );
    
    

    Please let me know it works.

    Regards
    Ravi

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

    Hello Gregg,

    Please try the following code. It will hide report button form certatin groups.

    
    function buddydev_modify_report_button( $button, $args ) {
    
    	if ( 'bp_group' != $args['item_type'] ) {
    		return $button;
    	}
    
            // Replace by you groups id.
    	$hide_for_groups = array( 43, 42 );
    
    	if ( in_array( $args['item_id'], $hide_for_groups ) ) {
    		$button = '';
    	}
    
    	return $button;
    }
    
    add_filter( 'bpmts_report_button', 'buddydev_modify_report_button', 10, 2 );
    
    

    Please let me know if works.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Buddypress Anonymous Activity #24385

    Hello Nic,

    To show the ui as optional. Please modify the above code

    Replace the following code

    
    /**
     * Disable UI.
     */
    add_filter(
    	'bp_anonymous_is_valid_screen',
    	function ( $valid ) {
    		return false;// don't show ui.
    	}
    );
    
    

    with

    
    /**
     * Disable UI.
     */
    add_filter(
    	'bp_anonymous_is_valid_screen',
    	function ( $valid ) {
    
    		if ( ! bp_is_group() ) {
    			return $valid;
    		}
    
    		// Do not show ui on anonymous groups.
    		$anonymous_groups = array( 43, 42 );// please change with the group ids.
    
    		return ! in_array( bp_get_current_group_id(), $anonymous_groups );
    	}
    );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Share Activity #24323

    Hello Jennifer,

    Thank you for posting. Link preview only works if the site supports an oembed feature. WordPress does support its content like posts as embed content means if you post a link of a post. It will show the post in an embedded view. BuddyPress only support single activity link in the embedded view.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] User age #24308

    Hello Anders,

    Thank you for posting. Try the following plugin.

    https://wordpress.org/plugins/bp-xprofile-custom-field-types/

    It has a field type for birthday with date format = “Time elapsed” and Show age instead of birthdate setting checked. It will show updated age with current time.

    Regards
    Ravi

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

    Hello Violla,

    Thank you for posting. Please download the latest version of the plugin and give it a shot and let me know if it works or not.

    You can download from the following url:
    https://buddydev.com/downloads/bp-notify-post-author-blog-comment/versions/bp-notify-post-author-on-blog-comment-1-0-7.zip

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] ffmpeg video preview #23759

    Hello Max,

    We have fixed the bug of admin tables not showing data. Please update the plugin to the latest version.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BuddyPress Extended Friendship Request #23696

    Hello Axel,

    I have tested the plugin with the BP-Nouveau template pack. After checking the above-mentioned issue I found that bug is generating because Nouveau has a different element structure which causing the problem. Because of the priority of other projects, we can not fix this now. But in the next week release, we will fix this issue and let you know.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Friend notification #23673

    Hello Lucytech,

    Currently it is supporting only following user to show their activity on followed by user profile. But activity of followers that a user follow activity can be added to user activity stream using some custom code.

    Check this plugin for more info about followers and following
    https://github.com/r-a-y/buddypress-followers

    Friends just like normal friends of user.

    Regards
    Ravi

    • This reply was modified 6 years, 1 month ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: two notifications when a user comments on post #23670

    Hello Lucytech,

    Thank you for acknowledgement. It is now showing notification generated by BuddyPress and it is a default behaviour of BuddyPress. This notification is generated when there is a new reply on an activity in scenario activity type is different like post_update, friendship_created, new_blog_comment etc. So, It is not suitable to modify this.

    Regards
    Ravi