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: 25336
    Brajesh Singh on in reply to: How to set up a tournament?? #23541

    Hi,
    Thank you for the question.
    I haven’t used any plugin for similar purpose in past, so I am unable to suggest.

    You may want to give a shot to the plugins from this page
    https://wordpress.org/plugins/tags/tournament/

    and see if any of them suits you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Kristian,
    Thank you for the question.

    You may use the following code.

    
    
    /**
     * Restrict access to BuddyPress for non logged users completely.
     */
    function buddydev_restrict_bp_pages() {
    	// If Logged in
    	// Or not on BuddyPress pages
    	// Or it is register/activation page
    	// Do not restrict.
    	if ( is_user_logged_in() || ! is_buddypress() || bp_is_register_page() || bp_is_activation_page() ) {
    		return;
    	}
    
    	bp_core_redirect( wp_login_url() );
    }
    
    add_action( 'bp_template_redirect', 'buddydev_restrict_bp_pages' );
    
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Daria,

    Thank you for the topic.

    The restrictions are enforced by PMpro BuddyPress addon and I believe they have forgotten to add support for the member type directory.

    If you want, I can assist with custom code to restrict the member type directory or you can ask the PMPro team to add support for the member type directory restrictions.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Mocha,
    Thank you for the question.

    1. BuddyPress supports HTML email out of the box. If it was not working, Most probably a conflict with 3rd party plugin. I have seen issues when using 3rd party smtp plugins.

    2. The above code does not do much. It re enables the html email from BuddyPress(which should be the default case). The settings was being overridden by some code or 3rd party plugin and I don’t see any harm in using the above code.

    The only thing it does is instead of using wp_mail() it uses bp_send_email() which uses a custom extend version of PHP Mailer.

    The problem with this approach is most of the smtp plugin’s won’t be able to deliver it(the filters are different).

    Hope that clarifies

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Torben,
    Thank you for confirming. I am glad it worked 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Propertytips,
    Thank you for confirming.

    TO enable it for some media type and not others? Yes, it is doable via filter but that won’t work on activity screen.

    Please allow me to keep this for our major version. We are committing to next phase of MediaPress from August and I am making a list of things to do. I will be adding it too.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Richard,
    Thank you for confirming. I am glad it is working 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    You are welcome. I hope that WooCommerce works for you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336
    Brajesh Singh on in reply to: @mention autofill on custom dashboard page #23518

    Hi Nic,
    You may try this

    
    add_filter( 'bp_activity_maybe_load_mentions_scripts', 'buddydev_enable_mention_autosuggestions', 10, 2 );
     
    function buddydev_enable_mention_autosuggestions( $load, $mentions_enabled ) {
        
        if( ! $mentions_enabled ) {
            return $load;//activity mention is  not enabled, so no need to bother
        }
        //modify this condition to suit yours
        if( is_user_logged_in() ) {
            $load = true;
        }
        
        return $load;
    }
    

    That should do it on all pages.

    Regards
    Brajesh