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: 25253
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25253
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25253
    Brajesh Singh on in reply to: [Resolved] Mediapress effects addon #48745

    Thank you

  • Keymaster
    (BuddyDev Team)
    Posts: 25253
    Brajesh Singh on in reply to: MediaPress Gallery Category #48744

    Hi Earl,
    Thank you for the reply.

    Since last couple of years, we did not push MediaPress much because of the indecision. Originally, MediaPress was built for BuddyPress. We were aware that BuddyPress media integration was about to come but it took a lot longer than we expected(I was expecting in 2020-2021).

    Now that BuddyPress will have its media component, we will have a lot of freedom to re-plan our future.

    At the moment, I am seeing 2 path forward:- Making MediaPress a complete solution for front end use uploaded/shared gallery for WordPress or we add integration for some other platforms that lack media capability. I am more inclined for the first as we can put real effort without worrying about 3rd party compatibility.

    I am still unsure and I am pretty sure that we will have to support MediaPress for BuddyPress for couple of years until most of our members move to the core solution but I am going to rethink its future for sure.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25253

    Hi Nik,
    Thank you.

    Please find the snippet for both the cases.

    
    
    // Allow editors to publish irrespective of form status.
    add_filter( 'bblpro_default_post_status_for_user', function ( $status, $user_id, $form_id, $post_id ) {
    	// can user edit other posts?
    	if ( 'members' === bblpro_get_form_type( $form_id ) && user_can( $user_id, 'edit_others_posts' ) ) {
    		$status = 'publish';
    	}
    
    	return $status;
    }, 10, 4 );
    
    // for group admint o always allow publish.
    add_filter( 'bblpro_default_post_status_for_user', function ( $status, $user_id, $form_id, $post_id ) {
    
    	if ( ! function_exists( 'bblgroups_get_post_group_id' ) || ! function_exists( 'groups_is_user_admin' ) ) {
    		return $status;
    	}
    
    	if ( 'groups' !== bblpro_get_form_type( $form_id ) ) {
    		return $status;
    	}
    
    	$group_id = bp_is_group() ? bp_get_current_group_id() : 0;
    
    	if ( ! $group_id && $post_id ) {
    		$group_id = bblgroups_get_post_group_id( $post_id );
    	}
    
    	if ( ! $group_id ) {
    		return $status;
    	}
    
    	if ( groups_is_user_admin( $user_id, $group_id ) ) {
    		$status = 'publish';
    	}
    
    	return $status;
    }, 10, 4 );
    
    

    I will check for the email tomorrow. It should not go to user. It is probably a regression. I will have a solution in next 2 days.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25253

    Hi Peter,
    Thank you for the detail.

    Please tick the “Is Enabled” in the sub tab here.
    https://staging11.nutmegmiata.org/wp-content/uploads/2023/03/Screenshot-2023-03-09-at-4.49.01-PM.png

    That should fix it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25253

    Hi Peter,
    Please link me to the screenshots showing the tab settings in Dashboard->Users->Profile Tabs->edit section.

    That will help me identify the issue and assist you better.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25253

    Hi Nik,
    I am sorry that you had to go through so much trouble.

    I worked on this project in collaboration with others in my team and somewhere while introducing the meta boxes for group workflow, the original post workflow was overridden incorrectly. That was the origin of the issue.

    Please upgrade to 1.0.0-RC6 which is available now.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25253

    Hi Nik,
    You were right. It was a bug on the post status in our code! I am going to talk to the concerned developer about the same as this happened due to duplicate status saving.

    I will push an update in an hour.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25253

    Hi Genny,
    I am sorry for the inconvenience.

    At the moment, only the following fields are searchable:-
    * Birthdate
    * Datepicker
    * Color
    * Email
    * Web
    * Number Min/Max
    * Range Input
    * Decimal Number
    * Country

    Other fields are stored as serialized data(due to back compatibility of the forked plugin) and are not searchable.

    Regards
    Brajesh