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.

Redirecting users to post after login

Home Forums Community Forum Redirecting users to post after login

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 4 years, 3 months ago.

Topic Author Topic
Posted: Monday Sep 24th, 2012 at 5:37 pm #26362

Hey guys,

I want to ask you all what the best way to set up this specific functionality. We post stuff everyday and have mailchimp hooked into our Rss feeds, and they send out emails to all our members everyday. What we have currently set up now, is when a member clicks on the link to the story in the email, they are driven to the Subscribe Page if they are not logged in. From there they have the option to go to the log in page, and then when they log in, they are redirected to the home page, and then still they need to navigate to find the content they were trying to read in the first place.

What is the best way to make this easier for our members to go from clicking the link in the email (which is the post link, protected by S2member), directed to log in, and then be redirected back to the story they were trying to read?

We’ve had many complaints that there are too many steps to get logged in and back to the content.

Does the S2member plugin have a workaround to this? Do I need things set up differently? Like instead of redirecting people to the subscribe page (when they are logged out, requesting protected posts), should we redirect to the login page? And then is there code to redirect them back to the previously requested url (or something like that)?

Thanks for your help with this.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Monday Sep 24th, 2012 at 8:45 pm #26378
Bruce
Username: Bruce
Staff Member

Hi Cheryl,

If you’d like to put a login form within your Membership Options Page, you can use the Membership Options Page variables that s2Member passes when a post is protected.

I wrote a Knowledge Base article on using the Membership Options Page Variables not too long ago. You can check that out here:

http://www.s2member.com/kb/using-the-membership-options-page-variables/

You can then change the way your login form works by sending the user to the login form at wp-login.php/?redirect_to= and change the redirect_to variable to match the URL the user should be redirected to.

Note that s2Member Pro’s Login Widget will automatically use the Membership Options Page variables if you select the Previous Page option within setup under Redirection After Login.
  • This reply was modified 3 years, 11 months ago by  Bruce. Reason: Note Added
Viewing 1 replies (of 1 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.