Adding Column in Database

Author Message

ez man

Thursday 03 May 2007 12:16:14 am

User ID: 1 Username: xyz Email: xyz@hotmail.com Account status: enabled
is what displayed when http://xyz.com/index.php/usr/content/view/full/1123
is seen in browser currently.

Now, i want to add another field 'Usertype' to be displayed after 'Account status: enabled'
Any suggestion on this?

Because in the table 'ezurl' we have only the following columns
contentobject_id
email
login
password_hash
password_hash_type

Suppose i had column 'usertype' in the above table, how can i add/display value from that table in the url http://xyz.com/index.php/usr/content/view/full/1123

Björn Dieding@xrow.de

Thursday 03 May 2007 1:48:23 am

you have 2 options

1.) create a new user class
2.) create new attribute as an addition to your existsing user class

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

ez man

Thursday 03 May 2007 3:09:01 am

I created new attribute as follows:
"Usertype [Text line] (id:220)" and added column 'Usertype' in 'ezurl' table.
How can I add 'Usertype' value while registering a new user so that I can display something like :

"User ID: 1 Username: xyz Email: xyz@hotmail.com Account status:enabled usertype:eventregistration"

Currently I am able to display only

"User ID: 1 Username: xyz Email: xyz@hotmail.com Account status:enabled"

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 15:16:07
Script start
Timing: Jan 18 2025 15:16:07
Module start 'layout'
Timing: Jan 18 2025 15:16:07
Module start 'content'
Timing: Jan 18 2025 15:16:09
Module end 'content'
Timing: Jan 18 2025 15:16:09
Script end

Main resources:

Total runtime1.4161 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.0044 589.0313152.6250
Module start 'layout' 0.00450.0032 741.656339.4453
Module start 'content' 0.00761.4071 781.1016535.1875
Module end 'content' 1.41480.0013 1,316.289112.4766
Script end 1.4161  1,328.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2209160.0002
Check MTime0.00130.0937160.0001
Mysql Total
Database connection0.00060.041410.0006
Mysqli_queries1.367096.5320570.0240
Looping result0.00060.0395550.0000
Template Total1.389998.120.6949
Template load0.00180.124420.0009
Template processing1.388198.021120.6941
Template load and register function0.00020.013510.0002
states
state_id_array0.00090.062410.0009
state_identifier_array0.00180.125520.0009
Override
Cache load0.00150.1047270.0001
Sytem overhead
Fetch class attribute can translate value0.00080.059520.0004
Fetch class attribute name0.00130.092540.0003
XML
Image XML parsing0.00090.063120.0004
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00070.0499160.0000
String conversion0.00000.000740.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
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs