Project:Content Recommendation Engine
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi, sorry for the double posting, but perhaps I should ask here.

I'm using JRating with Cru (thank you!) in terms of users voting/recommending other users. I would like a link on the users page that says 'Recommended by'.

Currently the view below shows 'My Recommendations' and would love it to be the other way around 'Recommended by' on the specific users page. Do I have to add 'distinct' or an 'argument' to show that specific user's recommendations? At a loss here ...

  $view = new stdClass();
  $view->name = 'recommendation';
  $view->description = 'Recommended by ..';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = 'Recommended by ...';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'table';
  $view->url = 'recommendation';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '10';
  $view->block = TRUE;
  $view->block_title = 'Recommended by';
  $view->block_header = '';
  $view->block_header_format = '1';
  $view->block_footer = '';
  $view->block_footer_format = '1';
  $view->block_empty = '';
  $view->block_empty_format = '1';
  $view->block_type = 'table';
  $view->nodes_per_block = '5';
  $view->block_more = TRUE;
  $view->block_use_page_header = FALSE;
  $view->block_use_page_footer = FALSE;
  $view->block_use_page_empty = FALSE;
  $view->sort = array (
  );
  $view->argument = array (
  );
  $view->field = array (
    array (
      'tablename' => 'jrating_votingapi_vote',
      'field' => 'uid',
      'label' => '',
    ),
    array (
      'tablename' => 'node_data_field_company',
      'field' => 'field_company_value',
      'label' => '',
      'handler' => 'content_views_field_handler_ungroup',
      'options' => 'default',
    ),
    array (
      'tablename' => 'term_node_2',
      'field' => 'name',
      'label' => '',
      'options' => 'link',
    ),
    array (
      'tablename' => 'term_node_1',
      'field' => 'name',
      'label' => '',
      'options' => 'link',
    ),
    array (
      'tablename' => 'votingapi_vote_vote_percent',
      'field' => 'value',
      'label' => '',
      'handler' => 'votingapi_views_formatter_cleaned',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'profile',
),
    ),
    array (
      'tablename' => 'jrating_votingapi_vote',
      'field' => 'uid',
      'operator' => '=',
      'options' => '',
      'value' => '***CURRENT_USER***',
    ),
    array (
      'tablename' => 'votingapi_vote_vote_percent',
      'field' => 'uid',
      'operator' => 'IS NOT NULL',
      'options' => '',
      'value' => '***ANY_USER***',
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(jrating_votingapi_vote, node_data_field_company, term_node_2, term_node_1, votingapi_vote_vote_percent, node);
  $views[$view->name] = $view;

Thank you for any reply, and thank you.
Lilian