This group is about the development of OG module and related modules. It is not an issue queue!
og_save_subscription don't work
now i want to create a groupe with admins user:
<?php
global $user;
$node = new stdClass();
$node->type = 'group'; // Change this to group node type name.
$node->uid = $user->uid;
$node->title = t('Mon groupe'); // Change title generation
$node->body = t('Body'); // Change body generation
$node->og_description = t('Group description'); // Change group description generation
$node->og_selective = OG_CLOSED;
$node->og_register = OG_REGISTRATION_NEVER;
$node->og_directory = OG_DIRECTORY_CHOOSE_FALSE;
$node->og_private = 0;
node_save($node);
Appropriate Use Cases for Organic Groups
I've been coming to terms with organic groups for the past few months and feel like I'm trying to apply the wrong tool to for the job. One of the great, yet complicated, things about Drupal is that there are many ways to achieve the same result.
Personally I think Organic Groups has a lot to offer, but you can also go a long way down the wrong use case before opting for a more suitable choice.
One use case that I think we can all agree that if you want to create groups and create content that is only accessible to that group, then Organic Groups is your module.
Read moreDynamic menu for groups
I can hard code a menu for creating content (node/add/blog etc.) in groups for each group using og_menu, but is there a dynamic way to create such a menu link for all groups? Using latest modules with 6.x. I looked at menu_token but there are no tokens for a group. I've tried php to grab the group nid in the menu block, but that doesn't seem to work. I looked at views and I'm not seeing og add content links. I'm sure there must be a solution, but after hours of looking and trying, I'm stumped. Any ideas would be greatly appreciated. Thanks.
Read moreCheck for group member
Hello
On the site (drupal 7) there are the authorized users and groups (organic groups module) consisting of authorized users. There is a content type, I want to display only for group members (but not group content - so the groups could not edit it). How do I check whether a user to a group member (e.g. such as checking for anonymous <? php global $ user; if ($ user-> uid): ?> )? I do not mean checking for a specific group, and in general to an active member of any group. Thanks.
How to create a block with any group field?
I mean such filed as "Content create links", "OG Group from node" "Node being viewed" with Group subscription formatter. Of course such filed should be displayed contextually
It is easy to place such fields in Panel panes, but not so easy using Views to create blocks.
I need advice urgently.
Read moreDifferent Themes, Headers, Menus and Backgrounds
How does one go about having a different theme for each group? Groups should retain the same regions, however, need to have different headers, menus and backgrounds and only override different values than the base theme provides.
A site was installed using Drupal 7.8 and had Organic Groups, Delta and Context modules added along with an Omega theme.
Read moreView showing only nodes in user's group(s).
I am looking to create a view that will only show nodes that are in the groups that the user is in. Does anyone have any experience in this. If someone could just tell me the configuration for the filters that would be awesome.
Read moreKicking it old Skool!
I know what it feels like to have your hard work critiqued, piles of issues to solve and to deal with some of the hardest discussions and posts we can have. I know the many hours spent, sacrificing time with our loved ones, time without sleep or the so many other things we give up to do our part.
Read moreThe new OG (7) needs updated documentation
-
The Documentation link in the Resources block on the OG project page points to the D6 documentation, should point to the starting page of the OG docs, here: http://drupal.org/node/1114858
-
Shouldn't there also be a link to THIS group on that Resources block the OG project page?
spaces og features
Hi everyone,
I would like to grasp the concept of enabling/disabling a feature for a group in Open Atrium.
I searched the code for a while but I don't find it.
So, where in the code can I find the enabling/disabling of, let's say, the notebook feature in Open Atrium?
Thank you,
Raf Huys
Read morecan somebody help me with views module? to create a single page...
I have been building an ecommerce section on a website - and using Ubercart module on Drupal 7. I have trouble displaying only one product on a page using views - if I create a view displaying product title, description, images, etc - it shows all my products.
Is there a setting somewhere, where I can set the system to show only one product that should be on the page?
I am trying to achieve 'Set cardinality of audience field per instance rather than globally'
I am trying to set different number of cardinality per instance
I have searched for how to do this, and I found Amitaibu's answer that I should use hook_form_alter() for it.
However...
I am fairly new to drupal, I just started building the site like a month ago, so I am really struggling to figure out exactly what to do...
I am to set the value to unlimited and use hook_form_alter() to change back to another value for specific content type...
invite by email
Hi,
Is it possible in D7 to be invited to a group via email?
The use case is as follows:
- group admin sends email with subscription link to a friend
- friend clicks on link
- friend will be requested to log in
- friend is automatically added to group
Which steps should I follow to get this work?
Thank you
Read moreUnable to start creating groups
I wonder if someone could help me with a problem that's been vexing the heck out of me these past few days. I've installed all the relevent modules and everything is 'enabled'. The problem stems from the fact that I've been thus far unable to see where it is I need to go in order to activate OG so that I can start creating the groups I need.
Read moreThe best way to Make a calender for each group?
i have done a lot of research in this and i am wondering what you all have found to be the best way. All that I have tried don't work or don't work well with drupal 7. This seems to be the best solution from this thread
http://drupal.org/node/433768#comment-2332648
This is how I achieved it (to have individual calendar of events for each of my Organic Groups):
Standard Calendar and Date configuration first:
1. Install Calendar and Date modules (copy the files to the server and enable modules, setup Date default settings under Site Configure)
Can someone please help me with a My Groups view?
I've been trying to figure this out for days now. This should not be that hard to do. I'm not finding the right combination of fields or filters to produce a list of groups a logged in user is subscribed to. I'm using Drupal 7 with the new views ui. Please help.
Read morecreate group node with audience intelligence
Hi,
I plan to make group content nodes from the group page itself. By default the audience should be the group itself. (just like this page in fact)
Can I accomplish this with a ctools plugin? (I know very little about ctools plugins)
Thanks
Read moreHow to Create My Groups block, and what admin theme to use.
Ok, I'm figuring things out and starting to get a foothold on D7. I turned the corner when I stopped looking at anything for D6.
I'm trying to ad a MY Groups block such as the one used here on Groups.Drupal. I figured that this would be done by creating a view, and then adding it to the panel, or to a block. The thing I can't figure out is how to get the name/s of the group/s to show, and show as a link. I've tried selecting fields, but no field can I find for the group name. I see things like ID, entity ID, State, but no name.
Read moreproblem with OG and D7...
I consistently get this error when trying to create a new group in D7.
When I try to add a public group... I get this error ( but the group is still added...)
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 177 of /home/timeetup/public_html/includes/entity.inc).
Notice: Trying to get property of non-object in og_create_perms_field_attach_validate() (line 50 of /home/timeetup/public_html/sites/all/modules/og_create_perms/og_create_perms.module).
notify for all members in a group
I have a problem, could you help me?
How to notify for all members in a group(mail or privatemsg) when heve a new post or a new comment?
Thanks every body!