By ShutterFreak on
Hi all,
I want to set up a number of "closed" groups each having one or more private forums. Users can become member of a group upon approval of their membership. My environment is Drupal 5.1.
So far I've installed Organic Groups and OG Forums modules, which nearly fulfills my needs, but I cannot restrict a group's forum visibility to group members.
I also tried the Forum Access module (requires ACL) but it assigns visibility only per role, not per group.
I understand that Organic Groups and Taxonomy Access cannot function together, so I did not try out that scenario.
Could someone tell me what I did wrong in my approach, or point me to a working alternative?
Best regards,
Olivier
Comments
Would this be relevant?
I found an OG issue under discussion (private groups) in the Organic Groups issue tracking and followup system. Does this mean there's currently no support for private forums in Organic Groups?
Best regards,
Olivier
5.x: Node Access Arbiter
In 5.x the Node Access Arbiter code is in core. So, in theory multiple node access modules (e.g. OG and TAC) can work together. Note also that you don't need to enable the node access functions of OG unless you need them for some other purpose.
---
Work: BioRAFT
Managing different closed groups without OG node access?
I infer from your reply that it's possible to do arbitration between node access schemes. This could possibly mean that Taxonomy Access and the node access functionality of Organic Groups could cooperate.
Would it then be possible to manage different closed organic groups without the node access functionality provided by the Organic Groups module? Maybe I don't understand what its node access functionality really does...
closed vs. node access
OG groups can be closed, meaning no one can join (and hence post).
This is very separate from node access where (in the case of OG) a user not in the group cannot read/view a post in a group where they are not a member (unless it's marked "Public"). Essentially, if most or all of the posts to groups are public, you probably don't need OG's node access features.
---
Work: BioRAFT
Group access is now understood. Still looking for forum trick
I see.
In my case I will need the node access functionality then, since the "closed" groups mean two things: users have to be approved, and group content is private to the group. I now understand the latter requires Organic Group node access to be active.
Hmmmm... so the forum problem still needs to find a workaround. I'm hoping an existing module (or possibly a functioning patch)will do the job, but I'm still not sure which one would do the job, if I want to have a number of group-private forums.
Private forums and audiences
After some further testing, I came to the conclusion that:
Would it be possible to restrict the audience to the group where the forum belongs (instead of providing a list of audiences)? Which code changes should be needed for doing so?
Best regards,
Olivier
check OG settings page
check the OG settings page- you can disallow making posts public.
---
Work: BioRAFT
Visibility of posts
The visibility of posts (OG settings, section: Node authoring form) was set to "Visible only within the targeted groups". I have set it to "Visibility chosen by author/editor using a checkbox on the posting form. Checkbox defaults to Private." which works!
At the same time this fixes another issue, where the default forum was not selected...
Thanks a lot to all for your input!
Cheers,
Olivier
Restricting access to group homepages
I'm just trying to prevent an authenticated user who is not subscribed to a group from accessing that group's homepage. I have OG node access enabled, but have not found a way to block authenticated users form being able to see a list of all group homepages. Also, I tried using the "Menu Per Role" module to eliminate access to the "Groups" navigation menu item, but it still shows up.
coming feature
the maintainer of OG (Moshe) announced that private home group pages is a coming feature- check the OG issue queue for a patch.
---
Work: BioRAFT
List on Group Page
You can indicate whether a group is listed on the groups page within the edit form of a group.
"list in groups directory : Should this group appear on the list of groups page?"
But you can still view the group home page if you know the url.
I've been tinkering with the node_access table to see if changing the realm will prevent this action for non subscribers.
Web Developer : RockRiverStar.com : Philadelphia, PA
Technical Architect : Philadelphia, PA
Tried a number of patches
A number of patches has been posted on the og_forum support pages. I have been experimenting with a couple of them, but so far there's no working implementation yet for the "closed" OG Forums.
I have started from version 1.11.2.6, then I upgraded to version 1.11.2.11 (via CVS web interface, branch DRUPAL 5.x), then started adding the patches by hand.
I can't attach a patch to a post, so I uploaded my latest attempt on my website. The input for this patch comes from the following patches from the og_forum suppport:
There's still work on it, but I won't really have time to work on it. I only hope this work will be useful to the og_forum developers.
Regards,
Olivier
Found a workaround (patching + config)
I think I found a workaround, which fixes a number of things, including the "post a forum topic" message where it doesn't belong. It also collapses the forum list dropdown in the "post a new topic" page by default.
I patched the following files (links go to patched versions on my website):
In order to make things work, I don't exclude any content from the Audience feature and set all groups to "moderated subscription". If you're not a member of a given group, you can't access the group's forum.
There are still no provisions for adding extra forums in an organic group (but this was also true in code before my patch).
Maybe this is stuff that the og_forum and forum module developers may want to look at :)
Regards, and many thanks for your reactions!
Olivier
One minor glitch - all forums are within groups. But...
But if you create one group where all users get automatic registered, and put a forum in there, this problem is solved.
I still don't know how several forums can be added to an organic group's forum list, though. Probably some taxonomy magic is required.
Best regards,
Olivier
This is taken care of now, without a patch to forum core
See the new 2.x dev version of og_forum.
The CVS version is up to date with the tarball on the main page lagging by up to 12 hours.
If there are any further issues, please post to the issue queue.
Thanks.