Page 1 of 1

problem with registration page and reCaptcha

PostPosted: July 14th, 2010, 4:27 pm
by Nick
Hi Jason

I have found a small problem with s2Member when reCaptcha is enabled on the registration page. It has to do with the tabindex order. Its currently set to 10, 20, 30, 40 with first name having a value of 30 and last name 40. The reCaptcha plugin has a value of 30 so when you get to the first name field it jumps next to reCaptcha skipping the last name field.

Nick

Re: problem with registration page and reCaptcha

PostPosted: July 14th, 2010, 5:09 pm
by Jason Caldwell
Hi Nick. Thanks for reporting this.

Yea, I'm aware this causes conflicts under certain circumstances. It's a difficult thing to fine-tune. The reason for 10, 20, 30, 40, etc, is to leave plenty of room for Hooks/Filters and other Custom Fields to be inserted between them. Also, depending on your theme, your sidebar, etc, these tabindex numbers can either work beautifully, or cause other changes to be needed.

If anyone has any suggestions, I'm open to hearing them. To address your immediate problem with reCapchya, you can use their API, which already addresses this issue:
Code: Select all
<script>
var RecaptchaOptions = {
   tabindex : 50
};
</script>

For more information, please see:
http://www.google.com/recaptcha/apidocs/captcha/client

Re: problem with registration page and reCaptcha

PostPosted: October 5th, 2010, 10:48 pm
by grayskyes
Just wondering where that script would go... wp_login.php or in an s2Member php file.

Thanks