Hi,

I noticed that the rules module will get the "User has used a registration code" event, if a new user enters a regcode, which should be used only once AND is already used.

There should me at least one more event called "User used registration code which is already expired/maxed" and so on.

I'm using the rules module for user role assignment based on use of a registration code.

I hope I described it understandable, else feel free to ask.

Greetings,
korinor

Comments

aidanlis’s picture

Sorry, this is a bug. It's fixed in CVS. Also, role assignment is a feature of regcode in the next version.

Cheers,

aidanlis’s picture

Status: Active » Fixed
Anonymous’s picture

Thanks for your reply.

I'm going to test it. It may take some time but I will inform you about further progress.

Greetings,
korinor

Anonymous’s picture

Status: Fixed » Needs work

Hi, it's me again ;)

I tested CVS version on my local server and found the following:

* automatic role assignment if particular regcode category is used: a very great deal. But I found out that newly created users which use a regcode with automatic rule seems to be always assigned to the specified role, even if the regcode already was used before (I used some codes with max use = 1). The second (or third) user won't be displayed in the regcode list, but this user got the assigned rule. Maybe this is an issue in combination with the activation of the user. I only registered the new users and watch the changes as admin, I didn't activate any user because I have no mail system configured on my local test server. The new users are locked until they activate their accounts, but they are already assigned to the defined roles.

* in the rules module a new condition "registration code category is..." appeared. This is also very cool. I assume you are creating some more events and conditions for use with rules module? There may be some more conditions like "Used regcode has expired", "Used regcode already used (max) times" and so on.

I hope my descriptions are helpful, otherwise feel free to ask.

Greetings,
korinor

aidanlis’s picture

Status: Needs work » Fixed

Hey thanks for writing back,

Glad you liked the new roles module. I think I've fixed the bug you referred to, can you try the new module and let me know?

Also, the regcode list page will only show the most recent user to use the registration code. If you want to see all users, you can look at the Recent log entries page in the drupal administration, and filter on the regcode module.

Rules integration was provided by another user, I don't think any of the other rules are particularly useful so I won't be adding any more, but other users are welcome to contribute if they think it is useful.

Thanks for your help :)

aidanlis’s picture

Status: Fixed » Closed (fixed)
Anonymous’s picture

Hi, me again.

I tested your latest release 6.x-1.4 and it's absolutely great!

On using a expired or too much used code I now get a proper message explaining about it. The automatic role assignment is working as expected.

The new features (mailing and vouchers) I didn't test by now, but sounds very interesting. In fact there is actually no need for further rules for use with the Rules module. I think the only rule "User used a regcode" will only be triggered on a successful registration process?

Greetings,
korinor