how to customize the useraccount datatype

Author Message

Satheesh R

Monday 06 November 2006 10:06:28 pm

Hello all,
i'm new to eZ. i wan to customize the datatype(UserAccount).
for ex in Useraccount datatype Username field can accept 1 or more characters,
but i want to customize that, it should accept 6 or more characters not less than 6.
how can i acheive this.. pls give me a sloution.

-
R Satheesh

Thanks and Regards
R Satheesh

Claudia Kosny

Tuesday 07 November 2006 11:41:10 am

Hi Satheesh

as far as I know this is not possible with ez. If you know a bit about PHP have a look at the file \kernel\classes\datatypes\ezuser\ezusertype.php, function validateObjectAttributeHTTPInput. There can see an how the mininum length of the password is checked, so just adapt the code to check for the string length of the username.

Greetings from Luxembourg

Claudia

Satheesh R

Tuesday 07 November 2006 9:46:38 pm

Hi Claudia Kosny,
Thanks for your reply.
i'll try to modify the file you mentioned.
Thanks and regards
R Satheesh

Thanks and Regards
R Satheesh

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 19 2025 04:42:27
Script start
Timing: Jan 19 2025 04:42:27
Module start 'layout'
Timing: Jan 19 2025 04:42:27
Module start 'content'
Timing: Jan 19 2025 04:42:28
Module end 'content'
Timing: Jan 19 2025 04:42:28
Script end

Main resources:

Total runtime0.6837 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.0106 590.4063152.6406
Module start 'layout' 0.01060.0076 743.046939.4766
Module start 'content' 0.01820.6639 782.5234496.2656
Module end 'content' 0.68210.0015 1,278.78918.1250
Script end 0.6837  1,286.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5397160.0002
Check MTime0.00140.2078160.0001
Mysql Total
Database connection0.00180.260510.0018
Mysqli_queries0.632592.5005570.0111
Looping result0.00070.1031550.0000
Template Total0.641393.820.3207
Template load0.00210.302320.0010
Template processing0.639293.494720.3196
Template load and register function0.00020.036110.0002
states
state_id_array0.00140.201110.0014
state_identifier_array0.00100.140820.0005
Override
Cache load0.00170.2525210.0001
Sytem overhead
Fetch class attribute can translate value0.00110.160820.0005
Fetch class attribute name0.00250.368930.0008
XML
Image XML parsing0.00020.033420.0001
class_abstraction
Instantiating content class attribute0.00000.001630.0000
General
dbfile0.00100.1391100.0001
String conversion0.00000.002340.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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs