Allow registration of various types of users in Drupal 6?

I have two types of users on my site:

  • Regular user
  • The supplier

How to configure Drupal so that you can choose what type of user you want to be before registering, and then (and this is the difficult part) provide different profile fields for different types of users?

+4
source share
2 answers

Consider the Auto Accept Role module. Here is a quote about it (from the module project page):

... fulfills three main goals. The first is the automatic assignment of roles when creating a new account. Secondly, so that the end user can choose their role or roles when creating their account. Thirdly, it is to specify the paths that will play a certain role when creating an account. The administrator has full control over these functions and can work together or independently. The auto-negotiation role is integrated with the Content Profile module so that you can have content types that serve as registration pages. You can even replace the default user / user page with an individual version of your own design.

+3
source

Use User Types . Here is a quote about it (from the module project page):

... gives you the ability to create user profiles for specific types of users. To do this, the main profile module must be enabled. It allows you to determine for which profiles the field will be active. For example: if we need a field in which you can enter your favorite group, you will create this field, and at the bottom you can choose for which types of users (which you defined earlier in admin / user / user_types) this field will be active using the checkboxes . It is so simple. It is also possible to automatically assign a role to each type of user.

It is important . This module uses theme redefinition to hide categories of profiles that are empty for the associated user type identifier. Be sure to check out the documentation to copy the PHP fragment into the template.php template.

+1
source

Source: https://habr.com/ru/post/1311186/


All Articles