Ещё один симпатичный рейтинг для DLEЗалейте файлы в шаблон.
В engine.css в самом конце добавляем:
/*---Reitingas---*/
#ratig-layer {
font-family: Tahoma,Geneva,sans-serif;font-size:75%;line-height:1.75em;
font-weight: bold;
padding-right: 5px;}
#ratig-layer a, #ratig-layer a:hover {text-decoration: none;}
.positive { color: #fff; padding:0 6px;
background: url("../dleimages/voting.png") no-repeat; background-position:0 -28px;
height: 28px; line-height: 26px;display: block;float: left;
}
.negative { color: #fff; padding:0 8px;
background: url("../dleimages/voting.png") no-repeat; background-position:0 -56px;
height: 28px; line-height: 26px;display: block;float: left;
}
.noll { color: #fff; padding:0 10px;
background: url("../dleimages/voting.png") no-repeat; background-position:0 -84px;
height: 28px; line-height: 26px;display: block;float: left;
}
.plus {
width: 27px; height: 28px; float: left; display: block;
background: url("../dleimages/voting.png") no-repeat; background-position: -344px 0;
}
.plus:hover {
background-position: -344px -28px;
}
.minus {
width: 27px; height: 28px; float: left; display: block;
background: url("../dleimages/voting.png") no-repeat; background-position: -371px 0;
}
.minus:hover {
background-position: -371px -28px;
}
3. В engine/ajax/rating.php находим:
if( $go_rate > 5 or $go_rate < 1 ) $go_rate = 0;
Меняем на:
if( $go_rate > 5 or $go_rate < -1 ) $go_rate = 0;
4. В engine/modules/functions.php находим:
function ShowRating($id, $rating, $vote_num, $allow = true) { global $lang; if( $rating ) $rating = round( ($rating / $vote_num), 0 ); else $rating = 0; $rating = $rating * 17; if( ! $allow ) { $rated =