Hello,
I need to adapt Organic Group Registration Code to this use case: all users can subscribe to a group ONLY by a registration code; subscription request is auto-approved; a new user fills registration form and fill "Group Registration Code" field and after registration user should be join other groups but ONLY submitting other registration codes (not by a list of available groups). I already tried some configurations before writing this request.

1. Subscription requests = 'moderated', Registration Code = 'required'
problem => no auto-approval membership even if user has a registration code

2. Subscription requests = 'closed', Registration Code = 'required'
problem => use of registration code does not override behavior of first option (only admins can invite)

3. Subscription requests = 'open', Registration Code = 'required'
problem => new users in registration form could join a group only by a registration code BUT when they are logged could join a group WITHOUT registration code

My idea: add a Subscription requests option such as 'AUTO-APPROVED'. With this option REGISTRATION CODE IS ALWAYS* REQUIRED to join a group and approval is not required
(*: both in registration form and in group subscription form for authenticated users).

I hope you'll understand my request. I give all my support to develop this feature (I already taken a look at code but I need help to implement the feature cleanly).

Thank you
Alessio Bazzica

Comments

SomebodySysop’s picture

This was the problem I had as well. I actually modified my module to perform these acrobatics. I created one basic rule: "If registration codes are allowed for a group, then they can be used to subscribe regardless of the group subscription request status." So, even if the group is closed, if you turn on registration codes, then users can subscribe to the group using valid codes.

The catch is that this functionality is ONLY for the OG User Roles modules: http://drupal.org/project/og_user_roles. This module is pretty big and pretty complicated and not for the faint at heart.

But, it is an option I'm throwing out there for users who need it.

See my comments here: http://drupal.org/node/215060#comment-718409

pwolanin’s picture

Status: Active » Closed (duplicate)