Fork me on GitHub
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
You should grab 2.1.9, released 18 March. It's what all the cool kids are doing.

Remove 'Why you do want to join' and 'terms of service'

edited April 2011 in Vanilla 2.0 Help
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?


  • dokdok
    edited August 2011
    I would like to remove these as well.
    "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.


  • BUMP.

    I'm also able to remove the appropriate fields, but validation is still looking for them. This is a pretty critical requirement.

  • fh111fh111 Vanilla Padawan ✭✭
    edited September 2012

    additionally to taking out the lines in registerapproval

    go to

    line 1016

    $this->UserModel->Validation->ApplyRule('DiscoveryText', 'Required', 'Tell us why you want to join!');


    $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

    for TOS change the line 1013

    $this->UserModel->Validation->ApplyRule('TermsOfService', 'Required', T('You must agree to the terms of service.'));

    of course this will only work as long as you don't update the core files

Sign In or Register to comment.