Forums / Developer / Multiple registration form

Multiple registration form

Author Message

Roberto Donato

Friday 27 November 2009 6:16:36 am

Hello,
as written in the subject I need to create a registration form for multiple user groups. In other posts I read that I need to create a siteaccess for each registration form. But if I have 5-6 groups, I have to create 5-6 siteaccess? Can I create a select inside the form to the choice of the group to associate the user?

Romain Petit

Saturday 28 November 2009 4:49:20 am

Hi Roberto,

The register function does not meet your needs,

You may have to copy it into an extension, and then modify the part of register.php where it fetches the UserSettings/DefaultUserPlacement setting, and replace it with some POST variable ( with precise checks ).
And then just give access to your new module for anonymous users.

Luc Chase

Monday 30 November 2009 3:58:05 pm

Using workflow to add extra user-group locations to the new user may also help you... http://share.ez.no/forums/developer/workflow-removesubtrees-addlocation

The Web Application Service Provider

Roberto Donato

Wednesday 02 December 2009 6:13:19 am

"

Hi Roberto,

The register function does not meet your needs,

You may have to copy it into an extension, and then modify the part of register.php where it fetches theUserSettings/DefaultUserPlacement setting, and replace it with some POST variable ( with precise checks ).
And then just give access to your new module for anonymous users.

"

Hello everyone and thanks for the answers.
Romain I created an extension like you suggested, but I did not know where to edit register.php to set the value of the user group.

Roberto

Matthieu Sévère

Wednesday 02 December 2009 6:44:02 am

Hello !

I just implement a registration system with multiple location.

I created a custom workflow event that I trigger after publish. In this event I retrieve a form parameter which determine the type of user and then I move the newly created user depending on this parameter.

--
eZ certified developer: http://ez.no/certification/verify/346216

Roberto Donato

Wednesday 02 December 2009 7:35:30 am

"

Hello !

I just implement a registration system with multiple location.

I created a custom workflow event that I trigger after publish. In this event I retrieve a form parameter which determine the type of user and then I move the newly created user depending on this parameter.

"

I've never worked on the trigger in eZ publish, you could tell me how?

Matthieu Sévère

Wednesday 02 December 2009 8:09:09 am

First you have to create a custom workflow event (see some custom workflow on projects.ez.no to see how to do).

Then, you go to setup / workflow and add your workflow event for the class you want

After that you go to setup / trigger and select your workflow to trigger after/publish.

You'll have the php code of your workflow event that is executed after every publish :-)

--
eZ certified developer: http://ez.no/certification/verify/346216

eZ debug

Timing: Jan 18 2025 01:56:34
Script start
Timing: Jan 18 2025 01:56:34
Module start 'content'
Timing: Jan 18 2025 01:56:34
Module end 'content'
Timing: Jan 18 2025 01:56:34
Script end

Main resources:

Total runtime0.1684 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.8281180.8359
Module start 'content' 0.00660.0075 769.6641101.9766
Module end 'content' 0.01410.1542 871.6406530.0234
Script end 0.1684  1,401.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.1282200.0002
Check MTime0.00140.8268200.0001
Mysql Total
Database connection0.00090.552210.0009
Mysqli_queries0.119771.04401410.0008
Looping result0.00120.69121390.0000
Template Total0.153991.410.1539
Template load0.00090.524910.0009
Template processing0.153090.822010.1530
Override
Cache load0.00060.368010.0006
Sytem overhead
Fetch class attribute can translate value0.00080.490910.0008
XML
Image XML parsing0.00030.150210.0003
General
dbfile0.00764.5355200.0004
String conversion0.00000.003030.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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