I am having issues when trying to use the OG registration codes with a moderated group.
I would like to have all of my groups moderated by admins.
I also would like to require that a group registration code is used when signing up.
However, when a new user uses a group registration code to sign up to a moderated group, it does not allow them immediate access to the group without being confirmed by an admin.
I would like for new users that enter a group registration code to have immediate access to that group, while leaving the group in a moderated status for existing users.
Is this possible? Any suggestions?
Comments
Comment #1
pwolanin commentedanything is possible, but it would require changes to the code. Did you read the REAME.txt?
Comment #2
mike stewart commentedI liked you answer, anything is possible. I read the readme.txt, but I came to the support forum wondering how many others had similar issues with the restrictions to work with "Open" or "Moderated" groups.
I haven't looked at the code yet, but I feel it'd be best if this restriction was a configuration option... In my experiences I see more uses for this module because it can help you to hand-off administration to users (or a subset of admins).
Comment #3
spyderpie commentedThis is a feature I would also like. as it is very frustrating for a user to use a code and then still not have access.
Julie
Comment #4
davea commentedBump!
I also need this feature. I would suggest that each different type be selected in regards to reg codes. For my use, if someone has a code, they are automatically added to the group.
If I submitted a patch, would you be open to adding this functionality?
Thanks for a great module!
DaveA
Comment #5
pwolanin commentedIf you want users to be able to jon immediately, why are the groups moderated?
The codes are not secret and work for any user. If you are really eager to have this feature, perhaps a second code to bypass moderation for a sepcific user for a sepcific group (or in this case you could even use it for closed groups).
If you want to write a patch, note that this module really should also be updated to work with the current branch of OG.
Comment #6
pwolanin commentedMaybe a better solution that have a second code to enter, would be to send the user a URL with a unique query string.
Comment #7
Rowanw commented+1 to make it configurable.
"If you want users to be able to join immediately, why are the groups moderated?"
Because if they already have a code it probably means they're allowed to join. I think it makes sense in both cases, which is why the options could be "Moderated", "Moderated (safe)". Where safe would still require authorisation regardless of whether a registration code was supplied or not.
Once I give someone a registration code I don't want to hear from them again.
Comment #8
pwolanin commentedif no patches are forthcoming, I'll close this issue soon.
Comment #9
stevecowie commentedI came up with a quick fix for this by changing the insert behaviour of the code box on the registration form as follows:
//$return = og_subscribe_user($gid, $account);
$return = og_save_subscription($gid, $account->uid, array('is_active' => 1));
There are some issues with this such as the fact that no notification is received because the person signing-up is joined to the group and is also active rather than pending. A slightly better option would probably be to keep using the og_subscribe_user function but pass an extra value to the og_subsribe_user function indicating that it had been called from og_reg_code and setting the group type to open. This would have the effect of allowing the new user to join the group but a notification would also be sent to the group administrator. Unfortunately, this would also involve changing the og_subscribe function to make sense of an argument passed from og_reg_code.
Comment #10
somebodysysop commentedIn what line of what module did you insert this?
Thanks!
Comment #11
somebodysysop commentedJust as an FYI, I am modifying my module to process registration codes using your module as my model. I needed to be able to enter/maintain codes on a per group basis, in addition to making the codes private and also being able to assign group roles (as opposed to site-wide) roles. I also wanted the ability to automatically delete codes after they are used, as well as use codes for any type of group status (from open to closed).
I didn't want an either/or situation with respect to using the codes on the site. I also don't need the check codes (preview) feature at all.
This is a really great module, but it would have taken too many modification requests to try to get to where I wanted to be. Hope you don't mind.
Comment #12
lias commentedSo the OG User Roles module will handle much of this modules functions? I've not installed either of these modules yet and would like to use one only and I do like the other options available from og user roles as well.
Comment #13
somebodysysop commentedYes. However, this functionality is not in the current download release. It should be released soon.
Comment #14
pwolanin commented