Extending the Usertable

Author Message

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_creator
could help you with your work.

John Moritz

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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:22:35
Script start
Timing: Jan 18 2025 19:22:35
Module start 'layout'
Timing: Jan 18 2025 19:22:35
Module start 'content'
Timing: Jan 18 2025 19:22:36
Module end 'content'
Timing: Jan 18 2025 19:22:36
Script end

Main resources:

Total runtime0.7765 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.9063152.6250
Module start 'layout' 0.00580.0033 740.531339.4453
Module start 'content' 0.00920.7656 779.9766469.3516
Module end 'content' 0.77480.0017 1,249.32818.1719
Script end 0.7764  1,257.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4566160.0002
Check MTime0.00150.1886160.0001
Mysql Total
Database connection0.00100.123110.0010
Mysqli_queries0.728093.7541570.0128
Looping result0.00080.0975550.0000
Template Total0.744095.820.3720
Template load0.00200.263220.0010
Template processing0.742095.557020.3710
Template load and register function0.00040.046110.0004
states
state_id_array0.00140.180110.0014
state_identifier_array0.00110.136120.0005
Override
Cache load0.00170.2148140.0001
Sytem overhead
Fetch class attribute can translate value0.00150.192620.0007
Fetch class attribute name0.00190.251130.0006
XML
Image XML parsing0.00020.029520.0001
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00070.0863100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs