Different register forms for frontend user & backend users?

Author Message

DeAndre Johnson

Sunday 04 October 2009 12:47:31 pm

Is there a way to have two different register forms? One for front end users that register on site with different attributes from the used to create back end users? The create user form for back end user like administrators and editors would remain the same.

I am, because I choose to be!

Bruce Morrison

Sunday 04 October 2009 6:14:11 pm

Hi DeAndre

Definitely possible. You need to add the appropriate settings to the site.ini for the front end siteaccess.

[UserSettings]
# Where to store newly self registered users
DefaultUserPlacement=12
# Which section to place newly self registered users
# (Using 0 means that the user will get the section ID
#  from its new location)
DefaultSectionID=0
# Which content class to use for user creation
UserClassID=4
# Which content class to use for user group creation
UserGroupClassID=3
# Which class group that has user classes, controls which classes
# is shown on the user navigation part. If empty all classes are used.
UserClassGroupID=2
# Which user is considered the creator
UserCreatorID=14

Of course change the UserClassID to be that of the class id from the front end user content class and any of the other settings if required.

The default entries will continue to be valid for the admin siteaccess.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

DeAndre Johnson

Monday 05 October 2009 8:57:16 am

Thanks Bruce!

I am, because I choose to be!

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

Main resources:

Total runtime0.0169 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1719152.6563
Module start 'layout' 0.00590.0029 740.828139.5078
Module start 'content' 0.00880.0060 780.335989.5234
Module end 'content' 0.01480.0021 869.859434.3047
Script end 0.0169  904.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.4953140.0002
Check MTime0.00116.4747140.0001
Mysql Total
Database connection0.00063.654810.0006
Mysqli_queries0.003218.794930.0011
Looping result0.00000.083110.0000
Template Total0.001710.010.0017
Template load0.00095.403410.0009
Template processing0.00084.569910.0008
Override
Cache load0.00063.621010.0006
General
dbfile0.00063.719680.0001
String conversion0.00000.040840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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