Hi,

I have organic groups enabled. I have created two more roles other than the 2 default ones. I have created a profile type and enabled group audience for this type in group field settings. I have added group audience field and og_reference _field to the profile type. But the role reference field does not pick up the roles. Can you tell me where I am going wrong?

Thanks
Jaya

Comments

wjaspers’s picture

Looks like there are problems with my module and Organic Groups 7.x-2.x.

I am unaware of which version you're running (assuming og-7.x-1.x), but I'll look into it. Sorry this went unanswered for so long.

j4’s picture

Thank you. Would really love to get this going and yes i am using version 1

jhedstrom’s picture

Title: Unable to get it working » Port to OG 7.x-2.x

Changing the title to keep this issue as a tracker of various tasks to get this module working with OG 7.x-2.x. Since a 2.x branch of this module already exists, that would be the logical place to make these changes.

ezheidtmann’s picture

StatusFileSize
new5.55 KB

This is the first part of the port to OG 7-2, mostly just fixing the _validate() hook. I have not attempted to update the og_context code, but it works for global og roles.

Patch is against 7.x-1.0.

ezheidtmann’s picture

Status: Active » Needs review
StatusFileSize
new5.28 KB

Previous patch included a local kludge at the end; sorry about that. Here's a better one.

wjaspers’s picture

Wonderful! Thank you for your patch. I'll review it this weekend.

Hmm, I can't get your patch to apply, but based on the code I've read, this looks pretty close to what direction I was thinking this could go.

ezheidtmann’s picture

StatusFileSize
new6.9 KB

Howdy, here's a patch against 7.x-1.0 for the code I'm using now with OG 7.x-2.x.

It is lacking og_context support, so it's really only useful when there are no group-specific roles in use.

I commented out some rules integration because it was broken for some reason (I've forgotten exactly why)

shevgeny’s picture

Issue summary: View changes

I did not understand what makes this module, I have, after applying the patch, nothing has changed. Role OG does not appear in the settings field

anthonys’s picture

StatusFileSize
new1.64 KB

I have made the module for work for group specific roles using og_context(). See attached patch. To be applied on top of patch in #7.

I'm not sure how this module should work if you don't have an og_context, as I think you at least need the bundle to get the default group roles. I guess you might be able to get the default roles for new groups.

anthonys’s picture

Is there any chance we could release a version of this module now for og 2.x?