user_account and User class...

Author Message

Jeremy A

Monday 28 July 2008 6:55:09 am

Hello,

In Setup > Classes, then edit User class.
I have :
- first_name
- last_name
- user_account

Actually <i>user_account</i> contains email, login and password (as we can see on the regsiter page)

I would like to modify <i>user_account</i> in order to make the email non-required.

How can I do this properly ?

Thank you.

Piotrek Karaś

Monday 28 July 2008 1:21:12 pm

I believe you would have to modify (or extend) the user datatype in order to achieve that, that's kernel modification in PHP, and a bit risky. Optionally, you could modify the site.ini setting:

[UserSettings]
RequireUniqueEmail=false

and fill e-mails with whatever, for example noemail@noemail.net
But mind that you're loosing some system functionalities this way.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Jeremy A

Tuesday 29 July 2008 12:56:33 am

Thank you for your answer.
I have already put <i>false</i> to this setting.
Actually I just need to bypass the verification of the email input, if it is empty or not.
It's in the user datatype ?
Or which kernel file do this ?
Thank you very much.

Piotrek Karaś

Tuesday 29 July 2008 5:19:29 am

Look around /kernel/classes/datatypes/ezuser/*
Good luck,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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

Main resources:

Total runtime0.6951 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.9141152.6250
Module start 'layout' 0.00580.0024 740.539139.4453
Module start 'content' 0.00820.6854 779.9844548.7031
Module end 'content' 0.69360.0015 1,328.687512.1641
Script end 0.6951  1,340.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4683160.0002
Check MTime0.00130.1853160.0001
Mysql Total
Database connection0.00080.108510.0008
Mysqli_queries0.648593.2945600.0108
Looping result0.00050.0698580.0000
Template Total0.667796.120.3339
Template load0.00190.277820.0010
Template processing0.665895.780820.3329
Template load and register function0.00010.018810.0001
states
state_id_array0.00090.124810.0009
state_identifier_array0.00120.173520.0006
Override
Cache load0.00160.2322310.0001
Sytem overhead
Fetch class attribute can translate value0.00060.079820.0003
Fetch class attribute name0.00090.132250.0002
XML
Image XML parsing0.00060.081420.0003
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00080.1135170.0000
String conversion0.00000.001240.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs