[FEU] Registration goes on even without required fields

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
jwaldeck

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

Post 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!!!
jwaldeck

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

Post 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
vilkis

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

Post 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
xmas3
Forum Members
Forum Members
Posts: 41
Joined: Sat Jul 28, 2007 9:22 am
Location: Bratislava / Slovakia

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

Post 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
xmas3
Forum Members
Forum Members
Posts: 41
Joined: Sat Jul 28, 2007 9:22 am
Location: Bratislava / Slovakia

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

Post 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 ...
jwaldeck

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

Post by jwaldeck »

Hi.

Nope, we included a content type "checkbox" and added a license agreement PDF link to the label.
RytoEX
Forum Members
Forum Members
Posts: 29
Joined: Thu Jan 07, 2010 10:32 am

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

Post 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.
FormBuilder Developer (former Admin)
FormBrowser Developer and Admin
janb

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

Post 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
Post Reply

Return to “Modules/Add-Ons”