Forums / General / how to store a new register form data ?

how to store a new register form data ?

Author Message

Joe Lindou

Wednesday 29 September 2010 8:55:22 am

Hi,

I would like to create a new register form, and not use the basic one.

I have create a new class that i named members, then in my site.ini i defined the UserClassID.

I overrided hte register.tpl file and created my own form.

My problem is that i don't how to store my form datas.

Do i use createandpublish method to store data ?

What i have to use to save the user login and password in ezuser table ?

If you could give me some piece of advice it will be cool :)
Thanks.

Matthieu Sévère

Wednesday 29 September 2010 9:58:33 am

If you create a new class and change the userClassId in site.ini then calling user/register will use your new class the store data (create a new user).

Be carefull, this class needs to have a useraccount datatype to be a valid user.

--
eZ certified developer: http://ez.no/certification/verify/346216

Joe Lindou

Wednesday 29 September 2010 3:32:27 pm

Désolé j'ai peur de ne pas comprendre ton explication...

Tu veux dire quoi par user account datatype ?

Matthieu Sévère

Thursday 30 September 2010 12:11:47 am

A datatype is an attribute in a content class.

This means that in your new content class you need to have at least one attribute 'user_account' (which is used to store username and password)

--
eZ certified developer: http://ez.no/certification/verify/346216

Joe Lindou

Thursday 30 September 2010 4:42:58 am

ah oui bien sur, j'ai effectivement un datatype user_acount.

Au niveau du formulaire puis-je utiliser un formulaire perso ? ou dois-je utiliser la même syntaxe que ce qu'il y a dans le register.tpl de base.

C'est à dire des champs input de ce type :

<input type="hidden" value="352" name="ContentObjectAttribute_id[]">
<input id="ezcoa-342_prenom" class="ezcca-membre_prenom ezcc-membre box" type="text" size="70" name="ContentObjectAttribute_ezstring_data_text_352" value="" />

Dans l'id l'input je sais que 342 correspond au content class attribute id mais à quoi correspond le 352 dans le name ?

eZ debug

Timing: Jan 30 2025 20:32:23
Script start
Timing: Jan 30 2025 20:32:23
Module start 'content'
Timing: Jan 30 2025 20:32:23
Module end 'content'
Timing: Jan 30 2025 20:32:24
Script end

Main resources:

Total runtime0.2489 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.9453370.3047
Module start 'content' 0.00840.0163 958.25001,005.5469
Module end 'content' 0.02470.2241 1,963.79693,894.2734
Script end 0.2488  5,858.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00481.9100200.0002
Check MTime0.00140.5457200.0001
Mysql Total
Database connection0.00070.264410.0007
Mysqli_queries0.142457.22341410.0010
Looping result0.00150.59081390.0000
Template Total0.223689.810.2236
Template load0.00090.371310.0009
Template processing0.222689.460910.2226
Override
Cache load0.00060.256410.0006
Sytem overhead
Fetch class attribute can translate value0.00180.709210.0018
XML
Image XML parsing0.00020.084310.0002
General
dbfile0.01094.3873200.0005
String conversion0.00000.002330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs