Forums / Developer / Remove the email attribute from UserAccount Datatype..?
Satheesh R
Wednesday 08 November 2006 11:19:31 pm
Dear all, Please give me a slotuion, How can i remove the email attribute from UserAccount Datatype, what file i have to mdify ..?
- Tahnks & Regards,R Satheesh
Thanks and Regards R Satheesh
kavi kavi
Monday 20 November 2006 2:14:10 am
Go to Setup (Admin site), classes, user group , edit the user class and remove the email attribute
Claudia Kosny
Monday 20 November 2006 6:03:52 am
@kavi: This will not work as the email is not part of the user class but of the datatype account. And changing a datatype is not easily done...
@satheesh: The main code for the ezuser datatype can be found in \kernel\classes\datatypes\ezuser\ezusertype.php but modifying it seems risky to me. To many features (notification, forgotpassword and whatever else) make use of this datatype so you could seriously compromise your system.
Claudia
Xavier Dutoit
Monday 20 November 2006 6:10:46 am
Hi,
What's the reason to not use the email ?
If you really don't want it, you can get rid of it by prefilling it with some random email <timestamp>@blackhole.nada (it has to be unique and you can modify the edit template to put that into a hidden field as it has to be unique.
the edit template is into design/standard/template/content/datatype/edit/ezuser.tpl
As Claudia said, that's quite often used by various features, not having emails might comes as a problem later...
X+
http://www.sydesy.com
Monday 20 November 2006 9:41:53 pm
Hi allThanks for the valueable replies.
-R Satheesh