Disable username changing

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

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.
Locked
deevin9
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Feb 14, 2011 5:27 am

Disable username changing

Post by deevin9 » Mon Feb 14, 2011 5:29 am

Hi,

Is there a way in 1.6 to disable registered users from changing their usernames (via edit profile)?

Thanks

albiejackson
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Apr 04, 2011 3:59 pm

Re: Disable username changing

Post by albiejackson » Mon Apr 04, 2011 4:08 pm

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.

User avatar
ewanvrooyen
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Jan 12, 2010 1:59 pm
Location: Colwyn Bay
Contact:

Re: Disable username changing

Post by ewanvrooyen » Mon Jun 13, 2011 6:52 pm

same question here, please

realtoast
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 08, 2010 12:00 am

Re: Disable username changing

Post by realtoast » Tue Jul 26, 2011 1:05 am

Hello, has anyone figured this out yet?

syamson
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Wed Jun 03, 2009 12:57 am

Re: Disable username changing

Post by syamson » Sat Aug 13, 2011 8:52 am

Six months later, I would like to ask the same question :)

redpizza
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Sep 10, 2011 10:16 pm

Re: Disable username changing

Post by redpizza » Mon Jul 02, 2012 1:14 pm

Not sure about 1.6, but on 1.7 the following code works form me:

Edit components/com_users/models/forms/profile.xml

Change:

Code: Select all

<file name="username" type="text" 
to

Code: Select all

<file name="username" type="hidden"

Riverside
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 213
Joined: Mon Nov 05, 2007 8:54 pm

Re: Disable username changing

Post by Riverside » Fri Dec 28, 2012 2:53 pm

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.

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.

User avatar
rcarey
Joomla! Explorer
Joomla! Explorer
Posts: 471
Joined: Sat Apr 25, 2009 9:20 pm
Location: Minnesota (USA)
Contact:

Re: Disable username changing

Post by rcarey » Fri Dec 28, 2012 4:05 pm

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

Riverside
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 213
Joined: Mon Nov 05, 2007 8:54 pm

Re: Disable username changing

Post by Riverside » Fri Dec 28, 2012 5:29 pm

rcarey wrote:Joomla does provide a yes/no option for this. UserManager-> Options-> Component-> ChangeLoginName
The Option is not there in Joomla 1.6.

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.


Locked

Return to “Administration Joomla! 2.5”