how do I record dates of birth in user registration that are older than 1970

Author Message

Andy Woods

Saturday 26 February 2011 12:31:19 am

I've added a date of birth field to the User class.

However I can't enter dates that are before 1970.

Can you tell me how I can overcome this please?

Andy

Theodoros Papageorgiou

Saturday 26 February 2011 12:36:11 am

You can use the birthday datatype.
http://projects.ez.no/birthday

Theo

WEBWiZ
Web Development
http://www.webwiz.gr

Andy Woods

Saturday 26 February 2011 12:25:05 pm

Sorry but I can't see how that link helps me to solve this problem.

Can you tell me what steps I need to take please?

Thanks,

Andy

Marko Žmak

Saturday 26 February 2011 1:10:46 pm

Andy, you should download and install the extension Theodoros mentioned (you'll probably find the instructions in the extension files), and then you will have a new datatype for your classes that can be used for birth date.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 04:30:52
Script start
Timing: Jan 18 2025 04:30:52
Module start 'layout'
Timing: Jan 18 2025 04:30:52
Module start 'content'
Timing: Jan 18 2025 04:30:53
Module end 'content'
Timing: Jan 18 2025 04:30:53
Script end

Main resources:

Total runtime0.8546 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.4063152.6875
Module start 'layout' 0.00660.0046 741.093839.5313
Module start 'content' 0.01120.8419 780.6250586.4844
Module end 'content' 0.85310.0015 1,367.109412.0625
Script end 0.8546  1,379.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4307160.0002
Check MTime0.00160.1847160.0001
Mysql Total
Database connection0.00100.115710.0010
Mysqli_queries0.793392.8258620.0128
Looping result0.00070.0813600.0000
Template Total0.817795.720.4088
Template load0.00260.299020.0013
Template processing0.815195.372220.4075
Template load and register function0.00020.025410.0002
states
state_id_array0.00100.114310.0010
state_identifier_array0.00160.190120.0008
Override
Cache load0.00180.2107200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.070330.0002
Fetch class attribute name0.00160.188560.0003
XML
Image XML parsing0.00160.192730.0005
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00110.1294230.0000
String conversion0.00000.000940.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
4content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs