Simple Membership Plugin › Forums › Simple Membership Plugin › Bypass "Join Us" page
- This topic has 7 replies, 2 voices, and was last updated 10 years, 2 months ago by
mbrsolution.
-
AuthorPosts
-
July 1, 2016 at 3:26 pm #7337
cdonahue
ParticipantI’m setting up registration for a nonprofit website, so there are no memberships levels. I’d like the link at the bottom of the Login box to be “Register” — and go straight to the Registration page, instead of “Join Us.” I created copies of the simple membership login.php and loggedin.php forms and put them in the right subfolder in my child theme. I can see the code that generates the “Join Us” link on login.php:
<div class="swpm-join-us-link"> <a id="register" class="swpm-login-form-register-link" href="<?php echo $join_url; ?>"><?php echo SwpmUtils::_('Join Us') ?></a> </div>How do I replace that with code that would send users directly to the Registration page?
July 1, 2016 at 3:30 pm #7338cdonahue
ParticipantHere’s the full code:
<div class="swpm-join-us-link"> <a id="register" class="swpm-login-form-register-link" href="<?php echo $join_url; ?>"><?php echo SwpmUtils::_('Join Us') ?></a> </div>July 1, 2016 at 8:12 pm #7341cdonahue
ParticipantWell, I got around this problem by taking the Registration page up one level so it’s no longer a child of the “Join Us” page, and replacing the php code with a direct URL:
<div class="swpm-join-us-link"> <a id="register" class="swpm-login-form-register-link" href="http://aiia.staging.wpengine.com/aai-grantees/membership-registration/"><?php echo SwpmUtils::_('Register') ?></a> </div>Not entirely sure this is kosher but it’s doing what I wanted it to do — going directly to the Registration page when the user clicks on “Register”
July 2, 2016 at 9:57 pm #7351mbrsolution
ModeratorHi, is this currently working for you the way you have set it up?
July 2, 2016 at 11:32 pm #7352cdonahue
ParticipantThe only thing that isn’t working is the message users get after they fill in their registration details and hit the “Register” button. Even though I have the new user status set to “pending,” they see a message that says “Registration complete. Login here.”
I don’t know if that is related to my taking out the php for “join us” and replacing it with a direct link to the register page, or if it’s a separate issue.
July 3, 2016 at 12:34 am #7353mbrsolution
ModeratorHi, did you check your other support thread here in this forum which I have replied to? It is referring to the above mentioned issue you are having.
Regards
July 3, 2016 at 1:17 am #7354cdonahue
ParticipantNo, I’m not — is that what you recommend?
July 3, 2016 at 1:32 am #7355mbrsolution
Moderator -
AuthorPosts
- You must be logged in to reply to this topic.