Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In 6.x-1.0-rc1 version of this module there is no possibility to use "Value" field in Views module "Filter" section.
If you need this functionality you have to replace the rows in user_stats.views.inc file started at row 38.
// Value field.
$data['user_stats_values']['value'] = array(
'title' => t('Value'),
'help' => t('Statistic value'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
with this
// Value field.
$data['user_stats_values']['value'] = array(
'title' => t('Value'),
'help' => t('Statistic value'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
Comments
Comment #1
Liam McDermott CreditAttribution: Liam McDermott commentedFixed, thanks!
Comment #2
Liam McDermott CreditAttribution: Liam McDermott commentedMarked #512520: Views2 filter for post count a duplicate of this.
Comment #4
shaunpv CreditAttribution: shaunpv commentedOk this showed me the view but i cant get users to show how should i set it for if a user has loged in one time show... i tried equal to or greater than 1 ...