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.

Bypassing the Login Welcome Page

Home Forums Community Forum Bypassing the Login Welcome Page

This topic contains 11 replies, has 5 voices. Last updated by  Cristián Lávaque 3 years, 10 months ago.

Topic Author Topic
Posted: Wednesday Feb 20th, 2013 at 1:14 pm #42594

I know there are a lot of topics on the subject of Login Welcome Page. If that was answered, I apologize and please direct me to that answer.

For the MOST page, I want to send people to the Login Welcome Page.

However, there are scenarios where I would like to send them to ANOTHER PAGE. For example, the user gets an email “John Smith responded to your forum post – click here”.

So right now, if they click, they will be asked to log in, and then go the welcome page, totally dismissing the email message. (Unless they were logged in at the time)

Now if I set the log in widget to “previous page”, then I have problems with other users now not getting to the welcome page.

Is there is way to accomplish this – going to the welcome page, except when those email links are clicked?

thanks

List Of Topic Replies

Viewing 11 replies - 1 through 11 (of 11 total)
Author Replies
Author Replies
Posted: Wednesday Feb 20th, 2013 at 4:53 pm #42611
Eduan
Username: Eduan
Moderator

Hello Vincent,

While I’m afraid that’s not possible as-is with s2Member, it’s definitely do-able. You’ll just have to do some custom coding to recognize when the user came from a certain location and redirect to a certain URL in those cases.

If this is too advanced for yourself you can always hire a freelancer to do it for you. We recommend jobs.wordpress.net or elance.com.

– Eduan

Posted: Wednesday Feb 20th, 2013 at 5:19 pm #42614

A perfect example is the email I recieved that led me here:

“Eduan wrote a new Forum Topic Reply.
See post link here: http://www.s2member.com/forums/topic/bypassing-the-login-welcome-page/?qcAC=1#post-42611”

You get to the forum post. Then when you login, you are right back at the forum post. (not that I want someone to “SEE” the forum post in the blog, obviously they go right to the register page.

Unfortunately, the login welcome page gets in the way. Using “Previous” in the pro login form works great for that, but then I you lose the welcome page when someone logs in let’s say via Facebook. (they go back to the home page)

It’s too bad that functionality isn’t in S2Member. I hope you guys consider that in the future.

thanks

Posted: Wednesday Feb 20th, 2013 at 9:38 pm #42627
Eduan
Username: Eduan
Moderator

Hmm… I see what you mean.

I’ll ask Jason if he could implement this, see what he says. :)

Posted: Thursday Feb 21st, 2013 at 3:03 am #42667

cool, thanks

Posted: Thursday Feb 21st, 2013 at 3:08 am #42669
Staff Member

Thanks for the heads up on this thread :-)

See: wp_login_url() for this. You could use the $redirect parameter.
Posted: Friday Feb 22nd, 2013 at 3:25 am #42786

I figured the functionality was there all along.

Now to figure out how to combine the two

i.e.
http://www.s2member.com/forums/topic/bypassing-the-login-welcome-page/?qcAC=1#post-42611″

and

<a href="” title=”Login”>Login

Knowing you’re not out to help develop web sites, using the forum example, where do you think I might begin to look to make that change?

thanks

Posted: Saturday Feb 23rd, 2013 at 7:28 am #42998
Bruce
Username: Bruce
Staff Member

Knowing you’re not out to help develop web sites, using the forum example, where do you think I might begin to look to make that change?

There are a number of ways to pass the redirect_to variable. In your example above, it looks like you want to use a link? If so, you can pass redirect_to in the URL like this:

http://example.com/wp-login.php?redirect_to=/my-login-page

This just passes it through the URL, and the User should be automatically redirected based on this.

Posted: Saturday Feb 23rd, 2013 at 10:52 am #43044

Actually, it is links in emails (like the forum example above)

For example:

“Visit us to see the Group Post: http://www.pianowizardacademy.com/campus/group?gid=1&post=176

(this is WP Symposium, like Buddypress)

Right now, it looks like the solution is:

www.pianowizardacademy.com/wp-login.php?redirect_to=http://www.pianowizardacademy.com/campus/group?gid=1&post=176

as this almost works. I just get to
http://www.pianowizardacademy.com/campus/group/?gid=1 (&post-176 is dropped)
But that’s good enough I hope.

I just have to figure out how to edit the emails, but I’ll get that support from WPS.

Thank you so much for the assistance.

Posted: Monday Feb 25th, 2013 at 7:52 am #43151

Vincent, have you tried encoding the redirection URL? http://meyerweb.com/eric/tools/dencoder/

http://www.pianowizardacademy.com/wp-login.php?redirect_to=%2Fcampus%2Fgroup%3Fgid%3D1%26post%3D176
Posted: Monday Feb 25th, 2013 at 9:17 am #43163

good tool Christian. I have a new bookmark.

thanks

Posted: Tuesday Feb 26th, 2013 at 8:35 am #43225

No problem. :)

Viewing 11 replies - 1 through 11 (of 11 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.