Forums / Developer / how to make two different registration forms?

how to make two different registration forms?

Author Message

Vytautas Germanavičius

Thursday 31 March 2005 10:10:49 pm

i have 2 totaly different types of users, i created two additional classes in Users group.
Question is, how to make two different registration forms? Because /usser/register still show edit form for default User class.

{set-block scope=root variable=cache_ttl}0{/set-block}

Gustaf Carleson

Tuesday 19 April 2005 3:56:23 pm

Did you have any success achieving this?

Fabricio Guerrero

Thursday 21 April 2005 6:08:48 am

hi.. on a similar occasion i solved this a pretty dirty way..

I just send parameters and depending on this i would show one form or another.

if you know of a cleaner way please let me know.

Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

Daniel Beyer

Thursday 21 April 2005 6:28:38 am

eZ publish allows only one class per siteaccess as the "default new user class". You can set the class which should be used in section "[UserSettings]" with the setting "UserClassID=" in site.ini. Default is 4 which is the user class which comes with eZ publish. If you want to have to different user classes for registration you need to setup a different siteaccess to override that setting with it.

Note: You can set the default Group and the default placement, too! Just check section "[UserSettings]" in ste.ini for it.

You can get help with siteaccesses at:
http://www.ez.no/ez_publish/documentation/incoming/design/siteaccess_configuration
http://www.ez.no/ez_publish/documentation/configuration/configuration/site_access
http://www.ez.no/ez_publish/documentation/configuration/configuration/tips_tricks/several_sites_with_one_installation

Or search the docs for siteaccess.

Daniel Beyer
_________________________________
YMC AG
Kreuzlingen, Switzerland
web: www.ymc.ch
____________________________________

Gustaf Carleson

Friday 22 April 2005 5:40:15 am

So basically you mean setting up different sub-domain names for each user type using siteaccess?

For example:

http://userclass1.mysite.com/user/register
http://userclass2.mysite.com/user/register

Or am I getting you wrong?

/Gustaf

Bruce Morrison

Friday 22 April 2005 8:38:47 pm

You could always create your own module. It would basically be a copy of the user/register module and allow for both regristration pages to co-exist in the same site.

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

eZ debug

Timing: Jan 19 2025 10:00:33
Script start
Timing: Jan 19 2025 10:00:33
Module start 'content'
Timing: Jan 19 2025 10:00:34
Module end 'content'
Timing: Jan 19 2025 10:00:34
Script end

Main resources:

Total runtime1.4310 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.0859180.8125
Module start 'content' 0.00591.2996 769.8984696.2266
Module end 'content' 1.30550.1254 1,466.1250337.0547
Script end 1.4309  1,803.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2735210.0002
Check MTime0.00150.1025210.0001
Mysql Total
Database connection0.00070.049810.0007
Mysqli_queries1.346994.12072090.0064
Looping result0.00210.14842070.0000
Template Total1.402098.020.7010
Template load0.00220.152620.0011
Template processing1.399897.821420.6999
Template load and register function0.00010.007910.0001
states
state_id_array0.00140.097210.0014
state_identifier_array0.00090.062720.0004
Override
Cache load0.00180.1283350.0001
Sytem overhead
Fetch class attribute can translate value0.00130.089260.0002
Fetch class attribute name0.00150.1074100.0002
XML
Image XML parsing0.00460.321060.0008
class_abstraction
Instantiating content class attribute0.00000.0012100.0000
General
dbfile0.00770.5363450.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs