eZ Publish forms

Author Message

Michael Scofield

Thursday 12 June 2008 8:24:17 pm

Hi

I'm creating a form that collects user information and I must not permit duplicate entries being registered. The email attribute of my class should be used to verify if the user is already registered. If the e-mail is already registered, then I must show a message saying that the user is already registered.

My question is. How do I do that? It seems that inside collect.ini.append.php I can not specify an attribute to be the key for duplicate entries. I can configure <b>CollectAnonymousDataList[]</b> to be <b>single</b>, in this case ez Publish will not permit duplicate entries, but will not use my e-mail attribute to make that verification.

Instead, eZ publish will use cookies to verify it. This is not sufficient for me because in a public computer (e.g at Internet Coffees, Lan houses), only one person will be able to register.

Thank you
Michael Scofield

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:06:37
Script start
Timing: Jan 18 2025 19:06:37
Module start 'layout'
Timing: Jan 18 2025 19:06:37
Module start 'content'
Timing: Jan 18 2025 19:06:38
Module end 'content'
Timing: Jan 18 2025 19:06:38
Script end

Main resources:

Total runtime0.8582 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.7969152.6094
Module start 'layout' 0.00620.0039 740.406339.4141
Module start 'content' 0.01000.8467 779.8203400.5469
Module end 'content' 0.85680.0014 1,180.36728.1875
Script end 0.8582  1,188.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3799160.0002
Check MTime0.00140.1630160.0001
Mysql Total
Database connection0.00080.096810.0008
Mysqli_queries0.811694.5752460.0176
Looping result0.00050.0543440.0000
Template Total0.817995.320.4089
Template load0.00180.215120.0009
Template processing0.816095.085420.4080
Template load and register function0.00020.026610.0002
states
state_id_array0.00170.192410.0017
state_identifier_array0.00120.145520.0006
Override
Cache load0.00150.170190.0002
Sytem overhead
Fetch class attribute can translate value0.00090.104410.0009
Fetch class attribute name0.00070.080410.0007
XML
Image XML parsing0.00010.013110.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00160.1869100.0002
String conversion0.00000.001440.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs