Users and Roles

Author Message

Betsy Gamrat

Monday 25 October 2004 7:34:39 am

My site has 4 different types of users. I'd like the anonymous user to be able to choose which type of user they register as. So, I'd like the user to be able to choose the type of user they are and use that to assign them to a group with the appropriate permissions.

I know the answer is probably on the site somewhere, but I can't find it!

Thank you,

Betsy

Betsy Gamrat

Friday 08 April 2005 3:37:00 am

I solved this problem by allowing the anonymous user to create a custom user and assign it to a group (thank you eZ for suggesting this). If I had to do it all over again, I would probably use a separate site access for each different user to register.

Lior Solomon

Thursday 16 June 2005 7:06:03 am

sorry for the dumb question
i dont quite get it
how do i create a custom user class?
when i go through the admin interface to user class it only shows first last name and user name
can i add fields to this class?
how can i add another user types?
how will i integrate them to the ez permissions options?
lots of questions :(

Betsy Gamrat

Wednesday 29 June 2005 6:52:16 pm

You can create a new user class by copying the existing, default user class, or by creating a new one from scratch. You can add any fields you would like to your user class. Be sure to make the class a member of both the Content and User groups.

Now, allow the anonymous user create/edit privileges for that class, and provide an interface for the anonymous user to create the new user (templates or toolbars). This is code from a template:

<FORM action=/ez/index.php/plain/content/action method=post>
<INPUT type="submit" name=NewButton> 
<INPUT type=hidden value=8 name=NodeID>
<INPUT type=hidden value=custom_user name=ClassIdentifier></FORM>

The value=8 is the node id of the user group the new user will be assigned to.

The value=custom_user is the name of the object class that will be created.

Good luck!

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:08:03
Script start
Timing: Jan 18 2025 19:08:03
Module start 'layout'
Timing: Jan 18 2025 19:08:03
Module start 'content'
Timing: Jan 18 2025 19:08:04
Module end 'content'
Timing: Jan 18 2025 19:08:04
Script end

Main resources:

Total runtime1.0935 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.0079 587.7813152.6094
Module start 'layout' 0.00790.0037 740.390639.3984
Module start 'content' 0.01161.0803 779.7891524.6953
Module end 'content' 1.09190.0015 1,304.484412.5156
Script end 1.0934  1,317.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3931160.0003
Check MTime0.00150.1403160.0001
Mysql Total
Database connection0.00180.163710.0018
Mysqli_queries1.018993.1813600.0170
Looping result0.00070.0620580.0000
Template Total1.052196.220.5261
Template load0.00230.212820.0012
Template processing1.049896.004120.5249
Template load and register function0.00010.009610.0001
states
state_id_array0.00130.117010.0013
state_identifier_array0.00070.063720.0003
Override
Cache load0.00200.1853290.0001
Sytem overhead
Fetch class attribute can translate value0.00050.044720.0002
Fetch class attribute name0.00170.151760.0003
XML
Image XML parsing0.00090.080620.0004
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00260.2378220.0001
String conversion0.00000.000840.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs