unique user nickname registration

Author Message

Robert Röttger@xrow.de

Monday 11 July 2011 4:37:34 am

hello all,

i have a quick question.

i would like to allow user to register only if the nickname they enter is not existing yet in database. i want a user to have a unique nickname. my "nickname" is a required text field attribute and it is also the name pattern of the user class.

currently i check it with a javascript but this is quite unsecure for me. what would be the better alternative? any solution? template based or combined with template operators would be cool. i dont want to start with redirects or module overwriting or so.. any chance?

thank you.

just found that thread: http://share.ez.no/forums/suggestions/unique-attributes

would be great if eZ publish would support that out of the box!

Robert Röttger@xrow.de

Monday 11 July 2011 5:06:31 am

no need to answer on this one. if found my solution in a datatype.

http://projects.ez.no/ez_unique_datatypes

i can recommend this one. great thing!

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 02:05:43
Script start
Timing: Jan 18 2025 02:05:43
Module start 'layout'
Timing: Jan 18 2025 02:05:43
Module start 'content'
Timing: Jan 18 2025 02:05:45
Module end 'content'
Timing: Jan 18 2025 02:05:45
Script end

Main resources:

Total runtime1.6377 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 587.9219152.6250
Module start 'layout' 0.00810.0044 740.546939.4688
Module start 'content' 0.01251.6236 780.0156425.8438
Module end 'content' 1.63620.0015 1,205.85948.1563
Script end 1.6376  1,214.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2098160.0002
Check MTime0.00130.0771160.0001
Mysql Total
Database connection0.00100.059410.0010
Mysqli_queries1.588697.0068540.0294
Looping result0.00050.0334520.0000
Template Total1.575896.220.7879
Template load0.00270.163420.0013
Template processing1.573296.061520.7866
Template load and register function0.00020.012910.0002
states
state_id_array0.00190.118410.0019
state_identifier_array0.00270.166020.0014
Override
Cache load0.00210.1310160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.029710.0005
Fetch class attribute name0.00090.057020.0005
XML
Image XML parsing0.00010.005910.0001
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00380.2335100.0004
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
2content/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/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs