latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Redirect from email link after Login

Home Forums Community Forum Redirect from email link after Login

This topic contains 3 replies, has 2 voices. Last updated by  Bruce 3 years, 11 months ago.

Topic Author Topic
Posted: Friday Feb 8th, 2013 at 7:40 am #41195
Daniel Melle
Username: mutcom

Hi,

every Monday I send an Email via Mailchimp to my customers. The link in this email sends them to a lecture in my membership area. If they are logged in, everything works fine, but if not, and they have to login first, they are sent back to the homepage instead of the lecture.

Is this a s2members issue? What can I do?

Thanks in advance
Daniel

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Saturday Feb 9th, 2013 at 11:40 pm #41291
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

every Monday I send an Email via Mailchimp to my customers. The link in this email sends them to a lecture in my membership area. If they are logged in, everything works fine, but if not, and they have to login first, they are sent back to the homepage instead of the lecture.

If you are using s2Member Pro’s Pro Login Widget here, you can change your settings for the widget to automatically allow this to work properly. Simply change the Redirect After Login option to Previous page:

If you are using a custom login widget, or redirecting Users to /wp-login.php on your Membership Options Page, you’ll need to add support for Membership Options Variables to whatever form/link you’re using.

s2Member passes these variables specifically for developers to integrate this functionality with.

See: Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars)
See Also: http://www.s2member.com/forums/topic/using-the-membership-options-page-variables/

Posted: Sunday Feb 10th, 2013 at 3:42 am #41308
Daniel Melle
Username: mutcom

Thank you, but this is not it.

If I send lessons in email like http://mydomain.com/your-lesson-no-1/, I just want WP or s2member to open http://mydomain.com/your-lesson-no-1/ if the user was logged out. I don’t have a special login page with widgets. I just want that page /your-lesson-no-1/ open, after /wp-login.php.

Posted: Monday Feb 11th, 2013 at 6:36 pm #41447
Bruce
Username: Bruce
Staff Member

If I send lessons in email like http://mydomain.com/your-lesson-no-1/, I just want WP or s2member to open http://mydomain.com/your-lesson-no-1/ if the user was logged out. I don’t have a special login page with widgets. I just want that page /your-lesson-no-1/ open, after /wp-login.php.

This is what the redirect_to variable that WordPress® accepts accomplishes. The s2Member Login Widget Passes this automatically, but if you’d like to integrate this behavior without the s2Member Login Widget you will need to create a custom login form to handle this.

See: http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.