Extends the application form so that the user's first and last names are on the form and are required. It also checks that the user actually clicked to read the Terms of Service.
I have installed the Japanese language for my forum. All works well except that when I install this extension, the "First" and "Last" name text that appears to the left of the fields is not translated into Japanese. I found that the translation does in fact exist. So it would appear that the bug at work here is not properly accessing that Japanese translation even when the user has selected Japanese as the language of the forum interface.
JDW, I think you need to assign proper Japanese translation for the "First Name" and "Last Name" to this default.php respectively. But this will override other languages. Cut them and paste into Japanese Lang file.
Which "default.php"? Can you please specify the path?
Also, I certainly do not want Japanese to override any other language because my forum is bi-lingual. I have an English Category and a Japanese Category. Obviously, if I put Japanese and kill the English, then my English users will be faced with the same exact problem that plagues my Japanese users with respect to this extension. I would therefore appreciate hearing your thoughts in light of this.
I will provide the path (since no one else seems to know, and since I just figured it out):
/extensions/ExtendedApplicationForm/default.php
The pertinent content within that particular "default.php" file is as follows:
$Context->Dictionary["FirstName"] = "First name"; $Context->Dictionary["LastName"] = "Last name"; $Context->Dictionary["FirstNameLower"] = "first name"; $Context->Dictionary["LastNameLower"] = "last name"; $Context->Dictionary["ErrReadTOS"] = "You must READ the terms of service.";
I think you are suggesting that I copy the first 2 lines in the above and paste them into the following:
/languages/Japanese/definitions.php
If you are suggesting that, please note that the following two lines already exist in that "definitions.php" file (but are not being used for whatever reason):
Be aware of the differences between the Dictionary in /languages/Japanese/definitions.php and /extensions/ExtendedApplicationForm/default.php. 'YourFirstName' vs "FirstName" So you need to cut and paste the 2 lines into definition file. -->"Cut and Paste", do not leave these lines in /extensions/ExtendedApplicationForm/default.php, or your other language files will be overridden.
Hi, I love the extension, but is there a way to comment out the code in default.php to eliminate the need for applicants to actually click/read on the terms of service?
love it. Is there a way to insert more custom fields? And what I really need is that users can`t choose a username by themselfes. It should be generated automatically out of the first and lastname. Any ideas how I can do that?
I have tried to add some extra input fields to the application form using this extension as a template but when it returns the validation the input field value is not returned. Does anyone know if the field names have to corresponed to the database field names? It seems to me they are - but does Vanilla look and check if they corresponed?
...........................
@ TheAndrej
comment out this line: if (!$SafeUser->ReadTerms) $ApplyForm->Context->WarningCollector->Add($ApplyForm->Context->GetDefinition("ErrReadTOS"));
I have the exact same problem someone had, which is that the vanilla asks to read the terms of services even though TOS is checked. Does anyone know how to solve this problem?