Friday, August 12, 2011

Remove Calendar popup functionality


Just disable the Calendar Popup module.
That provides the node links with a javascript popup.
Note: This is different from the Date Popup module.
It provides the Date/Time javascript popup picker.
Calendar and organic group(og)

Source: http://drupal.org/node/679808


Edit the View to show Events related to the current group only:

Edit the "calendar_custom" view we created earlier.
Add new Argument "Organic groups: Groups" (for posts) and click Add. Change:
- Action to take if argument is not present: Provide default argument
- Default argument type: Node ID from URL
You can also add:
- Validator = Group nodes

Tuesday, August 09, 2011

How to set the all the send methods settings of all notifications?


source: http://drupal.org/node/518088


UPDATE `notifications` SET `send_method` = 'mail';
To change the time interval you could run:
UPDATE `notifications` SET `send_interval` = '86400'; (or whatever time value).
How to grand the membership (of an og, organic group) to a membership request?

In the member management page, please get into member list. Then you can approve or deny.


Monday, August 08, 2011

Translate notifications and messages for organic groups

Ref: http://drupal.org/node/564734


1) Edit your settings.php and add the $conf['i18n_variables'] array as described here: Multilingual Variables.
2) Append to the list of variables the following list:

  // Organic Groups.
  'og_new_node_subject',
  'og_new_node_body',
  'og_admin_email_subject',
  'og_admin_email_body',
  'og_approve_user_subject',
  'og_approve_user_body',
  'og_deny_user_subject',
  'og_deny_user_body',
  'og_invite_user_subject',
  'og_invite_user_body',
  'og_request_user_subject',
  'og_request_user_body',
  'og_new_admin_subject',
  'og_new_admin_body',

3) Now, visit admin/og/og in any language to configure OG email templates for that language. ie. saving this page from es/admin/og/og will save your email templates in spanish version of OG variables. save from fr/admin/og/og to save them in french, and so on.

BTW, if you're looking for a way to translate mail templates in Notifications/Messaging, then take a look at #265680: Translation of email templates . Needs testing and feedback! :) However, currently, only 4.x messaging is supported, which does not work with og.

Thursday, August 04, 2011

Install and config OG for group environment:
1) Install OG
2) Import translation files of og
3) Configure OG and related access control
3) Create content types and set their access control
4) Configure the blocks, appearances, location and moment to show up.

    May involve to use this snipps of code

$match = FALSE;
$pages = array('og');
$url = request_uri();

if ((arg(0) == 'node') && is_numeric(arg(1))) {
    $node = node_load(arg(1));
    $match = og_is_group_type($node->type);
}
foreach($pages as $page){
 // the path includes the sting in $pages
    if (strpos($url, $page)) {
     $match = TRUE;
    }
}

return $match;



5) Use Node content (View attach module) to create blocks of content types in the group. Then use display suite to present blocks to the group view. This could create an organized view for the group.
5) Editing the user menu for og and the new deployed system
Translate and change the message and terms for your specific use case. Test subscription system and the messages.