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.

Required Checkbox and Password Check Bug

Home Forums Community Forum Required Checkbox and Password Check Bug

This topic contains 9 replies, has 3 voices. Last updated by  Cristián Lávaque 4 years, 7 months ago.

Topic Author Topic
Posted: Saturday May 19th, 2012 at 11:12 am #13980
Ben Griggs
Username: bujaman47

I have added a registration form to a page on my site at http://www.blindbidpro.com/download-now/. I am haveing 2 problems, first, the passwords can be different and it still allows registration, and the checkbox that I really want checked, the one that forces them to accept the terms and conditions, isn’t working properly. The user can leave the box unchecked and still register. I am a very novice coder and can hack my way thorough some very basic stuff, but I can’t figure this one out. The code I have placed on the page is this:

<form name="registerform" id="registerform" action="http://www.blindbidpro.com/wp-login.php?action=register" method="post">
	<p>
		<label for="user_login">Username *<br />
		<input type="text" name="user_login" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
	</p>
	<p>
		<label for="user_email">Email Address *<br />
		<input type="email" name="user_email" id="user_email" class="input" value="" size="25" tabindex="20" /></label>
	</p>
<input type="hidden" name="_wp_original_http_referer" value="http://www.blindbidpro.com/" /><input type="hidden" name="ws_plugin__s2member_registration" value="0623e51e48" />
<p>
<label for="ws-plugin--s2member-custom-reg-field-user-pass1" title="Please type your Password twice to confirm.">
<span>Password ( please type it twice ) *</span><br />
<input type="password" aria-required="true" maxlength="100" autocomplete="off" name="ws_plugin__s2member_custom_reg_field_user_pass1" id="ws-plugin--s2member-custom-reg-field-user-pass1" class="ws-plugin--s2member-custom-reg-field" value="" tabindex="30" />
</label>
<label for="ws-plugin--s2member-custom-reg-field-user-pass2" title="Please type your Password twice to confirm.">
<input type="password" maxlength="100" autocomplete="off" name="ws_plugin__s2member_custom_reg_field_user_pass2" id="ws-plugin--s2member-custom-reg-field-user-pass2" class="ws-plugin--s2member-custom-reg-field" value="" tabindex="40" />
</label>
<div id="ws-plugin--s2member-custom-reg-field-user-pass-strength" class="ws-plugin--s2member-password-strength"><em>password strength indicator</em></div>
</p>
<p>
<label for="ws-plugin--s2member-custom-reg-field-accept-terms">
<span style="display:none;">By checking this box, you agree to our <a href="http://www.blindbidpro.com/terms-of-use/"  target="_blank">Terms & Conditions<a> *</span></label>
<input type="checkbox" value="1" name="ws_plugin__s2member_custom_reg_field_accept_terms" id="ws-plugin--s2member-custom-reg-field-accept-terms" aria-required="true" tabindex="50" class="ws-plugin--s2member-custom-reg-field" /><label for="ws-plugin--s2member-custom-reg-field-accept-terms" style="display:inline !important; margin:0 !important;">By checking this box, you agree to our <a href="http://www.blindbidpro.com/terms-of-use/"  target="_blank">Terms & Conditions<a></label></p>
<p>
<label for="ws-plugin--s2member-custom-reg-field-opt-in">
<input type="checkbox" name="ws_plugin__s2member_custom_reg_field_opt_in" id="ws-plugin--s2member-custom-reg-field-opt-in" class="ws-plugin--s2member-custom-reg-field" value="1" checked="checked" tabindex="60" />
Yes, I want to receive updates via email.
</label>
</p>
	<input type="hidden" name="redirect_to" value="" />
	<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="Download Free Trial Now!" tabindex="100" /></p>
</form>

I just copied the source HTML from the registration page as suggested in this forum thread:
http://www.primothemes.com/forums/viewtopic.php?f=4&t=3029

Any help is greatly appreciated, thanks!

  • This topic was modified 4 years, 7 months ago by  Ben Griggs.

List Of Topic Replies

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Sunday May 20th, 2012 at 11:50 pm #14039
Raam Dev
Username: Raam
Staff Member

Hi Ben,

The problem is that the s2Member JavaScript that handles validation is only designed to work on the wp-login.php page. If you copy/paste the form code somewhere else, you’ll need to either modify the s2Member JavaScript or create your own validation for the form.

As per our support policy, custom programming and custom modifications to s2Member are not supported (please see s2Member® » Support Policy » Outside Scope).

Posted: Sunday May 20th, 2012 at 11:55 pm #14042
Ben Griggs
Username: bujaman47

Thanks for the reply, any tips on how to accomplish this? Again, I am not a programmer and JavaScript is something I don’t know anything about.

Posted: Tuesday May 22nd, 2012 at 5:50 am #14171

Ben, have you tried using the free registration pro-form instead? [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms[/hilite]

Posted: Wednesday May 23rd, 2012 at 12:11 am #14262
Ben Griggs
Username: bujaman47

Awesome! Thanks, that is exactly what I needed!

Posted: Wednesday May 23rd, 2012 at 1:46 am #14277

Excellent! Thanks for the update. I’m glad that solved your problem. :)

Posted: Wednesday May 23rd, 2012 at 2:10 am #14284
Ben Griggs
Username: bujaman47

Do i have to be using PayPal as my payments processor to use this form? Or can I use it with Google Checkout?

Posted: Wednesday May 23rd, 2012 at 3:21 am #14292

You don’t need to use PayPal to use the free registration pro-form. If it shows a warning about PayPal not being configured, then just add fake credentials to the PayPal config and the message will go away. Just remember to configure it properly if you some day decide to use PayPal or it won’t work. :)

Posted: Wednesday May 23rd, 2012 at 12:32 pm #14338
Ben Griggs
Username: bujaman47

Thanks for the awesome reply, the login is working great! I really appreciate the help.

Posted: Thursday May 24th, 2012 at 3:53 am #14418

Excellent. :)

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