Forums / Developer / Extending the Usertable
John Moritz
Saturday 05 April 2008 8:47:23 am
I am planing to migrate my Community which is administrated with phpmyadmin to ezPublish. My existing Community is something like a social network. User can tell something about their life like Birthday, Favorite books or movies... At the Moment the Basic Informations are in one Usertable, together with Password and Nick, and extra Information in an extra Table wich is referenced by the UserID.
When i migrate to ezPublish how should i do this. Extend the existing "ezuser" Table manualy, and make 2 extra tables with further informations? Maybe i overlooked something and there are some built in Tools to extend the Usertable. In the past i worked with a Bulletin Board called Invision Power Board. On this BB i could extend the Useriniformations over the Admin Backend. Never needed phpmyadmin or somoething else, no handcoding. The user then had more options in their Profile and me as admin had the possibility to change the Details in the Backend.
I am sure i could do it my way and code everything by hand, but if there is a solution out there it would be helpful to get those Informations.
Carlos Revillo
Saturday 05 April 2008 10:10:24 am
well, i think you don't need make any changes to that ezuser table. i mean, you can add attributes to the user class through the admin interface. so, these new attributes (birthday date, favourite movies and so on) will be part of the data_map of the object for the users, along with firstname, picture and so on.
favourite movies could be a relation objects to other type of objects, for example.
Maybe this contrib http://ez.no/developer/contribs/import_export/user_creatorcould help you with your work.
Monday 07 April 2008 8:39:46 am
Thanks Carlos, this was exactly what i am searchin for. Just added attributes to my Users, perfect!