Page 1 of 1

login redirect situation

PostPosted: August 17th, 2011, 2:29 am
by RJGonzalez
I have search and there are many solutions but cant figure it out. It has to do with the login redirect. Here is my code:

Code: Select all
<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'kubrick'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink())); ?></p>


Now where is it that i have redirect to?

Thank you in advance.

Re: login redirect situation

PostPosted: August 17th, 2011, 4:16 am
by Cristián Lávaque
For the login redirection you can configure the Login Welcome Page. WP Admin -> s2Member -> General Options -> Login Welcome Page

This video may also be helpful: http://www.s2member.com/login-welcome-p ... cts-video/

Re: login redirect situation

PostPosted: August 17th, 2011, 9:35 am
by RJGonzalez
I have done that but does not fix the situation.

I see recent activity here so i will try to get an answer from here, hopes it dont bother no one.

I have search and there are many solutions but cant figure it out. It has to do with the login redirect. Here is my code:
From this:

Code: Select all
<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'kubrick'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink())); ?></p>


To this:

Code: Select all
members-area <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'kubrick'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(members-area())); ?></p>


Now where is it that i have redirect to?

Thank you in advance.

Re: login redirect situation

PostPosted: August 18th, 2011, 1:15 am
by Cristián Lávaque
The redirect_to= part in the URL is not letting s2Member use the Login Welcome Page. If you want to use redirect_to=, then set there the URL you want the person to go to after login, otherwise use the Login Welcome Page setting s2Member provides. This is explained better in the video I pointed to earlier.

Re: login redirect situation

PostPosted: August 18th, 2011, 3:49 pm
by RJGonzalez
ok, that is resolved, now i am searching for a smart code in order to present the registration form on a page as this code does [s2Member-Profile /] is it possible to do something like [s2Member-Registration /]> or how would I go about doing this? or where can i edit the page so i can imitate the theme?

Re: login redirect situation

PostPosted: August 19th, 2011, 1:05 am
by Cristián Lávaque
Yes, with s2Member Pro you have the free registration pro-form available. WP Admin -> s2Member -> PayPal Pro-Forms -> Free Registration