Disable user profile edit?

Go To StackoverFlow.com

3

How do I stop registered users from changing their details like their username etc (via edit profile) in the frontend?

2012-04-03 21:25
by theoth
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 2012-04-03 21:43
Try with "Edit own" for registered user - Shaz 2012-04-03 21:44
I've just checked and all of the permissions for the group is set to "Not Allowed - theoth 2012-04-03 21:50
Maybe creating a menu item for that page and then restricting access to it - Shaz 2012-04-03 23:06


2

open components\com_users\models\forms\profile.xml and then edit:

<field name="password1" type="password"
  readonly="true"
/>
2013-02-23 07:00
by bhavesh Khatri


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" />
2012-04-03 21:30
by michaeltintiuc
Thanks for your reply. I would however like to disable it and not hide it, if possible though :) - theoth 2012-04-03 21:49
This will not hide it, it will disable it, thus not letting the user to change the value of the input fiel - michaeltintiuc 2012-04-03 22:12
Which file are you saying to edit - theoth 2012-04-05 16:20
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/UnderstandingOutputOverride - michaeltintiuc 2012-04-05 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 2012-04-12 22:04
Ads