by
KK » Tue Oct 14, 2014 1:44 am
@atisz,
For now, the only recourse would be to make changes to the code itself.
For example, to make the number of options 15 instead of the default 10, try making changes to the following two locations in 'votes.php' -
Line 515
if( $FUNCS->is_natural($val) && $val<10){
make it
if( $FUNCS->is_natural($val) && $val<15){
Line 576
$vars = $this->_get_named_vars(
array(
'count'=>'0',
'count_0'=>'0',
'count_1'=>'0',
'count_2'=>'0',
'count_3'=>'0',
'count_4'=>'0',
'count_5'=>'0',
'count_6'=>'0',
'count_7'=>'0',
'count_8'=>'0',
'count_9'=>'0',
),
$rs);
// values in percentage
for( $x=0; $x<10; $x++ ){
$vars['percent_'.$x] = ( $vars['count'] ) ? sprintf( "%d", $vars['count_'.$x] / $vars['count'] * 100 ) : 0;
}
make it -
$vars = $this->_get_named_vars(
array(
'count'=>'0',
'count_0'=>'0',
'count_1'=>'0',
'count_2'=>'0',
'count_3'=>'0',
'count_4'=>'0',
'count_5'=>'0',
'count_6'=>'0',
'count_7'=>'0',
'count_8'=>'0',
'count_9'=>'0',
'count_10'=>'0',
'count_11'=>'0',
'count_12'=>'0',
'count_13'=>'0',
'count_14'=>'0',
),
$rs);
// values in percentage
for( $x=0; $x<15; $x++ ){
$vars['percent_'.$x] = ( $vars['count'] ) ? sprintf( "%d", $vars['count_'.$x] / $vars['count'] * 100 ) : 0;
}
Does this help?