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

    Hi Torben,
    I am sorry for the inconvenience.

    Please allow us 2-3 days. We are working on a release for WordPress 5.5 and will be including this fix too.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Carsten,
    Sure.
    Here is the code that make sthe BuddyPress section private.

    
    /**
     * Make a BuddyPress section of the site Private.
     *
     * @author sbrajesh
     * @global string $pagenow
     */
    function buddydev_private_site() {
    
    	// do not restrict logged in users.
    	if ( is_user_logged_in() ) {
    		return;
    	}
    	// first exclude the wp-login.php
    	// register
    	// activate.
    	global $pagenow;
    
    	// if we are here, the user is not logged in, so let us check for exclusion
    	// we selectively exclude pages from the list.
    
    	// are we on login page?
    	if ( $pagenow == 'wp-login.php' ) {
    		return;
    	}
    
    	// let us exclude the home page.
    	if ( is_front_page() ) {
    		return;
    	}
    
    	// handle Special case of BuddyPress registration/Login.
    	if ( function_exists( 'is_buddypress' ) && is_buddypress() ) {
    
    		if ( bp_is_activation_page() || bp_is_register_page() ) {
    			return;
    		}
    
    		$redirect_url = wp_login_url( site_url( '/' ) ); // get login url.
    
    		wp_safe_redirect( $redirect_url );
    		exit( 0 );
    	}
    }
    
    add_action( 'template_redirect', 'buddydev_private_site', 0 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Tosin,
    Thank you for letting us know.

    In future, I will suggest moving to BuddyPress Profile Completion as we are planning to discontinue Force Profile Photo.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Tosin,

    Thank you for reminding.

    It is a bit delayed, will be available by the end of this month.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Stefan,
    Thank you for using MediaPress.

    MediaPress configurations & Uploads are site specific. Do you have multiple install of MediaPress? It should not be network activated.

    If you are using separate instances of MediaPress on the 2 sites, Please configure the settings on that specific site.

    Please note, MediaPress does not support network activation or global settings.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Torben,
    Thank you for the question.

    You may use this

    
    
    if ( function_exists( 'bpprocn_has_incomplete_profile' ) && ! bpprocn_has_incomplete_profile( $user_id ) ) {
    
    }
    
    

    Please replace the $user_id with the desired id.

    We do not have any specific API for field data since BuddyPress already provides that.

    You may use either ‘xprofile_get_field_data’ or ‘BP_XProfile_ProfileData::get_value_byid’ to check if the field has data(2nd should be preferred if checking for data availability, 1st for display).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Rami,
    Thank you for the reply and the screenshot.

    1. Since it is not possible for us to include support for all the themes in a plugin, I will suggest asking theme developers to support it. They can include a few line of css to support the widget easily. If you want, I can supply the css for BuddyBoss theme for now.

    2. Same as above. We are providing a basic functionality and we expect that theme authors will support it.

    3. For BuddyPress, we have used the redis object cache successfully
    https://wordpress.org/plugins/redis-cache/

    I will suggest asking BuddyBoss for it. They are the platform developer and will have better idea on what works with it.

    4. Group Suggestions:- I am sorry but it is beyond our current goals for the plugin. I will be reconsidering it in future. For now, requiring site owners t setup profile field and then asking them to correctly setup a dropdown/checkbox with the Group type values is way too complicated for most users.
    It will be nice if there was a group type profile field available. In that case, it would have been less error prone.

    By scaling I mean if you have 20,000 users and you are using xprofile meta query on 8 fields, your database will hang and kill the site.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] BuddyPress User Contact Form #32090

    Hi Rami,
    Thank you for the suggestion.

    We will include it in our next update.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: BuddyPress Notifications Widget #32087

    Hi Rami,
    Thank you for the question.

    At the moment, we do not include any css for this plugin. I will ask my team to explore adding the css. It may take some time as it is a low priority plugin for us.

    Thank you
    Brajesh