Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › What is the url variable for registration page?
Tagged: $join_url link, membership, registration url
- This topic has 8 replies, 2 voices, and was last updated 11 years, 5 months ago by memwpent.
-
AuthorPosts
-
June 3, 2013 at 3:18 am #9166memwpentSpectator
I would like to change the Join Us link on the login form in emember_auth_utils.php from going to the join_url to go to the url of the registration page instead. Is there something similar to $join_url that I can use to send the user to the registration page rather than the join page?
June 3, 2013 at 7:59 am #55956adminKeymasterGo to the following settings area of the membership plugin and specify the URL:
WP eMember Settings -> Pages/Forms Settings -> Registration Page
June 3, 2013 at 10:39 am #55957memwpentSpectatorI have that setup to point to my join (registration) page.
I have a non-standard membership setup in order to allow me to provide for non-recurring membership for multiple membership packages for the same user.
I have a registration page which I call my join page where a user just registers for a free account. When they log in, it then redirects them to my payment page which lists all of the possible membership packages, and they then choose one of these and become a member of that package.
So
WP eMember Settings -> Pages/Forms Settings -> Registration Page
points to my Join page (i.e. free membership registration)
and
WP eMember Settings -> Pages/Forms Settings -> Membership Payment/Join Page
points to my payment page (which lists all of the possible packages)
The problem that I have is that on the login form, at the bottom there is a Join Us option which links to my payment page (i.e. WP eMember Settings -> Pages/Forms Settings -> Membership Payment/Join Page) rather than my join page (i.e. WP eMember Settings -> Pages/Forms Settings -> Registration Page)
Looking at the code in emember_auth_utils.php,
<tr>
<td colspan=”2″><?php echo EMEMBER_JOIN_US;?></td>
</tr>
I think it is either $join_url or EMEMBER_JOIN_US (not sure which one) that is linking to the
WP eMember Settings -> Pages/Forms Settings -> Membership Payment/Join Page
page
Can I replace $join_url with another url that will instead link to the page
WP eMember Settings -> Pages/Forms Settings -> Registration Page
June 3, 2013 at 11:59 pm #55958adminKeymasterYou don’t need to change any code. I would recommend you to do the following for your membership site scenario:
Enter the URL of your “Registration page” in both the following eMember settings fields (that will do exactly what you are trying to do with the code tweak):
Pages/Forms Settings -> Registration Page
Pages/Forms Settings -> Membership Payment/Join Page
Let me know if that helps.
June 4, 2013 at 12:17 am #55959memwpentSpectatorWon’t there be a problem with that though, because when a user first logs in after having registered with a free account, I automatically redirect them through emember to the payment page where they have to pay to become a real member of a package rather than just a free member who can do nothing but be redirected to the payment page?
June 4, 2013 at 12:21 am #55960adminKeymasterHow are you doing the redirect to the payment page?
June 4, 2013 at 12:38 am #55961memwpentSpectatorI have Enable After login Redirection: set to Y in the general section od settings
and
Redirect After Login to my payment page is set in my Free membership level
June 4, 2013 at 3:55 am #55962adminKeymasterIn that case, it doesn’t matter what value you enter in the “Membership Payment/Join Page” field. The after login redirect is taking the value from a different field. Try it and let me know how it goes.
Remember, you can also edit your registration page and place a link to your “payment page” (if you need to).
June 4, 2013 at 7:10 am #55963memwpentSpectatorFantastic, it worked. No need for any code changes at all!
Thanks for your great support.
-
AuthorPosts
- You must be logged in to reply to this topic.