символом.Возможно ли исправить это без полного переписания модуля?тоесть может тут что то с дивами не то.
function ShowRating($id, $rating, $vote_num, $allow = true) {
global $is_logged, $member_id, $config, $lang, $db;
if ($rating) $rating = round($rating, 0); else $rating = 0;
if (!$allow) {
//$rated = <<<HTML
// <div class="rati">
//<div class="ratig-layer">{$rating}</div>
//</div>
HTML;
return $rated;
}
//if ($rating "0") {
$myclass = "2";
}
if ($rating > "100") {
$myclass = "3";
}
//$rated .= <<<HTML
//<div class="rati{$myclass}">
//<div id="ratig-layer-{$id}">
//<div class="ratig-layer">
//[url=#%20class=]-[/url]
//{$rating}
// [url=#%20class=]+[/url]
//</div>
//</div>
//</div>
HTML;
return $rated;
//}
function ShortRating($id, $rating, $vote_num, $allow = true) {
global $config, $lang;
if ($rating) $rating = round($rating, 0); else $rating = 0;
if (!$allow) {
//$rated = <<<HTML
//<div class="rati">
//<div class="ratig-layer">{$rating}</div>
//</div>
HTML;
return $rated;
}
//if ($rating "0") {
$myclass = "2";
}
if ($rating > "100") {
$myclass = "3";
}
//$rated = "<div id="ratig-layer-">";
//$rated .= <<<HTML
//<div class="rati{$myclass}">
//<div class="ratig-layer">
// [url=#%20class=]-[/url]
//{$rating}
// [url=#%20class=]+[/url]
//</div>
//</div>
HTML;
$rated .= "</div>";
return $rated;
//}
function userrating($name) {
global $db;
$row = $db->super_query("SELECT SUM(rating) as rating, SUM(vote_num) as num FROM " . PREFIX . "_post where autor ='$name'");
if ($row['num']) $rating = round(($row['rating'] / $row['num']), 0); else $rating = 0;
$rating = $rating * 17;
//$rated = <<<HTML
//{$rating}
HTML;
return $rated;
}