- activities and UR installed, bot latest versions
- Relationship type set up: follower, reciprocal, no approval required (creating twitter like follower relationships)
- set up site-wide activity stream (= all activities from all users) Works great.

- objective: create activity stream that filters all activities from people I follow

therefore
- add argument: Activity Access: Activity Context User
- add filter: Activity Access: User_relationships_api Access and set it to followers

Problem:
--> stream only shows MY activities, none of the activities of the people I follow...

Below is the views export:

$view = new view;
$view->name = 'all_activity';
$view->description = 'All activity on a site.';
$view->tag = 'activity';
$view->view_php = '';
$view->base_table = 'activity';
$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('relationships', array(
  'nid' => array(
    'label' => 'Node',
    'required' => 1,
    'id' => 'nid',
    'table' => 'activity',
    'field' => 'nid',
    'relationship' => 'none',
  ),
  'uid' => array(
    'label' => 'User',
    'required' => 1,
    'id' => 'uid',
    'table' => 'activity',
    'field' => 'uid',
    'relationship' => 'none',
  ),
));
$handler->override_option('fields', array(
  'picture' => array(
    'group_type' => 'group',
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'imagecache_preset' => '5',
    'exclude' => 0,
    'id' => 'picture',
    'table' => 'users',
    'field' => 'picture',
    'relationship' => 'uid',
  ),
  'message' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
    ),
    'exclude' => 0,
    'id' => 'message',
    'table' => 'activity_messages',
    'field' => 'message',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'aid' => array(
    'order' => 'DESC',
    'id' => 'aid',
    'table' => 'activity',
    'field' => 'aid',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'context_user' => array(
    'group_type' => 'group',
    'default_action' => 'ignore',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'current_user',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'break_phrase' => 1,
    'not' => 0,
    'id' => 'context_user',
    'table' => 'activity_access',
    'field' => 'context_user',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '3' => 0,
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'panel' => 0,
      'article' => 0,
      'book' => 0,
      'collection' => 0,
      'profile' => 0,
      'story' => 0,
      'video' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '5' => 0,
      '4' => 0,
      '3' => 0,
      '1' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_node_flag_name' => '*relationship*',
    'validate_argument_node_flag_test' => 'flaggable',
    'validate_argument_node_flag_id_type' => 'id',
    'validate_argument_user_flag_name' => '*relationship*',
    'validate_argument_user_flag_test' => 'flaggable',
    'validate_argument_user_flag_id_type' => 'id',
    'validate_argument_php' => '',
  ),
));
$handler->override_option('filters', array(
  'nid' => array(
    'operator' => '=',
    'value' => '',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'nid',
    'table' => 'node_access',
    'field' => 'nid',
    'relationship' => 'nid',
  ),
  'operation' => array(
    'operator' => 'in',
    'value' => array(
      'insert' => 'insert',
      'flag' => 'flag',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'operation',
    'table' => 'activity',
    'field' => 'operation',
    'relationship' => 'none',
  ),
  'value_user_relationships_api' => array(
    'group_type' => 'group',
    'operator' => '=',
    'value' => '',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'realms' => array(
      'user_relationships_1' => 'user_relationships_1',
    ),
    'id' => 'value_user_relationships_api',
    'table' => 'activity_access',
    'field' => 'value_user_relationships_api',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'This is the page title');
$handler->override_option('header', 'Start follwoing people to get updates from only those users that interest you');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 0);
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 25);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'picture' => 'picture',
    'message' => 'message',
  ),
  'info' => array(
    'picture' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'message' => array(
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
$handler->override_option('row_options', array(
  'inline' => array(
    'picture' => 'picture',
    'message' => 'message',
  ),
  'separator' => '',
  'hide_empty' => 0,
));
$handler->override_option('exposed_form', array(
  'type' => 'basic',
  'options' => array(),
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'activity/all');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));

Comments

ajayg’s picture

Please specify the exact version number of the activity adn UR module you are using. Just the latest is confusing since if you are using dev version there is no fixed version in that case you need to say which date you downloaded.
There are two versions of activity1 and activity2 and with latest Rc3, Activity 2 is only partially supported and lot of things are still in flux.

nitram079’s picture

Activity: 6.x-2.x-dev
UR: 6.x-1.0-rc3

ajayg’s picture

Then I would say this is duplicate and won't be resolved till following are resolved. If you have bandwidth and skillset please help reolve these by submitting patches.

#445698: Default view for activity2
#631772: friends Activities with UR and views

ajayg’s picture

Status: Active » Closed (duplicate)