New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: Disable creation of account on other subsite #17355

    Hi Joris,
    Welcome to BuddyDev and thank you for using BP Auto Activate Auto Login plugin.

    I am sorry but the above plugins combination can not restrict users across the multisite sub sites.

    The correct approach will be to set the registering blog as the primary blog of the user and then restricting user to their primary blog.

    If you are comfortable with code, I can supply some code next week to achieve it.
    Yes, it does not fall in our support but is will be only a few lines of code( I need to setup a network and test, that is more time consuming) and I can provide it without any extra cost.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Max,

    1. Sorry, It is not doable currently. The avatar upload is handled by BuddyPress and it removes the old avatar the moment a new avatar is uploaded. That’s why we are unable to show old avatar and use placeholder.

    2. Seems like a bug. will push an update in next couple of hours.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Thank you Max. I am sorry that it did not work the way you wanted.

    It is possible to hard code the size(in px) in the above code. You may try setting a fixed size and see if that works.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: Buddypress Issues #17349

    Hi Matt,

    2. Yes, you can recreate and assign them to BuddyPress component by visiting Dashboard->BuddyPress->Settings->Page screen.

    3. You can translate using the method 2 or 3 from this article (or from the page I linked earlier)
    https://www.wpbeginner.com/wp-tutorials/how-to-translate-a-wordpress-plugin-in-your-language/

    For future proofing, you can keep the translated file in wp-content/languages/plugins directory.

    4. I hope our customers to be reasonable and do consider the effort we put in supporting them. I knew you could demand anything but the hope was you would’t 🙂

    For individual plugins we do not offer any discount. It is rare for us to do that as the plugins are already priced very economically considering the time we invest on support.
    I can offer a maxium of 20% one time discount.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: How do I upgrade Blog Categories for Groups ? #17348

    Thank you Elaine.

    Please do note that you will see upgrade notice for the Premium plugins too but clicking on their upgrade won’t work if your current account does not have an active purchase for the same. Just clarifying.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: Mediapress gallery listing #17346

    Hi Matt,
    Please link me to the page. The gallery should set the first image as the cover automatically.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: How do I upgrade Blog Categories for Groups ? #17345

    Hi Elaine,
    Welcome to BuddyDev forums.

    have you configured the BuddyDev dashboard with you API key? if yes, next time WordPress checks for plugin updates, It will show you the available updates from BuddyDev.

    Once you see the notice, you can upgrade the free plugin. For the paid plugin to upgrade, you will need to purchase them.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Max,
    I have looked into it a little more.

    It seems to me you are copying the “Embed” code and pasting in the field. In that case, there is exact same markup as you have posted.

    If I create a field “Streamable” and change the code from above to use oembed for Streamable too, It does not provide the Div.

    The iframe still contains fixed width/height. We can remove that using regular expression.

    Here is your code from first post modified.

    
    
    function bp_enable_embed_in_profile( $val, $type, $key ) {
    
    	$field      = new BP_XProfile_Field( $key );
    	$field_name = $field->name;
    
    	$provider = array( 'youtube', 'vimeo', 'instagram', 'bliptv', 'twitter', 'streamable' );
    
    	if ( strtolower( $field_name ) == in_array( strtolower( $field_name ), $provider ) ) {
    		$val     = strip_tags( $val );
    		$content = wp_oembed_get( $val, array( 'width' => 400 ) );
    
    		if ( $content && 'streamable' === strtolower( $field_name ) ) {
    			$content = preg_replace(
    				array( '/width="\d+"/i', '/height="\d+"/i' ),
    				array( sprintf( 'width="%s"', '100%' ), sprintf( 'height="%s"', '100%' ) ),
    				$content );
    		}
    
    		return $content;
    	}
    
    	return $val;
    }
    
    add_filter( 'bp_get_the_profile_field_value', 'bp_enable_embed_in_profile', 9, 3 );
    
    

    If you create a field and Name it “Streamable” and then simply paste the video url into it. It will fetch the video.

    You don’t need the embed code. The above code changes width=100%, height=100% but still the result does not seem too good.

    let me know if that works for you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Max,
    No, It does not work that way.

    Please take a look at youtube’s output

    Example 1:- 480

    https://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DJGwWNGJdvx8&format=json

    Example 2: Max width 200
    https://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DJGwWNGJdvx8&maxwidth=200&format=json

    It is the oembed provider(Youtube or streamable or others) that needs to support/respect the max width. Youtube does, streamable does not.

    Yes, we can replace the width using php but it will be a bad solution as it is bound to break the site in future.
    My advise is to avoid hacks which are not supported to be sure that everything works for a long time.

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Carsten,

    The plugin does not support icons. It is theme supported. If you are using a premium theme, most of them supports it. Please do check the feature list of the plugin. We have all supported features mentioned there.

    You can add icon on your own, the plugin will not be able to do it. We have to separate between the functionality and the appearance and themes are most suitable for managing appearance.

    As of navigation, It is again a theme issue and the plugin can not help you.

    If you are looking for a free theme with pro features, in next 3 weeks, we are going to release a lite version of Community Builder 2.0 for free and you may want to give that a try. Please do note that the 2.0 is nothing like 1.x series.

    Regards
    Brajesh