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: 25348
    Brajesh Singh on in reply to: Profile Search #28060

    Hi Irene,
    Thank you for the question.

    Are you using the shortcode for listing? The search form is not available with it. The reason is layout. We use the members-loop.php for listing the members(which should work fine for most of the theme) but there are no standard way for the form.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi David,
    Thank you for reporting the issue.

    If you do not want the close button, Please add the following css .

    
    
    .mpp-upload-container-close{ display:none;}
    
    

    You can add it via Appearance->Customize->Additional Css.

    As of the unnecessary close button:- It may not suit your theme as they show/hide the form differently, I personally believe it is needed. There are so many themes which don’t do it and there was no way to close the upload area once it opened.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Thanks! #28053

    Hi James,
    Thank you for the kind words.

    We are working on more documentation for the new release and hope that withing a weeks, we should have even more resources.

    I wish you all the best with the site. Please feel free to ask us anything here. I and my team will be more than happy to help.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi Carsten,
    Thank you for using MediaPress.

    It seems like some css conflict.

    Please share the site and a guest user account. I can check and get back to you quickly.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi,
    You can most probably do it bu hooking to the activation action ‘bp_core_activated_user’.

    Yes, it is doable but you will need to handle the checks and assisgn user to group using ‘groups_join_group()’ on that action.

    Regards
    Brajesh

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

    Thank you for confirming.

    I am glad it is resolved.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi Frank,
    There was an issue with my fix for Nouveau. I missed to check for logged in user.

    Here it is updated.

    
    
    /**
     * Fix for nouveau.
     */
    add_filter( 'bp_nouveau_get_members_buttons', function ( $buttons ) {
    	if ( is_user_logged_in() || ! isset( $buttons['private_message'] ) ) {
    		return $buttons;
    	}
    
    	$buttons['private_message']['button_attr']['href'] = wp_login_url( site_url( '?message-redirect=' . bp_displayed_user_id() ) );
    
    	return $buttons;
    } );
    
    /**
     * Redirect to the send message when the user logs in
     **/
    function buddydev_redirect_to_send_message_on_login() {
    
    //make sure it is our url set in previous step
    	if ( ! is_user_logged_in() || empty( $_GET['message-redirect'] ) ) {
    		return;
    	}
    
    //redirect to PM
    	$user_id = absint( $_GET['message-redirect'] );
    //let us make sure that user exists
    	$user = get_user_by( 'id', $user_id );
    //can not PM to invalid user
    //also you should not send message to yourself
    	if ( ! $user || $user->ID == bp_loggedin_user_id() ) {
    		return;
    	}
    
    	$url = bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . $user->user_login;
    
    	bp_core_redirect( $url );
    }
    
    add_action( 'bp_template_redirect', 'buddydev_redirect_to_send_message_on_login' );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    You are welcome.