ok.
i share this topsecret to everyone
so, list of files you must change:
1) components\com_flexicontent\controller.php
just replace in 431 string for
if (($user_rating >= 1) and ($user_rating <=
10))
2)components\com_flexicontent\classes\flexicontent.helper.php
.'.$class.' .fcvote ul {height:'.$dim.'px;width:'.(
10*$dim).'px;}
some strings below add 5 new strings:
Code:
<li><a href=\"javascript:void(null)\" onclick=\"javascript:FCVote(".$id.",6,".$rating_sum.",".$rating_count.",'".$xid."',".$counter.");\" title=\"".JText::_( 'FLEXI_VG1' )."\" class=\"six\">6</li>
<li><a href=\"javascript:void(null)\" onclick=\"javascript:FCVote(".$id.",7,".$rating_sum.",".$rating_count.",'".$xid."',".$counter.");\" title=\"".JText::_( 'FLEXI_VG2' )."\" class=\"seven\">7</li>
<li><a href=\"javascript:void(null)\" onclick=\"javascript:FCVote(".$id.",8,".$rating_sum.",".$rating_count.",'".$xid."',".$counter.");\" title=\"".JText::_( 'FLEXI_VG3' )."\" class=\"eight\">8</li>
<li><a href=\"javascript:void(null)\" onclick=\"javascript:FCVote(".$id.",9,".$rating_sum.",".$rating_count.",'".$xid."',".$counter.");\" title=\"".JText::_( 'FLEXI_VG4' )."\" class=\"nine\">9</li>
<li><a href=\"javascript:void(null)\" onclick=\"javascript:FCVote(".$id.",10,".$rating_sum.",".$rating_count.",'".$xid."',".$counter.");\" title=\"".JText::_( 'FLEXI_VG5' )."\" class=\"ten\">10</li>
in \components\com_flexicontent\assets\css\fcvote.css
replace old styles for this:
Code:
.fcvote li a.one{
margin: 0;
padding: 0;
width: 10%;
z-index: 10;
}
.fcvote li a.two{
margin: 0;
padding: 0;
width: 20%;
z-index: 9;
}
.fcvote li a.three{
margin: 0;
padding: 0;
width: 30%;
z-index: 8;
}
.fcvote li a.four{
margin: 0;
padding: 0;
width: 40%;
z-index: 7;
}
.fcvote li a.five{
margin: 0;
padding: 0;
width: 50%;
z-index: 6;
}
.fcvote li a.six{
margin: 0;
padding: 0;
width: 60%;
z-index: 5;
}
.fcvote li a.seven{
margin: 0;
padding: 0;
width: 70%;
z-index: 4;
}
.fcvote li a.eight{
margin: 0;
padding: 0;
width: 80%;
z-index: 3;
}
.fcvote li a.nine{
margin: 0;
padding: 0;
width: 90%;
z-index: 2;
}
.fcvote li a.ten{
margin: 0;
padding: 0;
width: 100%;
z-index: 1;
}
and in
components\com_flexicontent\assets\js\fcvote.js
document.getElementById('rating_'+id+'_'+xid).style.width=parseInt(percentage*
10)+'%';
and (optional) you must add/change some strings in lang file (\language\en-GB\en-GB.com_flexicontent.ini - for English language)
FLEXI_VG1=6
FLEXI_VG2=7
FLEXI_VG3=8
FLEXI_VG4=9
FLEXI_VG5=10