This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Organic Group Role Profiles - Is it possible?

I've been trying to find a resolution to this, and it looks like the only resolution might be to try and create it myself.

The problem: I have OG and OG Roles. I want to create only 2 Roles and assign them to users based upon the group they are in. So, a user might be in Group A and Group B. In Group A, he would have the Member Role, but in Group B he would have the Admin Role. Well, the way OG Roles works now, if I assign the user the Admin Role in Group B, he is automatically assigned that Role in ALL groups he belongs to. NOT what I want. If I assign a role to a user in one group, I only want that user to have that role in that group. He may have another role in another group.

Needless to say, I also don't want to have a different set of roles for every group I create.

So, I'm looking for a solution. First off, if anyone has run into this and have a solution already, I'd love to hear it.

My solution: Role Profiles. It's a theory. What I would do is assign the user the Member Role profile in Group A so that he has that role only when he accesses Group A content. And, I would assign the same user the Admin Role profile in Group B so that he has that role only when he access Group B content.

My question: How would I even attempt to code something like this? I assume there is a function somewhere that checks both Group and Role access rights when accessing content. If true, my solution would be to add a fuction there to check to see if the user has a role profile for the particular group content, and if so, use that Role in this Group ONLY.

Help with Modules! Permission to view/edit selected pages/forums?

I posted this question in another forum but got no replies so far, and have emailed Drupal but they said that I should post it in the "Infrastructure" forum but I got no reply for 6 days. I hope someone can help me here!! Please help!

CVS: How to remove a branch completely?

Hey all,

I'm *very* confused... I removed the 4.6 branch of my module (and it is gone - if I 'update special' and select the 4.6 branch, tortoise cvs informs me that it doesn't exist) yet there's still a 4.6 version of my module available for download on Drupal module page?

How do I prevent there being a 4.6 tarball on the Drupal site? After all, 1 - it's buggy and 2 - I don't run 4.6 any more and so, don't really want to support it.

Pobster

not displaying images propery in image gallary

hello
i am new to drupal and want to display the images one after other but actually when i upload it and submit it displays one current image there and by cliking one the link it displays lisk of images that i submitted but it is not display one after other it is displaying randomly

Remove "content" link from site path

Hello,
I've done it before on a diffrent site I just don't remember how.
I seem to recal there was a module that allowed you to customize the path of your content. What I'm trying to achieve is to remove 'content' from the site path in my header so when I click on content I see "Home/My Page" rather than "Home/content/My Page".

How can I do this?

Thanks

getting errors in flexinode 4.7 when I don't fill in the image field

anyone else have this problem? in the code it looks like flexinode deals with image fields not being filled in but when I set up flexinodes it gives me errors if I don't select an image. I'm really confused.

Jay

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions