How do I stop registered users from changing their details like their username etc (via edit profile) in the frontend?
Asked
Active
Viewed 7,979 times
4
-
I can't see where this is set in permissions? I have set "Frontend User Parameters" to Hide, but nothing else lets me disable this feature that I can see.. – theoth Apr 03 '12 at 21:43
-
Try with "Edit own" for registered users – Shaz Apr 03 '12 at 21:44
-
I've just checked and all of the permissions for the group is set to "Not Allowed" – theoth Apr 03 '12 at 21:50
-
Maybe creating a menu item for that page and then restricting access to it. – Shaz Apr 03 '12 at 23:06
2 Answers
2
open components\com_users\models\forms\profile.xml
and then edit:
<field name="password1" type="password"
readonly="true"
/>

Andrew Barber
- 39,603
- 20
- 94
- 123

bhavesh Khatri
- 41
- 3
1
You can at the 'disabled attribute to the input fields u don't want to be changed. Most of the users won't fiddle around with you page's source code.
<input type="text" disabled="disabled" />

michaeltintiuc
- 671
- 15
- 31
-
Thanks for your reply. I would however like to disable it and not hide it, if possible though :). – theoth Apr 03 '12 at 21:49
-
This will not hide it, it will disable it, thus not letting the user to change the value of the input field – michaeltintiuc Apr 03 '12 at 22:12
-
depends on the component u're using. This should help you to understand how to override joomla components without the need of 'hacking' the core files: http://docs.joomla.org/Understanding_Output_Overrides – michaeltintiuc Apr 05 '12 at 19:20
-
Thanks, I'm quite familiar with overrides already, but setting the fields as disabled still loads the page. The best way I have found would be to to a manual redirect to a desired page. – theoth Apr 12 '12 at 22:04