Hey guys, I hacked the rating a little bit to show 10 stars. Files need to be modified: components/com_k2/css/k2.css components/com_k2/models/item.php components/com_k2/templates/default/item.php _______________________________________________ components/com_k2/css/k2.css line 60 change .itemRatingList {position:relative;float:left;width:125px;height:25px;overflow:hidden;list-style:none;margin:0;padding:0;background-position:left top;} to .itemRatingList {position:relative;float:left;width:250px;height:25px;overflow:hidden;list-style:none;margin:0;padding:0;background-position:left top;} starting from line 65 to 69 you'll find this block: .itemRatingList a.one-star {width:20%;z-index:6;} .itemRatingList a.two-stars {width:40%;z-index:5;} .itemRatingList a.three-stars {width:60%;z-index:4;} .itemRatingList a.four-stars {width:80%;z-index:3;} .itemRatingList a.five-stars {width:100%;z-index:2;} replace it with this: .itemRatingList a.one-star {width:10%;z-index:11;} .itemRatingList a.two-stars {width:20%;z-index:10;} .itemRatingList a.three-stars {width:30%;z-index:9;} .itemRatingList a.four-stars {width:40%;z-index:8;} .itemRatingList a.five-stars {width:50%;z-index:7;} .itemRatingList a.six-stars {width:60%;z-index:6;} .itemRatingList a.seven-stars {width:70%;z-index:5;} .itemRatingList a.eight-stars {width:80%;z-index:4;} .itemRatingList a.nine-stars {width:90%;z-index:3;} .itemRatingList a.ten-stars {width:100%;z-index:2;} _______________________________________________ components/com_k2/models/item.php line 911 change if ( $rate >= 1 && $rate <= 5) { to if ( $rate >= 1 && $rate <= 10) { _______________________________________________ components/com_k2/templates/default/item.php starting from line 184 to 188 you'll find this block:
  • 1
  • 2
  • 3
  • 4
  • 5
  • add this:
  • 6
  • 7
  • 8
  • 9
  • 10
  • Have fun :) PD. If you want to have this in your own language (for example, Spanish), you can change K2_1_STAR_OUT_OF_10 into 1 estrella de 10