Download & Extend

OG Moderate ported to Drupal 6?

Project:OG Modr8
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:content control, moderation, Organic Groups, permissions, published

Issue Summary

Will this module be ported to Drupal 6?

Comments

#1

Surely it will be ported to Drupal 6. I was highly busy earning "money" for past sometime. I expect to get enough free time in march to port the module.

#2

Any news? I mean this release is strongly awaited.

#3

Is this is the end of this module?

#4

From the sound of it, OG itself isn't getting any updates except for Drupal 7.

Here's an exported Drupal 6 view (made using Views 2) for a Modr8 block for OG admins:

$view = new view;
$view->name = 'og_moderatelink';
$view->description = 'Moderation Link for Group Admins';
$view->tag = 'og';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'changed' => array(
    'order' => 'DESC',
    'granularity' => 'second',
    'id' => 'changed',
    'table' => 'node',
    'field' => 'changed',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'group_nid' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'og_group_node',
    'default_argument' => '',
    'validate_type' => 'og_group_types',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    'not' => 0,
    'id' => 'group_nid',
    'table' => 'og_ancestry',
    'field' => 'group_nid',
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => 'if ($node = og_get_group_context()) {
                return $node->nid;
              }
              else {
                return NULL;
              }',
    'validate_argument_node_type' => array(
      'webform' => 0,
      'article' => 0,
      'front' => 0,
      'front_content' => 0,
      'granite_color' => 0,
      'group_photo' => 0,
      'guest_book' => 0,
      'memories' => 0,
      'monument' => 0,
      'page' => 0,
      'photo_memories' => 0,
      'remember_me' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '2' => 0,
      '1' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_is_member' => 'OG_VIEWS_VALIDATE_GROUP_ADMIN',
    'validate_argument_php' => '',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '8' => 0,
      '6' => 0,
      '4' => 0,
      '5' => 0,
      '7' => 0,
      '3' => 0,
    ),
    'override' => array(
      'button' => 'Override',
    ),
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_group_node_type' => array(
      'remember_me' => 0,
    ),
  ),
));
$handler->override_option('filters', array(
  'moderate' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'moderate',
    'table' => 'node',
    'field' => 'moderate',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
  'role' => array(),
  'perm' => '',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Posts In Moderation');
$handler->override_option('use_pager', 'mini');
$handler->override_option('style_plugin', 'list');
$handler->override_option('style_options', array(
  'grouping' => '',
  'type' => 'ul',
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', 'In Moderation');
$handler->override_option('block_caching', -1);

It may need some tweaking to work with your particular set up, but it's a starting point. I used this to create a block for OG admins, which shows a list of nodes in moderation with a pager if it goes over the pre-set limit. If you don't configure anything differently in the block visibility settings it will show on all pages within a given group. (Only to admins.)

This is necessary because otherwise OG users can't see the moderation queue without administer nodes permissions. (Not something you want to give out to anyone but the site admin.)

Hope it helps to post this. Please leave this here, I spent quite a bit of time researching this issue this week and this is the most visible place to put it for others who are feeling the same pain. There are similar things posted elsewhere but at this point they are all quite old and used Views 1.

nobody click here