Skip to main content

Questions tagged [organic-groups]

Use it for questions about the Organic Groups module, not the Group module.

Filter by
Sorted by
Tagged with
8 votes
2 answers
6k views

What are the features of the Group module versus Organic Group module?

To create groups in Drupal we have at this moment the Group module and the Organic Groups module. From the Group module page: The Group module allows you to create arbitrary collections of your ...
Adrian Cid Almaguer's user avatar
3 votes
2 answers
6k views

How to show the count of members that belong to a group?

I have a view showing a list of nodes of type group. How do I set it up to show the count of members that belong to each group?
uwe's user avatar
  • 12k
6 votes
2 answers
3k views

Programmatically assign a node to an organic group

How can I programmatically assign a node to an organic group? I have tried the followings and non of them worked (assuming $target_group is the group ID that I want the $node to be assigned to): $...
Luca's user avatar
  • 479
5 votes
2 answers
4k views

How to create basic Organic Groups functionality with flags and references?

I've used Organic Groups for the past 6 months and found it to complex for my simple use case. Creating even basic views to show users of a group or content of a group turns quickly into "rocket since"...
uwe's user avatar
  • 12k
9 votes
2 answers
8k views

How to hide and/or prevent access to fields in a form, such as group_audience for organic groups

This has been troubleing me for a while.. When i try to hide fields like the group audience field, or the publishing setting from a form, on validation the form set both of these field to a null value,...
silkAdmin's user avatar
  • 2,814
6 votes
2 answers
4k views

Select organic group on the user registration form

There's a post already on the post installation forum, but I'm not sure if this is a OG bug. http://drupal.org/node/1108884 I am using Drupal 7 and OG 7.x-2.1 version. There is no "Group Audience" in ...
Saeed Rajabi's user avatar
6 votes
1 answer
1k views

List Private Organic Groups Publicly without giving access to the node page?

I have a view setup to list my OG Nodes, those nodes and their greater content need to be private to only the group, but on the front end of the site I want to list some of the featured Nodes. As it ...
Tate's user avatar
  • 61
5 votes
2 answers
6k views

OG groups: How to check if user is a member or not?

What code can I use to check if a user is a member of a group?
Dzoni's user avatar
  • 327
4 votes
2 answers
5k views

Using Views to List a Member's Organic Groups (7.x-2.3)

I am migrating a site from using OG 7.x-1.4 to OG 7.x-2.3. The migration seemed to go fine, but it broke the view that shows the current users group (i.e. groups the user is a member of). In the ...
VirtualMitra's user avatar
1 vote
1 answer
221 views

Email all Organic Group members when a subgroup is created

I have an Organic Groups / subgroups structure where an Organisation is a group, a Property is a child group of an Organisation, and a claim is a child group of a property. So: Organisation > Property ...
Paul Trotter's user avatar
9 votes
4 answers
13k views

How can I get the group ID of a node?

I have this node that belongs to a group, and I want to get the group ID of that node, to print it, something like $node->nid; but with the group id. Is that possible?
Rosamunda's user avatar
  • 1,289
5 votes
4 answers
3k views

Organic groups automatic audience selection

I am working with organic groups. Within each group, permitted users are allowed to create their own pages. What my problem is that I need to set the audience for a new page automatically as the ...
sisko's user avatar
  • 1,720
3 votes
2 answers
1k views

How to restrict access to private files to members of an organic group?

I have an organic group with a file field that stores its files in a private directory (sites/default/files/private/). These files are visible only to members of that group. But, as is commonly known, ...
user5950's user avatar
  • 2,048
2 votes
2 answers
3k views

Programmatically assign new users to OG

My site is sub-divided into organic groups. Group administrators are allowed to create new users, but I need a way to auto-assign the new user to the same organic group the creating group ...
sisko's user avatar
  • 1,720
2 votes
2 answers
461 views

How to loop over a list of Organic Group users using Rules

When a user requests to join an Organic Group, I want to send an email to the group's admins. I've found this answer (https://stackoverflow.com/questions/16742925/how-to-send-an-email-to-drupal-7-...
sTony's user avatar
  • 53
-3 votes
1 answer
313 views

How can I programmatically add users? [closed]

How can I programmatically add users to an organic group?
ankur's user avatar
  • 3
8 votes
1 answer
8k views

How do I display all the nodes in an organic group?

I'm on d7. Im trying to figure out how to display all the nodes that are in an organic group. I feel like this is a major thing that the OG module should do and don't know why I cant figure it out. I ...
oobie11's user avatar
  • 1,100
5 votes
3 answers
7k views

How to make a OG private?

I want to make an Organic group private,to be seen only from members of this group. All the other will get an "Access denied" or something like that. For the time being,I can see the Group but not its ...
Dion's user avatar
  • 2,398
4 votes
1 answer
736 views

How do you display a pane in an organic group?

I'm trying to create a menu of subgroups for organic groups in d7. I've copied the og list view and made a new view called og subgroups. I made a pane display and configured the pane's argument to ...
Arosboro's user avatar
  • 1,275
4 votes
5 answers
3k views

How to change OG "subscribe to group" link text?

I want to customize the link text, don't want to use string overrides module for this small job. In my template_preprocess_node() function I tried to change the #title element of the render array. ...
uwe's user avatar
  • 12k
4 votes
2 answers
3k views

Show all group content of a specific group type

I'm having a very difficult time figuring this out, and I'm wondering if it's even possible. I'm using organic groups 7.x-2.x, and I have two "group" types: a student group type and a faculty group ...
bkildow's user avatar
  • 712
3 votes
2 answers
392 views

Setting OG with Services module

I am trying to POST a node to my site and make it group member. POST body looks like this: { "title":"Update", "type":"mesurement", "uid":"4", "og_group_ref": { "und": [{ ...
PovilasSid's user avatar
3 votes
1 answer
435 views

og_members block & og_nodes block won't display content

OG Version: 7.x-1.x-dev My problem is that I can't get the og_members block & og_nodes block to show up under a group page. Breakdown of my process: A fresh install of D7, necessary modules ...
gilzero's user avatar
  • 6,037
3 votes
2 answers
2k views

Organic Groups Views Contextual Filters

We have a country based site that needs to have an unfiltered view of various content types and a filtered view per country. We have implemented the countries with Organic groups but can't seem to get ...
Sherwin Harris's user avatar
2 votes
1 answer
262 views

Group posts view

I am struggling to make a view to display the posts of a group. I have done the filter and chosen the fields I want to display, but I am struggling with the arguments. I am not sure what the path ...
Jasmine Ahmed's user avatar
2 votes
2 answers
2k views

Is there an hook_node_access() equivalent for users?

Is there any way in Drupal to control access to users like it's done in hook_node_access() for nodes? I'm looking for something like hook_user_access() or hook_entity_access(). I have an entity ...
milkovsky's user avatar
  • 5,344
2 votes
2 answers
1k views

How to implement Facebook style Notifications for Organic Group posts? [closed]

I am using Organic Groups, Drupal Commons. If someone posts in group, then all the members should be notified like in Facebook with the number of notifications. Similar to this screenprint: How can I ...
FAB's user avatar
  • 195
2 votes
3 answers
2k views

How can I use the logged in user's group ID as a contextual filter in Views?

I have Views, Context and OG installed on Drupal 7. One of the default views is OG User Groups (/user-groups.) It is a content view that shows the user which groups they belong to. I'm trying to ...
Doug Estey's user avatar
2 votes
1 answer
469 views

Changing group visibility needs group content to be resaved when group content visibility field is set to "Use group defaults"

Drupal Commons 7.x-3.2 Organic Groups 7.x-2.1 Content type: Mygroup Field: Group visibility - value: Public Content type: Mypost Field: Group - default value: Mygroup Field: Group content visibility ...
devunder's user avatar
  • 1,194
2 votes
2 answers
496 views

Get organic group name in a rule?

I want to create a rule that sends an email to all users of an organic group when content is posted to that group. In the email I want the name of the group to appear in the subject. I'm completely ...
Lester Peabody's user avatar
2 votes
2 answers
189 views

How to apply flags retrospectively for group subscriptions using Organic Groups?

We've a large site running Drupal 7 with OG, Flag, Rules, etc. OG uses a subscription model where you have to confirm you want to join a group (or leave a group) so we've decided to move to a Flag ...
studiocomms's user avatar
2 votes
4 answers
812 views

How to make a Feature available only to certain Spaces? [closed]

For a Drupal 6 Open Atrium site (i.e., Features, Spaces, Organic Groups) I'm running, I've created some custom Features that only really apply to a handful of the hundreds of groups on the site. As ...
smokris's user avatar
  • 2,655
1 vote
1 answer
661 views

Organic Groups for grouping users?

I have a project where I want to group users. So for example, say we have a role of 'King' and a role of 'Subject'. I will have a view where a King can see a listing of all of their subjects. When a ...
user1359's user avatar
  • 3,919
1 vote
1 answer
66 views

How to use Views and Rules to activate a new node flag for existing OG members?

We have a flag for nodes called subscribe_og. From this point in time users will click that flag to join, or leave, a group. If you are not a member of the group, the flag says 'Join'. If you are ...
studiocomms's user avatar
1 vote
1 answer
2k views

Automatically add users to the same group as their group admin

I am using the Organic group module. I created 2 groups on my site. To each group I assigned 1 user as group admin. Group admins have the permission to create users. My question is how to ...
Ngo Ho's user avatar
  • 87
1 vote
0 answers
353 views

Context OG Reaction: Block does not appear on Views override pages

I'm using the module Context OG in order to use the condition "OG - Member Role" in a context. The context by itself works without problems, until I override the node page with a view. The view by ...
NWOM's user avatar
  • 238
1 vote
0 answers
34 views

Allow user to join group during registration [duplicate]

I am using D7 with Organic groups and Organic groups register. I have created the groups and when viewing a group node the link to 'Request group membership' is visible and working. I wish a user to ...
Paul Trotter's user avatar
1 vote
1 answer
657 views

OG group content notification for group administrators

I'm using Drupal 7.12 with OG 7.x-1.3 and Rules 7.x-2.0. There is a pre-installed rule that I'm using for group notifications which is "OG group content notification". This sends out an email to all ...
Ben's user avatar
  • 1,030
1 vote
2 answers
477 views

How can the admin of a group edit all members default profiles? Is that possible? (Drupal 6 installation)

I need to do this in a Drupal 6 installation, with the Organic Groups module: The user that has administrator rights within a group can edit all members default profiles. I just want the admin of an ...
Rosamunda's user avatar
  • 1,289
1 vote
1 answer
942 views

How to programmatically assign/add new groups to the OG in Drupal Commons 6.25

How to programmatically add new groups to Organic Groups in Drupal Commons 6.25? I have to do that for approximately 3000 groups. A preliminary test cycle that generates 50 will be the first step. ...
zero's user avatar
  • 353
1 vote
1 answer
255 views

Creating new content/node

I want to do something very simple - create a content of a specific type when a user joins a group. Unfortunately I can not find a simple way of how it should be done. It can be done with rules so ...
Pawel G's user avatar
  • 513
1 vote
0 answers
125 views

Create view of members inherited from OG Subgroups

I have the following OG Structure: Organisation (group) Property (subgroup) Claim (subgroup content) I would like to be able to list all the group members of a ...
Paul Trotter's user avatar
1 vote
0 answers
708 views

Get OG administrator users from Rules

I want to send an e-mail to all group administrators when a user joins a group. Rules and OG come with this functionality out of the box, but unfortunately the default rule is set to only e-mail the ...
Frederik's user avatar
  • 589
1 vote
1 answer
368 views

How to make an existing private OG group and its nodes public?

I use Drupal Commons 7.x-3.12 (uses OG 7.x-2.7). There, I have a private group with private posts. (Means, the group node uses privacy settings "Joining requires admin approval" and "Hide contributed ...
tanius's user avatar
  • 1,129
0 votes
2 answers
622 views

Drupal error. Drupal safe mode possible?

I added organic groups module to a drupal website. For some reason the website crashed and gives the following error: Fatal error: Unsupported operand types in /home/content/39/7384539/html/salvare12/...
Vipin Parakkat's user avatar
0 votes
2 answers
2k views

Organic Groups admin has can't edit roles and permissions in groups

I have a user who is an "administrator member" of a group called "Fancy group". "Administrator members" of this group have permission to administer roles and permissions within the group. but my ...
beth's user avatar
  • 9,087
0 votes
1 answer
122 views

How do I check if a node is an organic group in an access callback of a custom module?

In Drupal 7 with Drupalgap, I have created a custom module in order to make a block. I have defined hook_block_info() and hook_block_view() as it is necessary. What I want is making this block visible ...
roko's user avatar
  • 47
0 votes
1 answer
173 views

How to configure access for creating a custom LMS?

I am looking to create a LMS either in an existing Drupal install. Anonymous users can browse course information and also preview certain Modules & Slides (see below). They will be able to buy ...
IamOnStage's user avatar
0 votes
1 answer
70 views

How do I display data basing on the permissions a user has within a group?

In a custom module I wrote, I implemented hook_og_permission() to define a new group permission. /** * Implements hook_og_permission(). */ function logic_board_og_permission() { return array( '...
0 votes
2 answers
144 views

Why can I not find the og table after installing Organic Groups?

I am using Organic Groups module. After installation why do I not find the og table? I only have these five tables: Here is a screenprint from the Drupal log with messages from around the time the ...
Brian's user avatar
  • 157