Hello.
I saw that the module doesn't have any fields in "Views" (Which could be usefull for listing nodes using the click counts/nodes)
Maybe I'm missing something, or there's an easy way to activate it.

Thanks

Comments

veovis’s picture

Status: Active » Closed (fixed)

Well I made a views file myself in the end:

<?php
/**
* $Id: views_clicks.inc,v 1.00 2008/01/28 12:00:00 Pierre PIZZETTA Exp $
*/
function click_views_tables() {
    $tables['clicks'] = array(
        'name' => 'clicks',
        'provider' => 'internal',
    'join' => array(
      'left' => array(
        'table' => 'node',
        'field' => 'nid'
      ),
      'right' => array(
        'field' => 'nid'
      ),
    ),
        'fields' => array(
            'total_clicks' => array(
                'name' => t('Click: TotalCount'),
                'handler' => 'views_handler_click',
                'sortable' => false,
                'help' => t("Total Count of incoming clicks")
                ),
        )
    );
    return $tables;
}

function views_handler_click($fieldinfo, $fielddata, $value, $data) {
  return $value;
}
?>
abaddon’s picture

Version: 5.x-1.0 » 6.x-1.0
Status: Closed (fixed) » Needs work

this was never fixed, the 5.x version doesnt have views support, im guessing you closed the issue too soon