How to assign custom usergroup during registration with Joomla 3.x? - joomla

Context:
I'm just new to Joomla and I'm developing an (joomla 3.x) application where Organisations can register and set up a group, and 'Citizens' can register as a member of this group. (the solution Groupjive is unfortenately not suitable with respect to my specific design goals). Citizens can be member of one or more groups but can also be no member at all.
My specific development questions:
How to assign a new custom user group during registration? E.g., with respect to the standard registration process, where in the Joomla code are users assigned to the user groups, e.g., where in the code are the values saved in the #_usergroup_map table? I looked at the register.php model and controller files com_users but could not find the specific code there
If I would develop a plugin for assigning a new custom user group during registration (I believe that is the best approach?) which plugin method should be used?

Related

How to create two Joomla community builder(CB) registration forms

I have Joomla 3.x website . I am using CB(community builder) for user registration and log in.
I want to have another registration form on another page with some different field.
I have a already registration page here http://urbanaccessregulations.eu/register/registers. I need an other registration form on another page(http://urbanaccessregulations.eu/stakeholer-login).
I need basically two different registration form for two different pages.
Is this possible by community builder .
Please suggest me how can I do this
That can be done with Profile Pro plugin for Community Builder. It allows to create separate registration forms with different fields and even multi-step registrations.

Joomla 2.5: assign user to usergroup from front-end

I have statically defined user groups with statically defined access rights.
And I want to be able to change the user group for given user from the front-end using some module.
Reason: users can register by themselves, and automatically go to group "registered". After some time they can be promoted and moved to group "member". But I don't want to do this from back-end, bcs e.g. promotion can be done by any another already member. So I need this in front-end.
I haven't found any mention about this in Google. Maybe this is just something obvious? Are there any module/plugin perfoming such task?
The Joomla core components don't allow this. But you can search on http://extensions.joomla.org/extensions/clients-a-communities/user-management if there is something that fits your needs.
Maybe this one: http://extensions.joomla.org/extensions/clients-a-communities/user-management/13753
You could make a module with a button and have the button use JUserHelper::addUserToGroup.

How to Create a Custom Registration form and Approval Process in Magento?

We are setting up a new Magento site and will allow clothing designers the ability to sell their products in our store. We've already created a separate user group with appropriate permissions for Designers. However, we need to create a custom registration form for use by them, and an accompanying approval workflow. Can someone provide links to guidelines in creating such a custom form and workflow? Is it advisable to create a separate store for each designer, or create user defined attributes to assign a designer to their products in the main store catalog? Also, given that we will have a separate and changing commission percentage for each designer, what custom module logic must be used to apply these commissions correctly? Specifically, what Magento objects must be leveraged to produce such a commission process?
Thanks much for your help and guidance.
Here are 2 examples that should help:
Magento – Custom email contact form with notification system
Contact Form in Magento

Change Registration form in Joomla 1.5

I am developing a website where I need to create two user types. One is "member" and the other is "merchant". Both have different areas to be accessed. I am really confused on how can I achieve this.
Also I am trying to add my custom fields of First name and Password in the default Joomla registration form. As soon as I add a new TR with field first name the registration form stops working.
Can you guys help me in doing this?
If you have some troubles with default Joomla registrtion, you could use Community Builder. It is pretty easy to add fields to users profile and users registration. To separate members and merchants you could add field to the registration form called for example Account type. And then according to its value assign new user as registered(members) or author(merchant).
First, adding user types in 1.5 is not going to accomplish the access requirements you have described. You would need to install an access control component to control different user types accessing different content.
Next, Joomla 1.5 is nearing end of life, April 2012 to be exact. Version 1.7.x released last week so you should very seriously consider moving the site to the latest version. An added bonus is that Joomla 1.7.x has built in access control levels that would accomplish what you are trying to do.
Regarding different access levels best thing to do would be upgrade to Joomla 1.6/1.7 It has this functionality built in. It may be possible to achieve this in 1.5 with third party components, but I don't have any experience with this.
Regarding custom registration fields, again, if you upgrade to 1.6/1.7 it has User - Profile plugin which allows to add additional fields to your registration form.
In 1.5 you can use third party components such as ExtendedReg (commercial).
Or alternately edit core files: http://www.mysysadmintips.com/index.php/web/100

joomla module that references the users component and contact component

I am looking to create a module for registering a new user for my joomla! website. So basically, I want to create a form that ask for all types of information (first name, last name, username, pw, address, phone, etc... ) and store information like the username, password, and email, in my using the joomla! com_users component and the address, phone, first name, and last name using the joomla! com_contacts component. I don't understand how/if I am able to do this. I don't know how I can reference components in my module. I don't want to rewrite either component. Thank you.
Have a look at Community Builder (http://www.joomlapolis.org). This is a great free Joomla component that adds all sorts of stuff to the user registration and management process, amongst other things.
The easiest thing to do would be to use ChronoForms. It has a built in bridge to allow custom user registration forms that would get the info you collect in to com_users. You could then set up the form to also insert the collected data in to the com_contacts table after it handles the registration. No code hacking required.

Resources