Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-07T19:31:08-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16522 2012-01-07T19:31:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59966#p59966 <![CDATA[Re: required user registration fields are not required]]>
The free version of s2Member does not currently support registration forms on any page except wp-login.php?action=register. If you want to place registration forms on a different page, we recommend that you use Pro-Forms, a feature that comes with s2Member Pro.

The error messages listed above the registration form confirm that s2Member is checking the form (that JavaScript popup dialog is created by the s2Member JavaScript).

Statistics: Posted by Raam Dev — January 7th, 2012, 7:31 pm


]]>
2012-01-06T20:29:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59879#p59879 <![CDATA[Re: required user registration fields are not required]]>
Big thanks to Raam, Cristián and Jason, I did have 2 spaces and 2 quotes in front of the pipe and after removing them the field is recognized as required. Well spotted.

I'm still having the same issue that the custom fields are only required when I'm on the /wp-login.php page but not on my /member-page or not when people trying to register on my slide-down panel which is avaliable to them on any page. I have been tempering with what Raam suggested to change the
Code:
if (location.href.match (/\/wp-login\.php/))
but that is not working. Basically the custom fields are not getting checked on any other page but /wp-login.php even if I take the whole line out.

mhume - I did look at your screen shot again and now wondering why your error messages are listed above your register form. I only get the error shown there when I try to register from one of my custom forms on other pages but not when I'm on the original /wp-login.php page. When try to register on the /wp-login.php page with empty required fields I only get a pop-up window showing the errors as in the attached screen shot.

I think both our problems will be solved if s2member will check custom fields regardless on what page are they on.

 

Statistics: Posted by stonecoldcnc — January 6th, 2012, 8:29 pm


]]>
2012-01-06T15:16:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59865#p59865 <![CDATA[Re: required user registration fields are not required]]> Statistics: Posted by mhume — January 6th, 2012, 3:16 pm


]]>
2012-01-05T20:38:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59824#p59824 <![CDATA[Re: required user registration fields are not required]]>
s2Member's JavaScript routines for /wp-login.php, will only run on /wp-login.php, even if they are loaded into another page with the same element IDs, classes, etc.

The reason for this, is line #141 inside /s2member/includes/s2member.js, which ultimately runs from /s2member/includes/s2member-min.js.

You can manually change this inside /s2member/includes/s2member.js, and then save it as /s2member-min.js.

Code:
if (location.href.match (/\/wp-login\.php/))
            {


That's the bit of code that forces the JavaScript to only run when loading from wp-login.php.

Statistics: Posted by Raam Dev — January 5th, 2012, 8:38 pm


]]>
2012-01-05T02:38:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59745#p59745 <![CDATA[Re: required user registration fields are not required]]>
Code:
<option value="&quot;  &quot;" selected="selected">(please select a country)</option>



So that must be the issue.

Juergen, could you please clean up that default so it has not value at all?

Code:
<option value="" selected="selected">(please select a country)</option>



Thanks, Jason. :)

Statistics: Posted by Cristián Lávaque — January 5th, 2012, 2:38 am


]]>
2012-01-05T02:27:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59743#p59743 <![CDATA[Re: required user registration fields are not required]]> Hi there. Thanks for reporting this important issue.
Can you please post your list of options for this Custom Registration/Profile Field?

I see that you have (please select a country) as the default option. Does this have a value assigned to it somehow? Even if it's just a space, that's something, and could cause trouble for the validation routine. You should have something like this.

SNAG-0002.png

Statistics: Posted by Jason Caldwell — January 5th, 2012, 2:27 am


]]>
2011-12-31T11:48:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59350#p59350 <![CDATA[Re: required user registration fields are not required]]> http://stonecoldcnc.com/wp-login.php?action=register the first name and last name are required but not the country code which supposed to be required too as you can see in the attached photos.

s2member required fields.png

country code required.png

Hopefully you will find the bug soon as I have constantly people registering with missing details.
 

Statistics: Posted by stonecoldcnc — December 31st, 2011, 11:48 am


]]>
2011-12-31T11:06:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59344#p59344 <![CDATA[Re: required user registration fields are not required]]>
not sure if you have seen the post above yours from Raam Dev, he has confirmed the problem in his test installation.

regarding:

Have you tried going to the default registration form and copying the HTML for the form from it? That may work and do s2Member's JS check. /wp-login.php?action=register


As I said before I'm using <?php do_action('register_form'); ?> to create the form which seems to be exactly the same html code as here /wp-login.php?action=register when I look through the html code.

Statistics: Posted by stonecoldcnc — December 31st, 2011, 11:06 am


]]>
2011-12-29T03:04:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59053#p59053 <![CDATA[Re: required user registration fields are not required]]>
stonecoldcnc wrote:
Hi Cristián
I'm loading the registration fields inside the registerform with this action:
...
Everything works fine except that the required* fields are not required to register. Not sure if that is caused by any of the latest versions of wordpress 3.3 and s2member 111220 since I noticed the problem about 2-3 weeks ago.


I understand now what you meant.

s2Member checks for the first and last names with JavaScript, it's not server side if I'm not mistaken.

This form was created by you and you're not using the JS to check the fields, s2Member has nothing to do with it, so there's nothing requiring those fields.

Have you tried going to the default registration form and copying the HTML for the form from it? That may work and do s2Member's JS check. /wp-login.php?action=register

stonecoldcnc wrote:
s2member has 100s of shortcodes, I looked through the list but can't find anything to create a custom login/register form. Can you point me in the right direction please as I have no clue what you mean?


There is a pro-form in s2Member Pro, that lets you create a registration form with a shortcode. WP Admin -> s2Member -> PayPal Pro-Forms -> Free Registration

I hope that helps!

Statistics: Posted by Cristián Lávaque — December 29th, 2011, 3:04 am


]]>
2011-12-28T23:10:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=59047#p59047 <![CDATA[Re: required user registration fields are not required]]>
Thank you for your patience!

Statistics: Posted by Raam Dev — December 28th, 2011, 11:10 pm


]]>
2011-12-27T20:44:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58983#p58983 <![CDATA[Re: required user registration fields are not required]]> Statistics: Posted by mhume — December 27th, 2011, 8:44 pm


]]>
2011-12-27T20:33:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58982#p58982 <![CDATA[Re: required user registration fields are not required]]> Statistics: Posted by mhume — December 27th, 2011, 8:33 pm


]]>
2011-12-27T20:10:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58980#p58980 <![CDATA[Re: required user registration fields are not required]]> http://stonecoldcnc.com/member-page/

you can also register using the sliding panel at the top right hand corner on the same page.

Statistics: Posted by stonecoldcnc — December 27th, 2011, 8:10 pm


]]>
2011-12-27T16:12:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58960#p58960 <![CDATA[Re: required user registration fields are not required]]> Statistics: Posted by Raam Dev — December 27th, 2011, 4:12 pm


]]>
2011-12-27T10:18:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58932#p58932 <![CDATA[Re: required user registration fields are not required]]>
Raam Dev wrote:
Hey Matt,

Did you make sure that you were fully logged out when testing the registration process?


Thanks for the reply. Yes, I did completely log out and also tried registering in a couple different browsers. It did not require any fields except the email and username to register. I had no other modules at the time of testing this. Just the latest wordpress and s2member.

Statistics: Posted by mhume — December 27th, 2011, 10:18 am


]]>
2011-12-27T09:57:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58931#p58931 <![CDATA[Re: required user registration fields are not required]]>
s2member has 100s of shortcodes, I looked through the list but can't find anything to create a custom login/register form. Can you point me in the right direction please as I have no clue what you mean?

Statistics: Posted by stonecoldcnc — December 27th, 2011, 9:57 am


]]>
2011-12-27T09:02:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58926#p58926 <![CDATA[Re: required user registration fields are not required]]>
You will benefit by the fact that the shortcode is encrypted and the HTML isn't.

Please tell me how it goes.

Thanks.

Statistics: Posted by Eduan — December 27th, 2011, 9:02 am


]]>
2011-12-27T07:50:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58916#p58916 <![CDATA[Re: required user registration fields are not required]]> I'm loading the registration fields inside the registerform with this action:

Code:

<?php do_action('register_form'); ?>




Here is the complete code of the form:
Code:

<!-- Register Form -->
<form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
<h1>Not a member yet? Sign Up!</h1>
<label class="grey" for="user_login"><?php _e('Username*') ?></label>
<input class="field" type="text" name="user_login" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" />
<label class="grey" for="user_email"><?php _e('E-mail*') ?></label>
<input class="field" type="text" name="user_email" id="user_email" class="input" value="<?php echo attribute_escape(stripslashes($user_email)); ?>" size="25" tabindex="20" />
<?php do_action('register_form'); ?>
<label id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></label>
<input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Register'); ?>" class="bt_register" />
</form>




Everything works fine except that the required* fields are not required to register. Not sure if that is caused by any of the latest versions of wordpress 3.3 and s2member 111220 since I noticed the problem about 2-3 weeks ago.

Statistics: Posted by stonecoldcnc — December 27th, 2011, 7:50 am


]]>
2011-12-27T06:13:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58902#p58902 <![CDATA[Re: required user registration fields are not required]]> Statistics: Posted by Cristián Lávaque — December 27th, 2011, 6:13 am


]]>
2011-12-27T00:12:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58881#p58881 <![CDATA[Re: required user registration fields are not required]]>
Same happens here, only user-name and email is required but NOT the first and last name. Although it does seem to be working correctly on the .../wp-login.php?action=register page but neither of the .../member-page/ or my login sliding panel are checking the first and last name.

My custom login/register pages used work before, when a user missed to fill in a required information it automatically redirected them to .../wp-login.php?action=register page. That is still happening but only if the username or email is missing, not for any of the other required fields.

I noticed about 2-3 weeks ago that I have members signing up without a last name. They were mostly spammers and I thought they found a way around all the security mechanisms but I only now realized that name fields are not required anymore to sign-up.

I tested this with the same results on the life and localhost site.

Statistics: Posted by stonecoldcnc — December 27th, 2011, 12:12 am


]]>
2011-12-25T22:48:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58794#p58794 <![CDATA[Re: required user registration fields are not required]]>
Did you make sure that you were fully logged out when testing the registration process?

Statistics: Posted by Raam Dev — December 25th, 2011, 10:48 pm


]]>
2011-12-25T01:19:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16522&p=58748#p58748 <![CDATA[required user registration fields are not required]]> Thanks,
Matt

Statistics: Posted by mhume — December 25th, 2011, 1:19 am


]]>