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: 25365
    Brajesh Singh on in reply to: Tab Visibility #36232

    Hi Samuel,
    Thank you.

    It is expected as the tab was marked for group admin only.
    We need to add a new access level for the moderator. Please allow me to push an update this week with the new level.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365
    Brajesh Singh on in reply to: BuddyCommerce and Teams for WooCommerce Memberships #36231

    Hi Philip,
    Thank you.

    I have received the plugin.

    will be looking into it in coming weeks.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365
    Brajesh Singh on in reply to: Upload directory is unwritable #36230

    Hi,
    Welcome to BuddyDev.

    I am sorry, the above error is not from MediaPress.

    Are you using any plugin to add the media uploads in the comment?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365
    Brajesh Singh on in reply to: [Resolved] Can you help me with this code. #36229

    Hi Kumar,
    I see the issue now.

    Here is updated code. Please give it a try.

    
    
    function wpdocs_set_html_mail_content_type() {
    	return 'text/html';
    }
    
    function post_notification( $new_status, $old_status, $post ) {
    	global $wpdb;
    
    	if ( $new_status === $old_status || 'publish' !== $new_status ) {
    		return;
    	}
    
    	$post = get_post( $post );
    
    	add_filter( 'wp_mail_content_type', 'wpdocs_set_html_mail_content_type' );
    
    	$aUsersID = bp_get_following_ids( 'user_id=' . bp_loggedin_user_id() );
    	foreach ( $aUsersID as $iUserID ) {
    		$user = get_userdata( $iUserID );
    
    		$to      = $user->user_email;
    		$subject = '[' . get_bloginfo( 'name' ) . '] Nuevo post en el blog';
    		$message = 'Nuevo Post: <a href="' . get_permalink( $post ) . '">' . $post->post_title . '</a>';
    		$message .= '<br/><br/>';
    		$message .= nl2br( $post->post_content );
    		wp_mail( $to, $subject, $message );
    	}
    }
    
    add_action( 'transition_post_status', 'post_notification', 10, 3 );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365

    Hi Anders,
    Thank you for using the plugin.

    It seems the extensions have been reset for some reason.

    Please visit Dashboard->MediaPress->Settings->General and look for the extensions option.

    Please add a comma separated list of extensions( e.g gif,jpeg,png) and so on for each type and save.

    That will make it work.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365

    Hi Andres,
    You may use the BuddyPress Xprofile Custom field Types plugin and use the “Oembed” and “Image” field type for the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365
    Brajesh Singh on in reply to: How to get api #36214
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25365
    Brajesh Singh on in reply to: Max Image resolution in Xprofile custom field types #36213

    Hi Nushara,
    I will add a filter that allows you to manipulate the error message/validation for the image.
    I am not planning to ad dimension setting in the plugin or the ability to resize.

    If we get enough votes on the same, we will add it to the core plugin then. The current goal is to have a basic image field that does not alter it in any way.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365
    Brajesh Singh on in reply to: Max Image resolution in Xprofile custom field types #36203

    Hi Nushara ,
    Thank you for the question.
    At the moment, the plugin does not support the limitations based on image dimension.

    I will pus a filter for validation in next release and then you can use custom code for the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365
    Brajesh Singh on in reply to: Tab Visibility #36202

    Hi Samuel,
    Please link me to a screenshot showing the top level tab’s visibility/availability setting.

    If it is group admin only, normal members should not be able to see it. If they are seeing it, It must be a bug.

    Are you adding the additional tabs via the group tabs pro or modifying it using this plugin?

    Regards
    Brajesh