Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eMember

Redirect Member on login page only, but not on content protected pages

(1 post) (1 voice)
  • Started 6 months ago by woodwardmatt
  • Possible Solutions (Related Topics):
    1. Disallow non-members to post comments on protected pages
    2. Redirect Login page instead "Please Login to view this Content" message
    3. WP eMember - Redirect login page for loged in member?
    4. Protected pages protected, except for members-only menu
    5. Affiliate login redirects to emember home page not affiliate page

Tags:

  • Attributes
  • login
  • redirection
  1. woodwardmatt
    Member

    ** UPDATE **

    I've resolved the below issue by using the fancy login option in the WP-eMember settings page - *phew* :)

    ** UPDATE **

    Hey Guys,

    I have a use case for login redirection that I'm not sure how to tackle using eMember:

    1) User visits login page directly
    2) User logs in successfully
    3) User is shown the current member status details on the Login Page (i.e. not redirected)

    The reason I am not implementing the redirect after login option is that the following use case relies on it and is working correctly:

    1) User accessed content-protected page
    2) User is requested to login
    3) User logs in on the protected page
    4) User is shown content which was previously protected (i.e. is not redirected)

    Is there any ability to add an attribute to the login short code to implement a redirect after login for that specific short code instance (rather than globally)? Something like the following would be absolutely ideal:

    [wp_eMember_login redirectURL="http://mywebaddress.com"]

    Where the login form would redirect to the value specified in the redirectURL attribute on a successful login.

    A similar approach is implemented in the "Shortcode Exec PHP" Plugin at: http://blog.bokhorst.biz/3626/computers-and-internet/wordpress-plugin-shortcode-exec-php/

    Any thoughts? Would value some guidance on this one.

    Many thanks, Matt

    Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin