Hello,

I am looking for a way, so that only users registering for a special role get a subdomain through Domain User.

Here is some more information:
- I have created the user roles ‘Selling Account’ and ‘Visitor’.
- When a new user registers, he can choose which role he would like to take (I use Auto assign role for this).
- If a new user chooses to register for role ‘Selling Account’, he should automatically get a subdomain (Module Domain User).
- If a new user chooses to register for role ‘Visitor’, he should not get a subdomain

At the moment, I can either give all roles a subdomain, or none of them.

I have set the rights “domain_user-Modul -> create personal domain” to yes for anonymous users and to ‘Selling Account’. And this creates subdomains for all roles. If I deactivate this right for anonymous users, none gets a subdomain.

So is it somehow possible to only give users registering for role ‘Selling Account’ a subdomain? How?

Thanks for your help!

Comments

agentrickard’s picture

Project: Domain » Domain User
Version: 6.x-2.4 »
Component: - Domain User » Code
Category: support » feature

You would probably need a custom implementation of hook_user().

This module has been forked and needs a new maintainer. No new features are going into the D6 version.