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: 25282

    Hi Darren,
    Thank you for posting.

    Yes, It is doable. We will post some code later today to show how to do it.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25282
    Brajesh Singh on in reply to: Member Type Pro – WooCommerce Subscriptions #10132

    Hi Aronld,
    Welcome to BuddyDev forums.
    Are you using this plugin

    https://woocommerce.com/products/woocommerce-memberships/

    That is the plugin we have compatibility with. If you are using another plugin, Please link me.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25282

    Hi Kristin,
    Thank you.
    It’s a good idea and will like to have it in the core in future.

    For now, you may use the following code

    
    /**
     * Add @gallery-creator-username on single group gallery.
     */
    function mpp_custom_show_author_user_name_with_single_gallery() {
    	if ( ! bp_is_group() ) {
    		return ;
    	}
    
    	$gallery = mpp_get_gallery();
    
    	if ( ! $gallery ) {
    		return ;
    	}
    
    	echo '@' . bp_core_get_username( $gallery->user_id );
    }
    add_action( 'mpp_before_single_gallery', 'mpp_custom_show_author_user_name_with_single_gallery' );
    
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25282
    Brajesh Singh on in reply to: Max upload space not working in groups #10128

    Hi,
    Please allow us to test it today and then update you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25282
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25282
    Brajesh Singh on in reply to: limit gallery link on members profiles #10126

    Hi Patti,
    Simple solution will be to filter on ‘mpp_is_enabled’ to completely remove it from user profile.

    I will post an example below with capability, please feel free to update for s2members pro.

    
    
    /**
     * Example: Disable MediaPress gallery for subscriber, contributor, author
     *
     * @param bool   $is_active is MediaPress active.
     * @param string $component component name(members, groups,sitewide etc).
     * @param int    $component_id context items id(user id, group id etc).
     *
     * @return bool
     */
    function mpp_custom_disable_for_users( $is_active, $component, $component_id ) {
    	// only for members component.
    	if ( 'members' !== $component ) {
    		return $is_active;
    	}
    	// only editor or above should have gallery.
    	if ( ! user_can( $component_id, 'publish_pages' ) ) {
    		return false;
    	}
    	return $is_active;
    }
    add_filter( 'mpp_is_enabled', 'mpp_custom_disable_for_users', 10, 3 );
    
    

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25282

    Hi Thorsten,
    I have been looking at today.

    It’s very strange but the admin options are saving properly for me. Can you please give it a try.

    I have a confusion about option 3 though

    3. Do you want to disable the email notification for all users if you select No in the backend?

    Please let me know, I am hoping to push a release as it should have been yesterday.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25282
    Brajesh Singh on in reply to: [Resolved] Verifying a user – plugin idea #10119

    Thank you.
    yes, Please do keep sharing the ideas 🙂

    I helps us to move forward and I sincerely appreciate it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25282
    Brajesh Singh on in reply to: [Resolved] Verifying a user – plugin idea #10117

    Hi Thorsten,
    Thank you.

    I have used it on one of my clients site and I know that the plugin does have the potential but a lot of issues. I was hoping to contribute and update the plugin itself instead of forking but the repository of Ryan seems to be empty
    https://github.com/modemlooper/BuddyVerified

    Will do something similar. We had another plan to have a work flow for verification(Like a front end page where user upload docs, requests for verification etc) but may be we can avoid that for now and go for a simple solution.

    Will keep in our list of upcoming projects in next 8-12 weeks.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25282

    Hi Thorsten,
    Thank you.

    That is happening because of the overflow:hidden in css. I will update it on the site.

    Thank you
    Brajesh