After I activated OG Menu and went to Edit Menus, all my blocks that I had positioned where set to 'Left', and a PHP snippet had been inserted to determine where to display them. I don't have the time to look through the code at this moment, but there seems to be some work left.

Using Drupal 5.3, OG 5.x-4.0.

Comments

leonk’s picture

For the project I was working on I initially had it set to left (because that was where the menu was). I hadn't taken into account the possibility to adding the menu to a different region.

This is something that can be fixed. I will work on it so that OG Menu does not keep moving the menus.

andyschm’s picture

og menu completely screwed up my block configuration as well... *sigh*

I don't understand why this module is in the system at all, since it clearly isn't release ready.

pivica’s picture

Version: 5.x-1.x-dev » 5.x-1.2

I tried 5.x-1.2 version and in one moment something went wrong and og_menu added php code to most of existing blocks (enabled and disabled) in my drupal installation. Code it added is

<?php

  if (arg(0) == 'node' && is_numeric(arg(1))) {
    $nid = arg(1);
  }
  else {
    $path = request_uri();
    $path = drupal_get_normal_path(drupal_substr($path, 1));
    $nid = drupal_substr($path, 5);
  }

  if (!empty($nid) && arg(0) != 'admin' && arg(0) != 'user' && arg(1) != 'add'){
    $node = node_load($nid);
  }

  $groups = $node->og_groups;
  if(empty($groups) && og_menu_is_group_type($node->type) === TRUE){
    $groups = (int) $node->nid;
  }

  if (isset($groups)){
    if (is_array($groups) && $groups[0] == ){
      return TRUE;
    }
    elseif(is_numeric($groups) && $groups == ) {
      return TRUE;
    }
    else {
      return FALSE;
    }
  }
  else {
    return FALSE;
  }

?>

So definitly this module is not for production use.

jide’s picture

Status: Active » Closed (won't fix)

Closing old 1.x issues.