WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
[resolved] Login From Post Redirects To Member Profile (8 posts)

  1. Rick5150
    Member
    Posted 1 year ago #

    I have created a user account that allows VIP visitors to log in and see the registered posts. While testing this, I found when I go to a "members only" post and click log in, I am brought to the WordPress Login screen.

    Once I enter the "VIP" name and password, I am not brought back to the post I was trying to read, but to the VIP member profile page instead, and I have go to the top and choose "visit site" and then find the post all over again.

    Am I doing something wrong?

    http://wordpress.org/extend/plugins/paid-memberships-pro/

  2. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    Hmmm. The code could be updated to include a "redirect_to" parameter in the link to the login page. Not sure if we are doing this. Sometimes other plugins/code/etc override what happens after login.

  3. Rick5150
    Member
    Posted 1 year ago #

    Is there an easy way for me to determine what is happening? This is the last stumbling block I have with PMP.

    It is a big one too, as those who are not familiar with navigating WordPress will click on the "LOG IN" link on a thread they want to read and wind up in the USER PROFILE instead, saying "Where am I?!"

    Here are the plugins I have - in case any are suspect. I swear it was working before the last update, but I can be mistaken as I often am.

    Advanced Excerpt
    Akismet
    Awesome Filterable Portfolio
    BulletProof Security
    Custom Post Templates
    Donate Extra
    Force Regenerate Thumbnails
    GD Star Rating
    Google AdSense Plugin
    Jetpack by WordPress.com
    List category posts
    My Category Order
    Paid Memberships Pro
    WP Content Copy Protection

  4. Rick5150
    Member
    Posted 1 year ago #

    I have paid for a one year subscription. How can this be fixed?

  5. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    Rick,

    Thanks for signing up. Some of this is already coded into the plugin. What you need to do is update the "Message for Logged-out Users" on the Advanced Settings page to include ?redirect_to=!!referrer!! in the wp-login.php URL.

    So the whole field could be:

    This content is for !!levels!! members only. <a href="/wp-login.php?redirect_to=!!referrer!!">Log In »</a> <a href="/wp-login.php?action=register">Register here  »</a>

    This should do what you need (assuming other plugins aren't adjusting the redirect_to). If this doesn't work for you, email me your WP admin user/pass and FTP user/pass.

    Also, I should make this the default setting for that field so logins redirect like that. Makes sense.

  6. Rick5150
    Member
    Posted 1 year ago #

    That gives me two error messages. If I add my absolute links so it looks like this, it works fine:

    Full content is for !!levels!! members only. Log In » or Register here »

    The only issue that I can forsee is that if you click the Log In button on the excerpt on the first page, it would be nice if it took you to the actual post. Once you log in, you are back on the main page and have to find the article and click the Read More link.

    Way better than it was, that is for sure. If people access the article from the menu, it works great. Thank you.

  7. rwilki
    Member
    Posted 1 year ago #

    SO COOL!!!! Thanks Strange Studios! That code
    This content is for !!levels!! members only. <a href="/wp-login.php?redirect_to=!!referrer!!">Log In »</a> <a href="/wp-login.php?action=register">Register here »</a>
    is exactly what I needed!

    Awesome!
    Bob

  8. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    Closing this thread. If you have a more specific follow up to this, please post it on the paid member forums.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.