I'm using Drupal 5.2, Organic Groups 5.x-3.1 and Userplus 5.x-1.0.

In Userplus I assign a member to one group, she's the manager of that group. In Organic Groups I set the node Visible Only within targeted groups. When she tries to post something, she has only one choice of where her post goes, and it's not a choice, it's already defined.

If I change the visibility to checkboxes defaulting to Private, her one group she's manager of is still the defined target audience, and she has an option of "Public". Maybe I'm misunderstanding, but I thought this would prohibit "public" as an option.

If I go back to Userplus and assign her to multiple groups (only one of which she manages - I just want her to be able to read posts in the other groups), and leave the OG visibility to checkboxes/Private, her defined target audience becomes "*" and public is grayed out, not an option. This private part is good, but I don't have the checkboxes for her to choose which group she posts to.

To make matters more complicated, there are some groups I want multiple people to post to. There are some users I want to be able to post in multiple groups. And there are some users I want to be able to post to some groups, but not all. Is this possible?

CommentFileSizeAuthor
#3 oguid_screen.gif49.01 KBcindyr

Comments

moshe weitzman@drupal.org’s picture

Project: Organic Groups » userplus
Version: 5.x-3.1 » master
Component: og.module » Code
marcp’s picture

I think what is happening is that the manager (the user who created the group) was removed from the group via the Userplus "assign user groups" page. This leaves the OG tables in a bit of a mess.

Userplus shouldn't allow you to remove the manager from the group -- I'm pretty sure that's what the bug is.

You can remedy this by making sure that the manager is in the group on the Userplus "assign user groups" page. Then, you'll need to go into the database and set the is_admin field to 1 for that user/group combination in the og_uid table.

If you need help with the SQL to do this, here's what we'll need:

1. The uid of the user who is manager of the group
2. The nid of the group

You can get this information on the Userplus "assign user groups" page -- the links to the users going down the left side of the page will give you the uid, and the links to the groups across the top will give you the nid for the group.

UPDATE og_uid SET is_admin = 1 WHERE uid = 9999 AND nid = 8888;

[ Replace 9999 with the uid of the user and 8888 with the nid of the group. ]

cindyr’s picture

StatusFileSize
new49.01 KB

I'm stumped. The og_uid table is fine. The group user 159 should be able to edit has her set to be the admin (group 186). I've attached screenshots so you can see what I'm saying. User 159 has the role of instructor, and the instructor's permissions are set to create, edit and edit own bookmark. OG configuration is set audience checkboxes checked, and visibility chosen by checkboxes default to private. What next?

marcp’s picture

I'm not sure what's going on. A couple things to try would be to disable and then re-enable OG Access Control and/or try saving that node and going back in to edit it again to see if things change. This is from the og "visibility of posts" bit on the og admin screen:

Determine how broadly available a given post should be when it is affiliated with a group. OG admins always see the checkbox for making a post Public. Note that changing this setting has no effect on existing posts. Re-save those posts to acquire this new setting.

Seems like this is now an Organic Groups issue. It would be great if you could reproduce this on a new site without ever enabling the Userplus module.

cindyr’s picture

I tried both of your suggestions, and even tried creating a new group and a new user/group manager, but I'm still having the same problems. I'll head over to the Organic Groups forum and see if they can help.

Thank you so much for your speedy responses and all your help!
cindyr

marcp’s picture

Title: userplus user groups conflict with organic groups node audience » do not allow removal of OG managers from their groups
Status: Active » Fixed

There's a new 5.x-1.1 release of Userplus here that will keep the removal of managers from their own groups from happening again. I'm going to change the title and close out this issue. If you suspect Userplus again, please open up a new issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)