Page 2 of 2

[Solved] Re: [FEU] Registration goes on even without required fields

Posted: Mon Nov 30, 2009 11:10 pm
by jwaldeck
Tks Vilkis!

Actually it wasn't the validation issue, it was something much more serious. The required fields weren't being tested for content.

But with the fix hereunder (as described by Calguy on the page you sent me) in the action.reguser.php file did the magic

Code: Select all

case 0: /* text */
if ($required) {
if (!isset($params['input_' . $propname]) || trim($params['input_' .
$propname]) == '') {
		$defn = $feusers->GetPropertyDefn($propname);
		$params['error'] = 1;
		$params['message'] = $this->Lang('error_requiredfield', $defn['prompt']);
		return $this->myRedirect($id, 'default', $returnid, $params);
	}
}
break;
Tks a lot for your prompt reply!!!

Re: [FEU] Registration goes on even without required fields

Posted: Wed Dec 02, 2009 1:51 am
by jwaldeck
Vilkis, me again! :)

I did the change and (almost) everything is working now.

2 distint questions:

a) I have a checkbox that has to be checked during the registration process (it's a license agreement) and this doesn't work, the "if empty" validation doesn't get that and the user can register without a problem if that is not echecked. Are you aware of this?

b) I have to send the new registered user an email using hist firstname (that's the input name on the FrontEnd User Management, but couldn't do that. The default e-mail greeting is { $user}  and that brings me the email (since I'm using the email as username.. How can i change this to use the "firstname" input field? Ive tried {$firstname}, {$input_firstname} and nothing works!! Any clue?!

Thanks a lot!
jw

Re: [FEU] Registration goes on even without required fields

Posted: Wed Dec 02, 2009 1:01 pm
by vilkis
Hi, jwaldeck,
I have looked at the code and it seems the modification of code should be done in both cases.
If you can be a sponsor the best way is to contact calguy1000 (author of module) and ask him to add these features.
vilkis

Re: [FEU] Registration goes on even without required fields

Posted: Wed Feb 03, 2010 9:07 pm
by xmas3
Hi all, the same problem, solved by the solution from jwaldeck.
I think this should be included into a new release of the modul ASAP

Re: [FEU] Registration goes on even without required fields

Posted: Wed Feb 03, 2010 9:19 pm
by xmas3
jwaldeck wrote: checkbox that has to be checked during the registration process (it's a license agreement)
me again, how did you managed to include the license agreement? I added an into the template,
but it is at the end of the form. Any help appreciated ...

Re: [FEU] Registration goes on even without required fields

Posted: Wed Feb 03, 2010 11:38 pm
by jwaldeck
Hi.

Nope, we included a content type "checkbox" and added a license agreement PDF link to the label.

Re: [FEU] Registration goes on even without required fields

Posted: Thu May 27, 2010 10:06 am
by RytoEX
jwaldeck wrote: Vilkis, me again! :)

I did the change and (almost) everything is working now.

2 distint questions:

a) I have a checkbox that has to be checked during the registration process (it's a license agreement) and this doesn't work, the "if empty" validation doesn't get that and the user can register without a problem if that is not echecked. Are you aware of this?

b) I have to send the new registered user an email using hist firstname (that's the input name on the FrontEnd User Management, but couldn't do that. The default e-mail greeting is { $user}  and that brings me the email (since I'm using the email as username.. How can i change this to use the "firstname" input field? Ive tried {$firstname}, {$input_firstname} and nothing works!! Any clue?!

Thanks a lot!
jw

Was "issue a" addressed?  I would like to be able to confirm that a user is "13 or older" before allowing them to register.

Re: [FEU] Registration goes on even without required fields

Posted: Thu May 27, 2010 11:42 am
by janb
Hi

This should work just fine. (Tested with FEU 1.9 and SelfRegistration 1.4)

Add a checkbox to FEU User Properties and add it to your group with Field Status Required.
If a user don't check this en error should be displayed.

JanB