Fork me on GitHub
Current releases are 2.1 (gold) and 2.0.18.11 (security patch for 2.0)
Ready for 2.1? Find out if your favorite plugins are compatible.
The 2.0 branch will no longer receive updates after Dec 2014.

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

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

Comments

  • 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.

    Anyone?

  • 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 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

Sign In or Register to comment.