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: 25384
    Brajesh Singh on in reply to: limit gallery link on members profiles #10155

    Hi Patti,
    Can you please list the membership level names and which of them should be allowed to have gallery?

    I will try to post a complete solution.

    The above code limits based on capability(In this example, subscriber, author and contributors won’t have gallery).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: limit gallery link on members profiles #10152

    Hi Patti,
    It is php code.

    If you don’t understand the code, I will suggest hiring someone or avoiding this use case. This is a very small thing(you need to specify the membership levels and conditions and the developer can update the above code for you and put it on the site).

    I am sorry that we don’t have a ready made solution for this case, we will try to have something as addon in future.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: [Resolved] remove activity delete button text #10150

    Thank you for the help here @ravisharma

    Closing it since it is resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Thank you Ahmed.
    Glad to know that.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: [Resolved] tag line with user name #10147

    Hi Frances,

    I am sorry but I am unable to understand. Can you please elaborate it a little better. How are you getting the user to add the tag line.
    Where do you want this tag line to be(Screenshot will be nice)?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: buddyblog only for members #10139

    Hi,
    Thank you for posting.

    At the moment, the only way I see it will be using the “bp_core_remove_nav_item()” to remove the nav from the non paid members screen.

    Will be comfortable if we posted some code example?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Ahmed,
    Will look into it and get back to you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

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

    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