• Resolved kramerdesign

    (@kramerdesign)


    Hi! Plugin working well. I’m using with bbpress so I want to bypass your Account features. Is there a way to direct users to the forum after they login? I have the extensions too.

    • This topic was modified 4 years, 6 months ago by kramerdesign.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @kramerdesign,

    If you want to redirect users after they log in then please follow this documentation https://docs.wpeverest.com/docs/user-registration/how-to/how-to-change-redirect-url-after-login/
    Do let us know if it helped or not.

    Regards!

    Thread Starter kramerdesign

    (@kramerdesign)

    Amazingly! Thanks!

    Hi,
    I followed the instructions in the doc.
    The redirection works fine, however, if someone wants to edit the profile, they are no longer able to do it. As soon as they click on profile edit, they are redirected to the custom url too… What am I missing?
    Thank you for the great plugin and all the work,
    Matt

    I resolved this by making a couple of code tweaks.

    shortcodes/class-ur-shortcode-my-account.php
    OLD:
    $redirect_url = ( isset( $_GET['redirect_to'] ) && empty( $redirect_url ) ) ? esc_url( wp_unslash( $_GET['redirect_to'] ) ) : ''; // @codingStandardsIgnoreLine
    NEW:
    $redirect_url = ( isset( $_GET['redirect_to'] ) && empty( $redirect_url ) ) ? esc_url( wp_unslash( $_GET['redirect_to'] ) ) : $redirect_url; // @codingStandardsIgnoreLine

    includes/functions-ur-template.php in function ur_login_template_redirect()
    OLD:
    if ( ( has_shortcode( $post_content, 'user_registration_login' ) || has_shortcode( $post_content, 'user_registration_my_account' ) ) && is_user_logged_in() ) {
    NEW:
    if ( ( has_shortcode( $post_content, 'user_registration_login' ) || has_shortcode( $post_content, 'user_registration_my_account' ) ) && is_user_logged_in() && 'POST' == strtoupper( $_SERVER['REQUEST_METHOD'] ) ) {

    @sharmadpk03 Perhaps this can be built in to the plugin.

    Thank you @nathp
    I tested it, unfortunately in my case it still does not work. The edit link goes to a file not found page. Changing the password and log out works…

    @mexl I find the edit profile page doesn’t work properly unless the user was created using the plugin’s registration page. If you’re logging in as a user that existed prior to using this plugin the profile page shows a “not found” message. Try registering a new user via the registration page

    Thank you @nathp going to test that too… Thank you for the support.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirect After Login’ is closed to new replies.