Best method for multiple user groups / types?

Author Message

Brendan Pike

Wednesday 19 April 2006 7:27:19 pm

I need to have certain users register with a more extensive registration fields and others simplified. Not having done this before I didn't want to re-invent the wheel. Can people tell me how they have achieved this previously?

One possibility I considered was either sending users to a virtual forwarded URL like /group_one/register (forwarded to /user/register) or setting a view_parameter and then only show certain user datatypes accordingly. However I found it is not currently not possible to detect the URL or read/set view_parameters from user/register.tpl.

Love to hear others thoughts on this.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Ɓukasz Serwatka

Monday 24 April 2006 11:38:04 pm

Hi Brendan,

Take a look at this topic, some suggestions how to solve problem.
http://ez.no/community/forum/general/need_to_register_users_into_different_groups/re_need_to_register_users_into_different_groups

The bug with view_parameters in user/register.tpl is fixed now, you can take latest version from pubsvn.ez.no.

http://ez.no/community/bugs/view_parameters_variable_is_not_set_in_the_user_register

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime1.5862 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.0051 589.2891152.6406
Module start 'layout' 0.00510.0030 741.929739.4766
Module start 'content' 0.00801.5767 781.4063525.6719
Module end 'content' 1.58470.0015 1,307.07818.2813
Script end 1.5862  1,315.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2310160.0002
Check MTime0.00130.0851160.0001
Mysql Total
Database connection0.00060.035510.0006
Mysqli_queries1.540497.1114540.0285
Looping result0.00050.0318520.0000
Template Total1.542197.220.7711
Template load0.00220.135620.0011
Template processing1.540097.082420.7700
Template load and register function0.00020.015210.0002
states
state_id_array0.00150.094410.0015
state_identifier_array0.00150.091520.0007
Override
Cache load0.00170.1081130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.043520.0003
Fetch class attribute name0.00160.099930.0005
XML
Image XML parsing0.00060.039220.0003
class_abstraction
Instantiating content class attribute0.00000.000430.0000
General
dbfile0.00190.1216180.0001
String conversion0.00000.000540.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs