I have tried all suggestions, and nothing seems to work. I am really pissed off. I have been at this for days. What am I doing wrong, and how the HELL do I get those fields off of the damned sign up form?!?!?
This is what I have done so far:
********************************************************************
in public_html_/user/editlib.php I did this:
/* $mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"'); */
/* $mform->setType('city', PARAM_MULTILANG); */
/* $mform->addRule('city', $strrequired, 'required', null, 'client'); */
/* if (!empty($CFG->defaultcity)) {
$mform->setDefault('city', $CFG->defaultcity); */
/* } */
****************************************************************************************
In public_html_/user/editadvanced_form.php I did this:
/* if (!$user or $user->email !== $usernew->email) {
if (!validate_email($usernew->email)) {
$err['email'] = get_string('invalidemail'); */
/* } else if ($DB->record_exists('user', array('email'=>$usernew->email, 'mnethostid'=>$CFG->mnet_localhost_id))) {
$err['email'] = get_string('emailexists'); */
*/ } */
*/ } */
****************************************************************************
In PHPMyAdmin I set city and country both to "Null", and then dropped city altoether to see it that would do anything, as nothing works. Others are saying that this plan works just like a charm, and I can't get any change at all. I clear the cache and nothing happens. How do I finally fix this?! I don't want to be working on this for a few more days just to get those #$%^$ing fields removed!
Please help,
Wendi