Page 1 of 1

Free Registration From disabled submit button

PostPosted: May 9th, 2011, 10:16 am
by mdelacruzperu
I created a Free Registration Form with the Pro Version of s2Member, I'm using the following code from a page:

[s2Member-Pro-PayPal-Form register="1" level="0" ccaps="" desc="Signup now, it's Free!" custom="www.mydomain.com" tp="0" tt="D" captcha="clean" /]

As instructions recommendation.

But when I go there I can't click the submit button, it's disabled. Any clue what could be happening?

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 10:19 am
by Cristián Lávaque
Hola.

Have you enabled free registrations? WP Admin -> s2Member -> General Options -> Open Registration / Free Subscribers

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 10:21 am
by mdelacruzperu
Cristián, yes it is open Yes (Allow open registration...

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 11:17 am
by Cristián Lávaque
OK. I tried your shortcode and it worked fine for me, the submit button is not disabled.

Can I see your page with the problem?

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 11:59 am
by mdelacruzperu
I think it was working before, suddenly began to appear disabled, I will send you the page by private message.

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 12:09 pm
by Cristián Lávaque
You can send it to using this form http://s2member.com/contact/

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 12:26 pm
by mdelacruzperu
Send it.
s2member is generating this code for the button:

<input type="submit" id="s2member-pro-paypal-registration-submit" class="s2member-pro-paypal-submit s2member-pro-paypal-registration-submit" value="Submit Form" tabindex="310" disabled="">

I'm not finding where he adds the disabled option I think it is managed through js line 147 at:
\wp-content\plugins\s2member-pro\includes\separates\gateways\paypal\paypal.js

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 1:16 pm
by mdelacruzperu
I found the problem guys. In my theme functions.php file I'm using this option to update jquery to it's latest version:

Code: Select all
/** Load jQuery latest **/
if ( !is_admin() ) {
   wp_deregister_script('jquery');
   wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false);
   wp_enqueue_script('jquery');
}
 


That breaks s2member Free Registration Form javascript, any ideas how to deal with this?

It's possible for us to have troubles with s2member when Wordpress upgrades jQuery in any next release.

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 1:34 pm
by Cristián Lávaque
I'm glad you found the problem. :)

I'll let Jason know of this conflict so he prevents future conflicts if possible.

Re: Free Registration From disabled submit button

PostPosted: May 9th, 2011, 3:30 pm
by mdelacruzperu
Cristián thank you for your amazing support as always you do

Re: Free Registration From disabled submit button

PostPosted: May 10th, 2011, 7:53 pm
by Jason Caldwell
Thanks for reporting this important issue.
~ and thanks for bringing this to my attention Cristián.

The construction of this link is designed to pull the latest release of jQuery in the 1.x.x series. Although this is a very cool feature provided by the Google API; with WordPress and WordPress plugins ( including s2Member ), we expect to see the version of jQuery that was shipped with WordPress, or at least a version within the same series.

So for instance, this URL you have now pulls jQuery v1.6
( jQuery v1.6 is bleeding edge, and could raise conflicts with plugins running on WP v3.1 ).
Code: Select all
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

If you're going to employ a script like this, I would suggest this alternative, and then update the minor release number to match what WordPress ships with.
Code: Select all
http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js

( this will pull jQuery v1.4.4, the latest in the 1.4 series )

WordPress v3.1 ships with jQuery v1.4.4.


In either case, I thank you VERY much for reporting this important issue, and we'll be sure to test s2Member against the latest version of jQuery before the next release.

@TODO: test against jQuery v1.5.x and jQuery v1.6.x.

Re: Free Registration From disabled submit button

PostPosted: May 11th, 2011, 5:49 pm
by mdelacruzperu
Jason nice to meet you and thank you for you replying this post, I'm really happy with your entire support team.

Re: Free Registration From disabled submit button

PostPosted: May 13th, 2011, 3:05 am
by Jason Caldwell
Nice to meet you too ( @mdelacruzperu ).
Thanks for the kudos! It's really great to hear that :D