Disable username changing
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Feb 14, 2011 5:27 am
Disable username changing
Hi,
Is there a way in 1.6 to disable registered users from changing their usernames (via edit profile)?
Thanks
Is there a way in 1.6 to disable registered users from changing their usernames (via edit profile)?
Thanks
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Apr 04, 2011 3:59 pm
Re: Disable username changing
I would also like to disable "Edit Profile" after login. ie I only want the system administrator to maintain names and passwords for users (to access certain areas of the site )
I'm using Joomla 1.6 with the standard login.
I'm using Joomla 1.6 with the standard login.
- ewanvrooyen
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Jan 12, 2010 1:59 pm
- Location: Colwyn Bay
- Contact:
Re: Disable username changing
same question here, please
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Sep 08, 2010 12:00 am
Re: Disable username changing
Hello, has anyone figured this out yet?
-
- Joomla! Apprentice
- Posts: 24
- Joined: Wed Jun 03, 2009 12:57 am
Re: Disable username changing
Six months later, I would like to ask the same question
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sat Sep 10, 2011 10:16 pm
Re: Disable username changing
Not sure about 1.6, but on 1.7 the following code works form me:
Edit components/com_users/models/forms/profile.xml
Change: to
Edit components/com_users/models/forms/profile.xml
Change:
Code: Select all
<file name="username" type="text"
Code: Select all
<file name="username" type="hidden"
-
- Joomla! Enthusiast
- Posts: 213
- Joined: Mon Nov 05, 2007 8:54 pm
Re: Disable username changing
Wow. Almost two years and this hasn't been answered yet? Redpizza's answer works (sort of), but this is much better:
Same file, but leave the type alone, and simple add:
disabled="true"
This way the field is still visible.
Same file, but leave the type alone, and simple add:
disabled="true"
This way the field is still visible.
Code: Select all
<field name="username" type="text" disabled="true"
class="validate-username"
description="COM_USERS_DESIRED_USERNAME"
filter="username"
label="COM_USERS_PROFILE_USERNAME_LABEL"
message="COM_USERS_PROFILE_USERNAME_MESSAGE"
required="true"
size="30"
validate="username"
/>
Don't let the number of stars fool ya! I spend most of my time in the "real world" working with and troubleshooting Joomla and the many extensions for it.
- rcarey
- Joomla! Explorer
- Posts: 471
- Joined: Sat Apr 25, 2009 9:20 pm
- Location: Minnesota (USA)
- Contact:
Re: Disable username changing
Joomla does provide a yes/no option for this. UserManager-> Options-> Component-> ChangeLoginName
Randy Carey -- as of 2023 I'm mostly retired in web development, but still engaged with a few Joomla projects through
Careytech Studios http://careytech.com custom development for tailored or value-added web solutions
Careytech Studios http://careytech.com custom development for tailored or value-added web solutions
-
- Joomla! Enthusiast
- Posts: 213
- Joined: Mon Nov 05, 2007 8:54 pm
Re: Disable username changing
The Option is not there in Joomla 1.6.rcarey wrote:Joomla does provide a yes/no option for this. UserManager-> Options-> Component-> ChangeLoginName
Additionally, editing the XML file you can limit the ability to change both usernames, and names, or pretty much anything else you want to.
Don't let the number of stars fool ya! I spend most of my time in the "real world" working with and troubleshooting Joomla and the many extensions for it.