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 not working

s2Member Plugin. A Membership plugin for WordPress®.

Re: Login Redirect not working

Postby denvert » October 21st, 2011, 1:53 pm

Thanks Jason,

Sorry for all the confusion, we can use a temporary fix, hopefully you'll be able to integrate with next update. Thanks again for all your help.

Best, Chris
User avatar
denvert
Registered User
Registered User
 
Posts: 57
Joined: March 25, 2011

Re: Login Redirect not working

Postby denvert » October 30th, 2011, 4:15 pm

Hi Jason,

Were you able to address this issue in the new updates?

Thanks
User avatar
denvert
Registered User
Registered User
 
Posts: 57
Joined: March 25, 2011

Re: Login Redirect not working

Postby Jason Caldwell » October 31st, 2011, 11:26 am

No, so sorry. This did NOT make into the release of s2Member Pro v111029. However, I've got this on my list for today/tomorrow. When I have it completed, I'll post a patch file in this thread with instructions so you can obtain this functionality early.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Login Redirect not working

Postby denvert » October 31st, 2011, 11:31 am

Thanks Jason.
User avatar
denvert
Registered User
Registered User
 
Posts: 57
Joined: March 25, 2011

Re: Login Redirect not working

Postby Jason Caldwell » October 31st, 2011, 8:25 pm

This functionality is now available in the development copy, coming soon in public release. Until then, if you'd like this functionality right away, please upgrade to the development copy of s2Member. Get it here:
http://downloads.wordpress.org/plugin/s2member.zip

Then patch your existing installation of s2Member Pro v111029 with the attached file:
Override your existing copy of /s2member-pro/includes/classes/login-widget.inc.php
login-widget.inc.php.zip
(4.79 KiB) Downloaded 11 times
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Login Redirect not working

Postby denvert » November 1st, 2011, 8:42 pm

thanks Jason. I'll see if I can get it working.
User avatar
denvert
Registered User
Registered User
 
Posts: 57
Joined: March 25, 2011

Re: Login Redirect not working

Postby denvert » November 1st, 2011, 9:06 pm

Hey Jason,

I tried these two things you said to try before,

"login_redirect" => $_GET["previous"],

"login_redirect" => "$_SERVER["HTTP_REFERER"],

and am still just getting the page that the login form is set up on. It seems like the page that is getting re-directed to the login page never gets recognized to go back to.
User avatar
denvert
Registered User
Registered User
 
Posts: 57
Joined: March 25, 2011

Re: Login Redirect not working

Postby Jason Caldwell » November 3rd, 2011, 11:02 am

Thanks for the feedback on this. I see what the issue is, and I'll have this corrected asap and follow-up with you here. Thanks for your patience.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Login Redirect not working

Postby Jason Caldwell » November 5th, 2011, 4:28 pm

This has been corrected in the development copy, coming soon in public release.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Login Redirect not working

Postby denvert » November 6th, 2011, 2:25 am

Thanks Jason for your great Customer Support.

Code below can be pasted into the page that members get redirected to and after logging in they will be directed to the page they were trying to visit that is membership protected.

Code: Select all
<?php
$options 
= array(
"title" => ""
"signup_url" => ""
"login_redirect" =>  "%%previous%%",
"profile_title" => "",
"display_gravatar" => "0"
"link_gravatar" => "0"
"display_name" => "0"
"logged_in_code" => ""
"logout_redirect" => ""
"my_account_url" => "0"
"my_profile_url" => "0" 
);
$args = array (
"before_widget" => "<div class=\"member_login_widget\">",
"after_widget" => "</div>",
"before_title" => "<h5>",
"after_title" => "</h5>"
);
echo 
s2member_pro_login_widget($options$args);
?>
User avatar
denvert
Registered User
Registered User
 
Posts: 57
Joined: March 25, 2011

Re: Login Redirect not working

Postby Jason Caldwell » November 6th, 2011, 11:29 am

Very welcome. That's it. s2Member v111105 is now available.

Changelog excerpt related to this issue.
http://wordpress.org/extend/plugins/s2member/changelog/
(s2Member Pro) Improvement. The s2Member Pro Login Widget now has improved handling of its %%previous%% Replacement Code for login redirections.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Previous

Return to s2Member Plugin

Who is online

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

cron