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: 25338
    Brajesh Singh on in reply to: [Resolved] Redirect subpage of members #25510

    You are welcome.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338
    Brajesh Singh on in reply to: [Resolved] Redirect a unregistered user #25507

    Thank you.

    Please remove this code and use the code shared in the other thread.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338
    Brajesh Singh on in reply to: [Resolved] Redirect subpage of members #25506

    Hi Jennifier,
    Thank you for the question.

    Please use this code

    
    /**
     * Redirect user to user profile.
     */
    add_action( 'bp_template_redirect', function () {
    
    	if ( bp_is_user() && ! is_user_logged_in() && ! bp_is_profile_component() ) {
    		$profile_link = trailingslashit( bp_displayed_user_domain() ) . bp_get_profile_slug();
    		bp_core_redirect( $profile_link );
    	}
    } );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338
    Brajesh Singh on in reply to: [Resolved] Redirect a unregistered user #25503

    Hi Jennifer,
    Thank you.

    The above code by @ravisharma only checks for single activity page and redirect.

    Can you please post your issue and help us understand it better. That will help us assist you better.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338
    Brajesh Singh on in reply to: [Resolved] Avatar Moderation #25501

    Hi Granmeh,
    Thank you for the question. It is certainly doable.

    Please allow us to help with with some code tomorrow. I am also thinking of adding it as an option in the plugin. It seems good to me.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25338

    Hi Luca,
    I am glad you found the solution.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338

    Hi Luca,
    Thank you for testing it.

    The second part needs to be resolved either on the Recaptcha plugins part or we will need to know from them how to refresh it on ajax lodaded form.

    Can you please ask the plugin developer how to refresh captcha when a form is reloaded via ajax and let me know?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338

    Hi Johan,
    BP Branded Login needs you to create your own template.

    If your theme supplies login/password reset templates, I will suggest avoid using BP Branded login. It is not created for generic use case. It was developed when themes were very basic(7-8 years ago) and were not offering the templated login page etc.

    Most of security plugin wont recognize the templated login page(It is a page and not a url rewrite), So I do not expect them to work with it.

    My suggestion, if you can do without it, avoid it. It is not a generic solution.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338

    No issues. I am glad it is resolved.

    Regards
    Brajesh