Page 1 of 1

frontend user "control" setting

Posted: Fri Jan 25, 2008 8:51 am
by giggler
Is there a way to set it so that control change settings for frontend users disables them from being able to change their email? the problem with the change in email is that it will import the new email into NMS and NMS will still keep the old email.

I thought this would work...but didn't because now it says "A required field (email) was empty":

change function.user_changesettings.php

Code: Select all

  
case 2: // email
      $onerow->control = $this->CreateInputText( $id, 'feu_'.$onerow->name,
						 $val, $defn['length'], 
						 $defn['maxlength'],
						 $addtext);   
to

Code: Select all

    


case 2: // email
 $onerow->control = $this->CreateInputText( $id, 'feu_'.$onerow->name,
						 $val, $defn['length'], 
						 $defn['maxlength'],
						 'disabled="disabled"');