Wishlist/Wordpress redirect fix

4 replies
I'm not looking for free advice here. If my request is something that would take time I'd be willing to pay. I just don't know.

I'm using Wishlist Member plugin for membership management with a Wordpress site.

My issue is, when sending a direct link to our list to a forum post (the forum is protected) the members first have to login (if they're not already).

But after being redirected to the WP-Login page to login, I can't redirect them to the page they wanted to see. Wishlist sends them to the page I choose as the "After Login Page".

I'm wondering if anyone would know the PHP required to make this happen.

I'm guessing it would be structured like this:
IF USER IS LOGGED IN --> GO TO REQUESTED PAGE
IF NOT A USER OR NOT LOGGED IN --> GO TO LOGIN PAGE
AFTER LOGIN --> GO TO REQUESTED PAGE

Obviously, I have no clue how it needs to be structured but any help would be appreciated.

Thanks,
Duston
#fix #redirect #wishlist or wordpress
  • Profile picture of the author Nochek
    Sentcha a pm, but I'm gonna go get some breakfast first so if you do get back to me it'll be an extra 15 minutes :p
    Signature
    Nochek Solutions Presents:
    The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
    {{ DiscussionBoard.errors[5635585].message }}
  • Profile picture of the author SteveJohnson
    Knowing the PHP required for this - it's actually pretty simple, btw - isn't going to do a bit of good with Wishlist Member unless you have an unobfuscated copy. The plugin code is obfuscated (hidden) by a couple of layers of base64 encoding, and it's virtually impossible to make the necessary changes unless and until the files are unencoded so that the actual PHP code is visible.

    You'll probably need to be checking with the Wishlist support people.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[5637183].message }}
  • Profile picture of the author DustonMcGroarty
    Thanks Steve - yeah I knew there was no editing that I could do to the plugin. I just thought I could add something to the wp-login page that would override WL's settings.

    I've already scoured their support area and forum, they're "working on a solution".
    {{ DiscussionBoard.errors[5637269].message }}
  • Profile picture of the author SteveJohnson
    The redirect address needs to be fed to the login form from the routine that makes the 'is_user_logged_in' test. Unfortunately, it's not something you can just add to the wp-login file
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[5637638].message }}

Trending Topics