Forums / Install & configuration / Two different users that should register in the site

Two different users that should register in the site

Author Message

Jorge estévez

Wednesday 28 April 2010 7:49:01 pm

Hello

 

I have two different users that should register in the site (with two usergroups: productmember, and needmember)

 

How can I achieve that to links go to separate register forms, and once registered then each one of the will be part of its corresponding usergroup

 

The url for registering a new user is

 

www.mysite.com/index.php/esl/user/register

 

So, is there some way I could do something like

 

www.mysite.com/index.php/esl/user/register/productmember

 

and

 

www.mysite.com/index.php/esl/user/register/needmember

 

and of course making two user classes for each usergroups, each one of the with its corresponding attributes

 

I am lost here…

 

Any Ideas,

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Andreas Adelsberger

Wednesday 28 April 2010 11:15:51 pm

You can use a this extension:

http://ez.no/developer/contribs/workflow/automated_user_placment

Create your own registration form and hide the selection. To select the right usergroup you can pass a view parameter to your form like user/register/(type)/needmember

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

Abdelkader RHOUATI

Thursday 29 April 2010 2:04:50 am

HI,

This feature does not exist by default on ez, so I think the most simple and clean, will:

1 - Override the user module (override only the register view, with create a module and a view with the same name, ie user and register, in an extension). also adjusts the view definition so that it takes as a parameter the desired location.

2 - Override the template user/register.tpl, to be able to sent in hidden input the location of new user.

3 - On line 118, of the file view register (register.php); you replace:

$DefaultUserPlacement = (int) $ ini-> variable ("UserSettings", "DefaultUserPlacement");

by

// assume that the location is sent by  post from the registration form

$DefaultUserPlacement = (int) $ http->getVariable('location');

Regrads.

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

eZ debug

Timing: Jan 18 2025 02:49:04
Script start
Timing: Jan 18 2025 02:49:04
Module start 'content'
Timing: Jan 18 2025 02:49:05
Module end 'content'
Timing: Jan 18 2025 02:49:06
Script end

Main resources:

Total runtime1.1634 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 592.7500180.8047
Module start 'content' 0.00661.0413 773.5547591.1875
Module end 'content' 1.04790.1155 1,364.7422336.7500
Script end 1.1634  1,701.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3357210.0002
Check MTime0.00150.1258210.0001
Mysql Total
Database connection0.00070.057910.0007
Mysqli_queries1.087093.42811970.0055
Looping result0.00170.14981950.0000
Template Total1.132697.420.5663
Template load0.00210.176620.0010
Template processing1.130697.175220.5653
Template load and register function0.00020.017410.0002
states
state_id_array0.00090.075310.0009
state_identifier_array0.00070.061920.0004
Override
Cache load0.00170.1503460.0000
Sytem overhead
Fetch class attribute can translate value0.00110.096440.0003
Fetch class attribute name0.00130.110550.0003
XML
Image XML parsing0.00150.132140.0004
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00300.2591330.0001
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs