I'd like to get users to create accounts with registration codes.

Depending on the registration code they enter, I would like the role to be assigned to them automatically. Does anyone have any ideas or a work around? I saw something close on this string
http://drupal.org/node/235707 but not quite what I would like. Anyway thanks in advance.

guppy

Comments

danielnolde’s picture

Hey regcode-users,

i just posted a ready-for-review proposal of a completely reworked new regcode.module (still D5, but soon to be upgraded to D6 & D7). This new to-become-release is solving a lot of feature-requests and issues (this one too!) on a completely new and flexible basis.

Check it out, test it and give feedback whether you think it solves your issues, and whether it's ready to be committed:

http://drupal.org/node/466630

cheers,

daniel

aidanlis’s picture

Status: Active » Closed (fixed)

This is not inside the scope of the Registration Code module. Role assignment is a separate task, and can be handled by a separate module.

I will be redesigning the D6 version to store registration codes as Nodes - this will allow you to use the Rules module to automatically assign and revoke Roles however you like.