Simple Membership Plugin › Forums › Simple Membership Plugin › Can I make changes to default redirects?
- This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago by
drew345.
-
AuthorPosts
-
February 2, 2016 at 9:44 pm #5112
drew345
ParticipantWhen I click on my Member Area page while not logged in , I get redirected twice before landing on the registration page :Member Area (shows login and join us options) Membership-join page, and finally registration. I understand some websites with multiple levels may want that extra page for explanation. But, if I want to direct directly from the “join us” button on the protected Member Area page to the registration page (skip the Membership-join) page, is that possible?
After completing registration successfully, when I click on my member area, I am asked to log in again. Is it possible to have the member automatically logged in after completing the registration (I found this frustrating as a member visiting my website).
After doing the above log-in, now I am redirected to the home page (I was directed to the log-in page from the Member area page). Can I be directed directly to the member area page after log in? Or for a general solution, be redirected back to whatever page sent you to the login page. (again, found this frustrating as a new customer trying to get to my member area.
Thanks,
DrewFebruary 3, 2016 at 12:24 am #5116mbrsolution
ModeratorHi Drew, can you check the following documentation. Let me know if this answers one of your questions above?
The following documentation should help you with the third question above.
Can you explain further the following question.
But, if I want to direct directly from the “join us” button on the protected Member Area page to the registration page (skip the Membership-join) page, is that possible?
February 3, 2016 at 8:36 am #5120drew345
ParticipantThank you,
—–
The question about redirecting after log-in is solved. That works great.
—–
Is there anything similar for redirecting after registration:
After completing the Registration form on the membership-registration page, the next page is still the membership-registration page, but it is just totally blank.
Of course I can add something to that page like “Login Now”, but then whatever I add actually shows underneath the registration form.
Is there a way to get the Registration page to redirect actomatically to another page after submitting a successful registration? I guess the login page would be the natural place to redirect to.
—–
And here is more description on the first question:
I have page “Member Area” designated as needing membership to access it.
When I click on the page as an unregistered user, it says, “You need to login to view this content. Pleas Login. Not a Member? Join us.”
Both “Login” and “Join Us” are hyperlinked.
When I click “Join Us” I am redirected to the membership-join page, which has a button on it for “click Join Now Here” which is hyperlinked.
When I click the “click Join Now Here” button, then I am redirected to the membership-registration page, where I register.What I want is to just jump right from the “Not a Member? Join us” to the membership-registration page (instead of having to go to the membership-join page as an intermediate). But I can’t find the “Not a Member? Join us” HTML code to edit the hyperlink. It doesn’t actually exist on the member-area page, it only shows up on the member-only page when a non-member looks at it.
Sorry if that was still confusing. Basically want to edit the hyperlink on the “Join Us” text that appears when a non user looks at a protected page.
February 3, 2016 at 9:26 am #5121mbrsolution
ModeratorHi in regards to your first question add the following function to your theme function.php file.
add_action('swpm_front_end_registration_complete', 'sam_after_registration_redirection'); function sam_after_registration_redirection() { $url = 'http://www.yourwebsite.com/thank-you/';//TODO - Specify the URL that you want to redirect to wp_redirect($url); exit(); }For your other question please check the following documentation. What you can do is add the registration page URL to the custom message.
February 4, 2016 at 5:15 am #5131drew345
ParticipantThank you,
All redirects are working smooth as silk.
Thanks for the help, -
AuthorPosts
- You must be logged in to reply to this topic.