Active
Project:
User Stats
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2010 at 18:13 UTC
Updated:
27 Oct 2011 at 13:51 UTC
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 commentedFixed, thanks!
Comment #2
liam mcdermott commentedMarked #512520: Views2 filter for post count a duplicate of this.
Comment #4
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 ...