Registering a custom user

Author Message

Pål Øystein Carlsen

Thursday 13 November 2003 3:59:20 am

Well I have considered it, and I do not belive this is my problem. The reason is that I simply do not get anything out, not even the standard user criteria.

Besides there seems to be som kind of weird lag regarding updating the ini file. I have now gone back to the original setting, which I have used earlier, but I still can't see anything else than the two buttons. I have manualy cleared cache files and removed the override settings. Strange indeed.

Just to make sure I'll download the mysql manager and have a look, I haven't got it installed right now.

Pål Øystein Carlsen

Thursday 13 November 2003 6:20:33 am

Great news!
It works!!!

I have no idea why it works this time, but it does.
My site.ini.append looks like this:
[UserSettings]
RegistrationEmail=enabled
DefaultUserPlacement=53
UserClassID=17

I have not edited the standard register.tpl file , but just overriden it with a copy of its content.

What I find funny is that I have just small changes to the ezuser.tpl file. I override it to and the only changes I have done are the following:
<input type="hidden" name="ContentObjectAttribute_data_user_login_{$attribute.id}" value="{$attribute.content.user}" />
is replaced with:
<input type="hidden" name="ContentObjectAttribute_data_user_login_{$attribute.id}" value="{$attribute.content.bruker}" /> where "bruker is my name for the user datatype in the customised class.

This is done twice in the file overriding ezuser.tpl and I changed the similar ending of email to match my word for it in my custom class.

Weird, I was certain I was going to have to add similar input types for my other attributes like "occupation" "address" etc. But no, they just appeared. Why I do not really understand...

Anyway thanks for all your help, and if my explanation is somewhat confusing or incomplete please post so I can elaborate. Perhaps this thread can be usefull for other people(that way I can pretend my frustration has not been completely wasted)

Pål

Johan Grasmo

Wednesday 03 December 2003 6:28:21 am

Hi,

I've also got problems registering a custom user.
Let me give you an overview of what I'm trying to do.

I've put up a site with sitemap, news, guestbook etc. This part works perfectly.

The site will have three user types in addition to the administrator group: Freelancer, client and sponsor. Each of these types have their own registration-page, but will be using a common login-interface. The types will also access to user-specific pages, but that's not my main problem here.

I've scrounged the forums for examples of a site with different user type registrations, but I haven't found anything. So for now I'll settle to manage the registration of the "Freelancer" user.

I've created the Freelancer-user in the "User" class and it has been given the user rights. I've also overridden -user/register.tpl and -content/datatype/edit/ezuser.tpl and the override.ini.append has been updated to reflect this. I have checked that it really uses these templates. When I access the /user/register-page, I get the signup of the "default" user - not my Freelancer-user. I've changed the site.ini.append file to:

[UserSettings]
DefaultUserPlacement=144
UserClassID=18
UserClassGroupID=2

But still it shows the "default" registration page.

My questions are:
- Why don't I get the "Freelancer" registration page ?
- Is it possible to create three registration-pages, one page for each user-type ?
- Why isn't this better documented ?

When I look at how ez handles users and user-groups, I'm positive that ez supports what I'm doing but I don't know how to do it :-)

Thanks,

Johan

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 23:26:26
Script start
Timing: Jan 18 2025 23:26:26
Module start 'layout'
Timing: Jan 18 2025 23:26:26
Module start 'content'
Timing: Jan 18 2025 23:26:27
Module end 'content'
Timing: Jan 18 2025 23:26:27
Script end

Main resources:

Total runtime1.0194 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.4219152.6250
Module start 'layout' 0.00580.0031 741.046939.8750
Module start 'content' 0.00891.0089 780.9219470.1016
Module end 'content' 1.01780.0015 1,251.023414.2969
Script end 1.0193  1,265.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3009160.0002
Check MTime0.00120.1176160.0001
Mysql Total
Database connection0.00060.060310.0006
Mysqli_queries0.970295.1743560.0173
Looping result0.00050.0497540.0000
Template Total0.983496.520.4917
Template load0.00200.192920.0010
Template processing0.981496.279620.4907
Template load and register function0.00020.015210.0002
states
state_id_array0.00130.125910.0013
state_identifier_array0.00100.098320.0005
Override
Cache load0.00160.1604440.0000
Sytem overhead
Fetch class attribute can translate value0.00050.045020.0002
Fetch class attribute name0.00050.048030.0002
XML
Image XML parsing0.00020.021220.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00070.0651100.0001
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/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: 19
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs