CB Multi registration & hidden fields support

Version
1.0
Rating
Compatibility

Votes
Favoured
2
License
GPLv2 or later
Non-Commercial
Type
Views
20503
Date Added
31 July 2010
It is tested to be working in Community builder 1.2 with Joomla 1.5.
Install this plugin into Joomla through the community builder plugin installer and enable it.
Defining multiple forms :
Click on this plugin under the plugin management tab and in the params section define the forms in this format:
form_name1:field_name1,field_name2
form_name2:field_name1,field_name2
form_name is a identifier for the form you are creating. Keep it unique and without spaces. This form_name has to be passed as a GET parameter to the default CB registration page to show up only the fields you want.
field_name1,field_name2 etc are the names of the fields under the Field management tab in CB.
An example entry could be like this :
agent_form:name,username,password,company_name
user_form:name,username,password,address
The 2 forms can be accessed by adding &form=agent_form and &form=user_form respectively to the default CB registration form URL.
Please note that you could also have mandatory fields in any of the forms. In such a case the mandatory fields will be filled with some text to bypass the validation checks before the form is submitted.
Passing hidden data:
Sometimes it is necessary to store information based on the above defined forms. For example, when the agent_form is submitted, you may want to store a specific value say ‘agent’ in one of the CB fields so that you can know what form was used by the user. This can be done using the hidden data field.
The hidden data field also uses a similar format for definining the fields.
form_name1:field_name1=value1,field_name2=value2
form_name2:field_name1=value1,field_name2=value2
So here, once the form_name1 is submitted, the field_name1 will have the value as value1.
Note that the value should not contain any special characters like comma or quotes. The value is added directly to the database and will skip any validation checks.
One of the real world applications of this feature is by comining with the JLS grouping plugin which will add the current user to the necessary user group based on one of the CB fields.
P.S. This is Based on "Different User Registration Forms" plugin by Bog Imp
Works fine for registartion process.
Great way to customize registration process.
The limitation is that it enables to get custom displays only for registration page (not for Profile viewing & editing).
Another limitation I could not get around is that mod_cblogin register link is not modifiable in modules parameters so there is no way to change default display when using Module's Register link.
Great way to customize registration process.
The limitation is that it enables to get custom displays only for registration page (not for Profile viewing & editing).
Another limitation I could not get around is that mod_cblogin register link is not modifiable in modules parameters so there is no way to change default display when using Module's Register link.





