Hello,
for my forum I want to remove the fields 'Why you do want to join?' and ' I agree to the terms of service'.
I have already removed the lines in the file 'registerapproval.php'. The fields don't appear any longer but I'm still promted 'Why do you want to join?' and 'Agree to terms ...' on the top of the page.
It seems that these two fields are mandatary. How can I avoid this?
0 • •
Comments
"why do you want to join?" TOS and Gender.
I too attempted the change to registerapproval.php as suggested here: How to customize the 'Apply for Membership' form
As elchfan discovered, hiding the fields is not the solution.
Anyone?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •BUMP.
I'm also able to remove the appropriate fields, but validation is still looking for them. This is a pretty critical requirement.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •additionally to taking out the lines in registerapproval
go to application>dashboard>controllers>class.entrycontroller.php
line 1016
$this->UserModel->Validation->ApplyRule('DiscoveryText', 'Required', 'Tell us why you want to join!');to
$this->UserModel->Validation->ApplyRule('DiscoveryText', 'Optional', 'Tell us why you want to join!');where "Optional" was only a guess, but it did make it possible to register without the field
edit: for TOS change the line 1013
$this->UserModel->Validation->ApplyRule('TermsOfService', 'Required', T('You must agree to the terms of service.'));edit: of course this will only work as long as you don't update the core files
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •