Here's what I learned today: you can't require a group post to have an audience and also mandate that it be public. Apparently that's because "public" is considered a group. So you can mandate that a user choose a group all you want, it doesn't mean a damn thing because the hidden "public" checkbox is also considered a group.
So if I want to mandate that a user choose one group, the post has to be private. Because even if "public" is optional, "public" is still a group. Any group they choose will make the post "private", which means non-group members can't see it. Is that correct?
So yeah, I marked this as critical because unless there's a workaround for this I can't use OG in any capacity. Somebody please tell me I'm wrong.
Comments
Comment #1
mjohnq3 commentedPublic content is public; anyone with permission to 'access content' on the site may view it. Posts may be Public, Private, or a combination of both. See the attached image for the Audience options.
Comment #2
jthomasbailey commentedYes... the problem is when I force a user to choose one and only one group their choice is ignored because the default "public" is a group.
At least I think that's what's happening, I turned off OG Access Control and it's still doing it. It might actually be a bug.
Comment #3
jthomasbailey commentedNever mind. Problem is with OG Audience By Type, but I'm not sure exactly what's wrong yet.
Comment #4
jthomasbailey commentedWhat's happening is a 'dummy value' is assigned to og_groups so that it passes validation - on line 94 of og_abt.module - and this counts as 1 group. So if you use the 'force single' option it counts that dummy value as a group and ignores the actual group choice.
This also means that the 'require' option doesn't work because if no group is chosen the 'dummy value' is still selected.
Major bug.
Comment #5
jthomasbailey commentednot sure if it's because of Dummy Value or not. This is really a shame, this would be great module if it worked.
Comment #6
jthomasbailey commentedWell I'm stupid, it took me 3 days to figure out this only works with OG 1.x. I downgraded to 1.x and it's doing what it's supposed to.
Comment #7
jthomasbailey commentedI spoke too soon, this thing doesn't work with 1.x either. Works fine for Administrator but for other roles 'force single' won't assign a post to a group and 'require' doesn't do anything.