PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

login redirect situation

s2Member Plugin. A Membership plugin for WordPress®.

login redirect situation

Postby RJGonzalez » August 17th, 2011, 2:29 am

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.
Always willing to help, securely at http://www.149host.com
User avatar
RJGonzalez
Registered User
Registered User
 
Posts: 20
Joined: August 16, 2011
Location: Florida. USA

Re: login redirect situation

Postby Cristián Lávaque » August 17th, 2011, 4:16 am

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/
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: login redirect situation

Postby RJGonzalez » August 17th, 2011, 9:35 am

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.
Always willing to help, securely at http://www.149host.com
User avatar
RJGonzalez
Registered User
Registered User
 
Posts: 20
Joined: August 16, 2011
Location: Florida. USA

Re: login redirect situation

Postby Cristián Lávaque » August 18th, 2011, 1:15 am

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: login redirect situation

Postby RJGonzalez » August 18th, 2011, 3:49 pm

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?
Always willing to help, securely at http://www.149host.com
User avatar
RJGonzalez
Registered User
Registered User
 
Posts: 20
Joined: August 16, 2011
Location: Florida. USA

Re: login redirect situation

Postby Cristián Lávaque » August 19th, 2011, 1:05 am

Yes, with s2Member Pro you have the free registration pro-form available. WP Admin -> s2Member -> PayPal Pro-Forms -> Free Registration
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests

cron