Hi,

Just love your module, thank you.

I'm trying to create a page view (most forwarded) where users can see the links of most forwarded links. Unfortunately the view turns up blank.

When I have a look at admin/reports/forward the forwards show, but message 'No one has used Forward yet.'

(see attached screenshot.)

I've exported the view here.

$view = new view;
$view->name = 'forward_forwards';
$view->description = 'Display most forwarded nodes';
$view->tag = '';
$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', 'Most Emailed', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'forward_count' => array(
    'label' => 'Forwards',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => ',',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'forward_count',
    'table' => 'forward_statistics',
    'field' => 'forward_count',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'forward_count' => array(
    'order' => 'DESC',
    'id' => 'forward_count',
    'table' => 'forward_statistics',
    'field' => 'forward_count',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'status_extra' => array(
    'id' => 'status_extra',
    'table' => 'node',
    'field' => 'status_extra',
  ),
  'forward_count' => array(
    'operator' => '>=',
    'value' => array(
      'value' => '0',
      'min' => '',
      'max' => '',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'forward_count',
    'table' => 'forward_statistics',
    'field' => 'forward_count',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'article' => 'article',
      'casting' => 'casting',
      'equipment' => 'equipment',
      'event' => 'event',
      'jobs' => 'jobs',
      'profile' => 'profile',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
  'role' => array(),
  'perm' => '',
));
$handler->override_option('title', 'Most Emailed');
$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(
    'title' => 'title',
    'forward_count' => 'forward_count',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'forward_count' => array(
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'popular/forward');
$handler->override_option('menu', array(
  'type' => 'tab',
  'title' => 'Most Emailed',
  'description' => '',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));

Any help to make the view show would be most appreciated.

Lilian

CommentFileSizeAuthor
screenshot.gif38.03 KBliliplanet

Comments

liliplanet’s picture

bump *sorry* .. really would like to make this work :)

seanr’s picture

Can you try using the default view which comes with the module? It appears to be working fine on my test site. Also, verify the data in Administer -> Reports -> Forward Tracking.

seanr’s picture

Status: Active » Postponed (maintainer needs more info)
john.oltman’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)