[Solved] Custom user class / Register form

Author Message

Jeremy B.

Tuesday 28 July 2009 2:20:15 am

Hi all,

I've created a new user class, that will be used for user registration.
This new class just have those attributes :

Name
Firstname
Address

I'll add the "user_account" attribute, but for now I just want to see if all is working as I expected.

I created this class (id 19) in a "projet" class group (id 5)

So I configured my site.ini with :

[UserSettings]
UserClassID=19
UserClassGroupID=5

as explained in this tutorial : http://ez.no/ezpublish/documentation/incoming/tutorial_using_user_register

My file is located under <i>extension/myExt/settings/site.ini.append.php</i>

After cleared all the caches, when i go to user/register I see again the normal registration form, with the basic attributes, instead of viewing the attributes of my custom user class.

I'm using EZP 4.1.3

Am I missing something ?

Thanks for your help :)

Jeremy B.

Tuesday 28 July 2009 4:28:03 am

I've also tried to duplicate the existent user class (same class group), and modifiy the UserClassID in site.ini but i've got the same result.

Can anyone help please ?

Thanks

Peter Keung

Tuesday 28 July 2009 8:37:36 am

Two suggestions:

- Add the "User account" attribute just to make sure the class is recognized as a valid user class
- Clear your browser cache. The user/register page checks for the existence of a cookie variable. If your browser still has that variable, the same form is displayed.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Jeremy B.

Tuesday 28 July 2009 8:47:54 am

Hi Peter,

Yes, that was the cookie ! I finally managed to make the form works but I didn't know why...
The cookie is the point !

Thanks :)

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 21:12:25
Script start
Timing: Jan 18 2025 21:12:25
Module start 'layout'
Timing: Jan 18 2025 21:12:25
Module start 'content'
Timing: Jan 18 2025 21:12:25
Module end 'content'
Timing: Jan 18 2025 21:12:25
Script end

Main resources:

Total runtime0.6456 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.0067 589.1484152.6406
Module start 'layout' 0.00670.0030 741.789139.4766
Module start 'content' 0.00970.6345 781.2656548.5938
Module end 'content' 0.64410.0015 1,329.859412.1250
Script end 0.6456  1,341.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4832160.0002
Check MTime0.00130.2008160.0001
Mysql Total
Database connection0.00150.234310.0015
Mysqli_queries0.592791.8064600.0099
Looping result0.00060.0921580.0000
Template Total0.612394.820.3062
Template load0.00180.286420.0009
Template processing0.610494.549920.3052
Template load and register function0.00020.035010.0002
states
state_id_array0.00090.137210.0009
state_identifier_array0.00130.205520.0007
Override
Cache load0.00150.2334310.0000
Sytem overhead
Fetch class attribute can translate value0.00080.119920.0004
Fetch class attribute name0.00140.221350.0003
XML
Image XML parsing0.00070.101220.0003
class_abstraction
Instantiating content class attribute0.00000.001850.0000
General
dbfile0.00090.1427170.0001
String conversion0.00000.001740.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
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs