WordPress.org

Forums

SimpleModal Login
Redirect to referrer (11 posts)

  1. dtribble
    Member
    Posted 3 years ago #

    Hi Eric,

    Thanks for a great plugin. It's been a big help on a project I'm working on.

    The only thing I can't seem to make happen is to get the site redirect the user to the page they were on (the referrer) after they register and login. If I try to pass the "redirect_to" when opening the reg form, it makes the reg form get an "empty_both" error when it is submitted. Thus, I've had to take out the "redirect_to" from the reg form link. This makes it so the user gets sent to their profile page upon login which is not ideal.

    If all else fails, I can use Peter's redirect and send them to the home page but this isn't great either. Let me know if you have any solutions for sending them back to the referrer after reg/login. Thanks for your time...

    -Damon

    http://wordpress.org/extend/plugins/simplemodal-login/

  2. Eric Martin
    Member
    Plugin Author

    Posted 3 years ago #

    Hello, does the first FAQ not resolve your question?

    http://wordpress.org/extend/plugins/simplemodal-login/faq/

    If not, let me know.

    Thanks,
    Eric

  3. dtribble
    Member
    Posted 3 years ago #

    Thanks for your response, Eric. Unfortunately, I don't think the first FAQ applies to my situation. I can get the login/logout to redirect to the referrer when you login directly. My problem is when someone first registers and then logs in immediately. If I try to pass the "redirect_to" when opening the reg form, it makes the reg form get an "empty_both" error when it is submitted. You can see more detail in my original post. Thanks for any help you can offer on this...

    -Damon

  4. taylorsuk
    Member
    Posted 3 years ago #

    This is similar to my error - login is fine using

    <?php wp_loginout($_SERVER['REQUEST_URI']); ?>

    however when registering it ruturns a blank page.

    Simon

  5. brandonplowe
    Member
    Posted 3 years ago #

    sorry if I am a ttl noob, but where do I put the code;

    <?php wp_loginout($_SERVER['REQUEST_URI']); ?>

    ???

    I went to the general template.php file, but can't find the right place.

    Any help would be greatly appreciated.

    Brandon

  6. brandonplowe
    Member
    Posted 3 years ago #

    nevermind. I figured it out. Thanks for the forum support though.

    B

  7. Sorry, your post was caught in spam. I just cleared it out.

  8. bren
    Member
    Posted 3 years ago #

    come on brandonplowe

    thanks for the forum support though?
    and the solution is?

    there are other uber-noobs who would love your help out there

  9. jamshed1981pk
    Member
    Posted 3 years ago #

    how i can redirect to my custom page after registration simple login 1.0. 4

  10. jamshed1981pk
    Member
    Posted 3 years ago #

    how i can redirect to my custom page after registration simple login 1.0. 4

  11. BMCUser
    Member
    Posted 3 years ago #

    I'm having the same problem as dtribble. When I register and then login, I go to the dashboard with a message that I'm using generated password. I used the redirect option when calling wp_login and it works when I just login, but not when logging in right after registration.

    I thought this happened because I was using wp generated password, but it worked correctly with the generated password when I logged in the second time.

    It seems like the redirect option was lost after the registration.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SimpleModal Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic