frontend user "control" setting

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
giggler
Forum Members
Forum Members
Posts: 197
Joined: Tue Oct 09, 2007 7:08 am

frontend user "control" setting

Post 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"');
Last edited by giggler on Fri Jan 25, 2008 9:15 am, edited 1 time in total.
Post Reply

Return to “CMSMS Core”