Is there any way to sort out the users to different groups automatically on the basis of the information provided in the registration form. Thus, they belong to different editing permissions without the intervention of the admin. Right now, every registered user automatically belongs to the 'authenticated user' group. How can such automation be possible for other groups based on their professions and/or geographic locations and/or sex and/or nationalities? Please be explicit for 4.6 and 4.7 (possibly applicable to civicspace 0.8.2)? Thanks!

Comments

1jan2006’s picture

I have not heard from anyone in this regard. However, I found an automember.module for 4.5 which works similar to what I wished. Anyone has any idea?

1jan2006’s picture

Is anyone noticed the mail I posted four days ago? Thanks!

Dublin Drupaller’s picture

Hi Ijan..

You can do that out-of-the-box with the profile.module.

as an illustrative example based on using a COUNTRY field

Setting up the profile field:

  1. go to ADMINISTER -> SETTINGS ->PROFILE
  2. Under ADD NEW FIELD click on FREEFORM LIST
  3. fill out the fields presented and at the bottom, there should be an option to have a page title. Type in this text: "users from %value"

now when you look at any user profile, their COUNTRY field will be a link and when you click on it, it will display a list of users from that COUNTRY.

As a working example have a look at your own profile and click on the SWEDEN link.

you should be shown a list of Drupal.org users who are from SWEDEN.

Tip: What's quite common to do is to setup a simple BLOCK that is only displayed when users are viewing /profile/ (user list) that has a few links. an example is below:

<div class="special">
<a href="/country/Sweden">Click here for site members in Sweden</a>
<a href="/country/USA">Click here for site members in the USA</a>
<a href="/country/ENGLAND">Click here for site members in England</a>
</div>

I hope that makes sense...the same concept could be used for favourite colour, users with the same profession, pretty much anything you want...

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate