Disable username change

Discussion in 'Templates customization' started by leelbog1, May 21, 2014.

  1. leelbog1

    leelbog1 aMember Pro Customer

    Joined:
    Nov 9, 2012
    Messages:
    17
    Anyone know of a quick way to disable username changing from admin side?

    Thanks!
  2. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Go to forms editor, select profile form and then move the 'Change Username' from the left-hand side ('Form Bricks') to the right-hand side ('Available Bricks').
  3. leelbog1

    leelbog1 aMember Pro Customer

    Joined:
    Nov 9, 2012
    Messages:
    17
    Hey there, thanks for the help. That takes care of the customer-facing profile form, not the admin-side one.

    I'm trying to make it impossible to change a username from the admin side. So, if you were to go to USERS > BROWSER USERS > EDIT USER, the username would just be a read-only field.

    Thank you again. If anyone has an idea, please let me know.

    Regards!
    shawpon2010 likes this.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Unfortunately this is impossible to implement without core files modification.
    You may need to modify /amember/application/default/controllers/AdminUsersCont'roller.php and change Am_Form_Admin_User::init() function which defines form elements.
    leelbog1 likes this.

Share This Page