• Resolved kodame

    (@kodame)


    Hello, I found your plugin this morning, I’ve read a fair amount of the docs, but I’m still running into a couple problems, any help would be appreciated.

    First, let me briefly explain my setup… I have various pages I would like to protect, and some not, which I have individually disabled protection.

    I opted for separate login and registration pages, I disabled registration when the form loads on protected pages without being logged in.

    I have a login page called /login with the following shortcode
    [wpmem_form login redirect_to=”/welcome-to-the-course”]

    I have a registration page called /register with the following shortcode
    [wpmem_form register]

    I have a profile page called /profile

    I have assigned all 3 pages accordingly in the plugin settings.

    The page /welcome-to-the-course is the first page I want users to see when logging in.

    Now the problems;

    1. Upon registering I see the success message, and the login form appears, all good to this point. But when I login, immediately after registering, I am not redirected to /welcome-to-the-course as per the shortcode above, I remain on the registration page, i.e. /register … wondering why it is not redirecting like all other login forms/actions?

    2. When I receive the welcome email, the link to the login page is wrong, it appears as;
    https://example.com/register/
    It should really be;
    https://example.com/login/

    Thanks for building a really nice piece of software!

    EDIT

    Heads up, forgot to mention that your contact form on your site is not functioning

    • This topic was modified 7 years, 10 months ago by kodame.
    • This topic was modified 7 years, 10 months ago by kodame.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The login redirect in the shortcode only applies the login form displayed by the shortcode (which based on your description I presume is https://example.com/login). If the page you’re on is not that, then the redirect doesn’t factor in.

    If you want a global redirect for any login form instance, then use the wpmem_login_redirect filter to create a redirect.
    https://rocketgeek.com/plugins/wp-members/docs/filter-hooks/wpmem_login_redirect/

    For #2, the email content installs as a default and should be considered an example of various shortcodes available. There’s no requirement that you use the shortcodes or that you keep any of the default content. Edit accordingly (put in the URL you want users directed to) in the Emails tab.

    Thread Starter kodame

    (@kodame)

    Than you very much, really enjoying this plugin, no doubt I’ll be moving to the paid version soon, appreciate your fair pricing model

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