<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум АлаичЪ'а о SEO - Проблема с рейтингом DLE]]></title>
		<link>https://talk.alaev.info/topic/725/</link>
		<atom:link href="https://talk.alaev.info/feed/rss/topic/725/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Проблема с рейтингом DLE».]]></description>
		<lastBuildDate>Tue, 28 May 2013 07:47:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5383/#p5383</link>
			<description><![CDATA[<p><strong>admin</strong>, Отвечай!</p>]]></description>
			<author><![CDATA[null@example.com (Xnokie)]]></author>
			<pubDate>Tue, 28 May 2013 07:47:54 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5383/#p5383</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5220/#p5220</link>
			<description><![CDATA[<div class="quotebox"><cite>Xnokie пишет:</cite><blockquote><p>admin, Отвечай епт давай!!!</p></blockquote></div><div class="quotebox"><cite>admin пишет:</cite><blockquote><p>Ты совсем охренел что ли! Я теперь принципиально не буду отвечать...</p></blockquote></div><p>)))</p>]]></description>
			<author><![CDATA[null@example.com (Xnokie)]]></author>
			<pubDate>Tue, 21 May 2013 09:38:21 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5220/#p5220</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5211/#p5211</link>
			<description><![CDATA[<div class="quotebox"><cite>Xnokie пишет:</cite><blockquote><p>if ( $row[&#039;vote_num&#039;] == 0 ) $row[&#039;vote_num&#039;] = 1; // Кстати, этих строк так и должно быть 2е?</p></blockquote></div><p>Нет, должно быть один раз, но это ничего не меняет.</p><div class="quotebox"><cite>Xnokie пишет:</cite><blockquote><p>admin, Отвечай епт давай!!!</p></blockquote></div><p>Ты совсем охренел что ли! Я теперь принципиально не буду отвечать...</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Tue, 21 May 2013 02:51:03 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5211/#p5211</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5210/#p5210</link>
			<description><![CDATA[<p><strong>admin</strong>, Отвечай епт давай!!!</p>]]></description>
			<author><![CDATA[null@example.com (Xnokie)]]></author>
			<pubDate>Mon, 20 May 2013 23:11:42 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5210/#p5210</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5171/#p5171</link>
			<description><![CDATA[<div class="quotebox"><cite>admin пишет:</cite><blockquote><p>Не понял...</p></blockquote></div><p>Пробовал зашвыривать чистый functions.php <br />Вообще всю папку engine пробовал закидывать, насколько я понял это проблема в стилях...<br />Вот что в show.full:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><blockquote><p>if ( $row[&#039;vote_num&#039;] == 0 ) $row[&#039;vote_num&#039;] = 1;</p><p>if ( $row[&#039;vote_num&#039;] == 0 ) $row[&#039;vote_num&#039;] = 1; // <span style="color: RED">Кстати, этих строк так и должно быть 2е? </span></p> <br /><p>&nbsp; &nbsp; &nbsp; &nbsp; if( $row[&#039;allow_rate&#039;] ) { </p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tpl-&gt;set( &#039;{rating}&#039;, ShowRating( $row[&#039;id&#039;], $row[&#039;rating&#039;], $row[&#039;vote_num&#039;], $user_group[$member_id[&#039;user_group&#039;]][&#039;allow_rating&#039;] ) );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tpl-&gt;set( &#039;{vote-num}&#039;, &quot;&lt;span itemprop=\&quot;votes\&quot; id=\&quot;vote-num-id-&quot;.$row[&#039;id&#039;].&quot;\&quot;&gt;&quot;.$row[&#039;vote_num&#039;].&quot;&lt;/span&gt;&quot; );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tpl-&gt;set( &#039;[rating]&#039;, &quot;&quot; );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tpl-&gt;set( &#039;[/rating]&#039;, &quot;&quot; );</p><p>&nbsp; &nbsp; &nbsp; &nbsp; } else {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tpl-&gt;set( &#039;{rating}&#039;, &quot;&quot; );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tpl-&gt;set( &#039;{vote-num}&#039;, &quot;&quot; );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tpl-&gt;set_block( &quot;&#039;\\[rating\\](.*?)\\[/rating\\]&#039;si&quot;, &quot;&quot; );<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p></blockquote></div></div></div><p>А вот functions:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><blockquote><p>function ShowRating($id, $rating, $vote_num, $allow = true) {<br />&nbsp; &nbsp; global $lang;</p><p>&nbsp; &nbsp; if( $rating AND $vote_num ) $rating = round( ($rating / $vote_num), 0 );<br />&nbsp; &nbsp; else $rating = 4;<br />&nbsp; &nbsp; $AVERrating = $rating;<br />&nbsp; &nbsp; $rating = $rating * 17;</p><p>&nbsp; &nbsp; if( !$allow ) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $rated = &lt;&lt;&lt;HTML<br />&lt;div class=&quot;rating&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;ul class=&quot;unit-rating&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li class=&quot;current-rating&quot; style=&quot;width:{$rating}px;&quot;&gt;{$rating}&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />&lt;/div&gt;<br />HTML;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; return $rated;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; $rated = &lt;&lt;&lt;HTML<br />&lt;div id=&#039;ratig-layer-{$id}&#039;&gt;&lt;div class=&quot;rating&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;ul itemprop=&quot;rating&quot; itemscope itemtype=&quot;http://data-vocabulary.org/Rating&quot; class=&quot;unit-rating&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li itemprop=&quot;average&quot; class=&quot;current-rating&quot; style=&quot;width:{$rating}px;&quot;&gt;{$AVERrating}&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;{$lang[&#039;useless&#039;]}&quot; class=&quot;r1-unit&quot; onclick=&quot;doRate(&#039;1&#039;, &#039;{$id}&#039;); return false;&quot;&gt;1&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;{$lang[&#039;poor&#039;]}&quot; class=&quot;r2-unit&quot; onclick=&quot;doRate(&#039;2&#039;, &#039;{$id}&#039;); return false;&quot;&gt;2&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;{$lang[&#039;fair&#039;]}&quot; class=&quot;r3-unit&quot; onclick=&quot;doRate(&#039;3&#039;, &#039;{$id}&#039;); return false;&quot;&gt;3&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;{$lang[&#039;good&#039;]}&quot; class=&quot;r4-unit&quot; onclick=&quot;doRate(&#039;4&#039;, &#039;{$id}&#039;); return false;&quot;&gt;4&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li itemprop=&quot;best&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;{$lang[&#039;excellent&#039;]}&quot; class=&quot;r5-unit&quot; onclick=&quot;doRate(&#039;5&#039;, &#039;{$id}&#039;); return false;&quot;&gt;5&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />&lt;/div&gt;&lt;/div&gt;<br />HTML;</p><p>&nbsp; &nbsp; return $rated;<br />}</p><p>function userrating($id) {<br />&nbsp; &nbsp; global $db;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $row = $db-&gt;super_query( &quot;SELECT SUM(rating) as rating, SUM(vote_num) as num FROM &quot; . PREFIX . &quot;_post_extras WHERE user_id =&#039;{$id}&#039;&quot; );<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; if( $row[&#039;num&#039;] ) $rating = round( ($row[&#039;rating&#039;] / $row[&#039;num&#039;]), 0 );<br />&nbsp; &nbsp; else $rating = 0;<br />&nbsp; &nbsp; $rating = $rating * 17;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $rated = &lt;&lt;&lt;HTML<br />&lt;div class=&quot;rating&quot; style=&quot;display:inline;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;ul class=&quot;unit-rating&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li class=&quot;current-rating&quot; style=&quot;width:{$rating}px;&quot;&gt;{$rating}&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />HTML;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; return $rated;<br />}</p></blockquote></div></div></div><p>Ajax/rating.php:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><blockquote><p>&lt;?php</p><p>@session_start();<br />@error_reporting ( E_ALL ^ E_WARNING ^ E_NOTICE );<br />@ini_set ( &#039;display_errors&#039;, true );<br />@ini_set ( &#039;html_errors&#039;, false );<br />@ini_set ( &#039;error_reporting&#039;, E_ALL ^ E_WARNING ^ E_NOTICE );</p><p>define( &#039;DATALIFEENGINE&#039;, true );<br />define( &#039;ROOT_DIR&#039;, substr( dirname(&nbsp; __FILE__ ), 0, -12 ) );<br />define( &#039;ENGINE_DIR&#039;, ROOT_DIR . &#039;/engine&#039; );</p><p>$go_rate = intval( $_REQUEST[&#039;go_rate&#039;] );<br />$news_id = intval( $_REQUEST[&#039;news_id&#039;] );</p><p>if( $go_rate &gt; 5 or $go_rate &lt; 1 ) $go_rate = 0;<br />if( ! $go_rate or ! $news_id ) die( &quot;Hacking attempt!&quot; );</p><p>include ENGINE_DIR . &#039;/data/config.php&#039;;</p><p>if( $config[&#039;http_home_url&#039;] == &quot;&quot; ) {<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $config[&#039;http_home_url&#039;] = explode( &quot;engine/ajax/rating.php&quot;, $_SERVER[&#039;PHP_SELF&#039;] );<br />&nbsp; &nbsp; $config[&#039;http_home_url&#039;] = reset( $config[&#039;http_home_url&#039;] );<br />&nbsp; &nbsp; $config[&#039;http_home_url&#039;] = &quot;http://&quot; . $_SERVER[&#039;HTTP_HOST&#039;] . $config[&#039;http_home_url&#039;];</p><p>}</p><p>require_once ENGINE_DIR . &#039;/classes/mysql.php&#039;;<br />require_once ENGINE_DIR . &#039;/data/dbconfig.php&#039;;<br />require_once ENGINE_DIR . &#039;/modules/functions.php&#039;;</p><p>$_REQUEST[&#039;skin&#039;] = totranslit($_REQUEST[&#039;skin&#039;], false, false);</p><p>if( $_REQUEST[&#039;skin&#039;] ) {<br />&nbsp; &nbsp; if( @is_dir( ROOT_DIR . &#039;/templates/&#039; . $_REQUEST[&#039;skin&#039;] ) ) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $config[&#039;skin&#039;] = $_REQUEST[&#039;skin&#039;];<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; die( &quot;Hacking attempt!&quot; );<br />&nbsp; &nbsp; }<br />}</p><p>if( $config[&quot;lang_&quot; . $config[&#039;skin&#039;]] ) {<br />&nbsp; &nbsp; if ( file_exists( ROOT_DIR . &#039;/language/&#039; . $config[&quot;lang_&quot; . $config[&#039;skin&#039;]] . &#039;/website.lng&#039; ) ) {&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; include_once ROOT_DIR . &#039;/language/&#039; . $config[&quot;lang_&quot; . $config[&#039;skin&#039;]] . &#039;/website.lng&#039;;<br />&nbsp; &nbsp; } else die(&quot;Language file not found&quot;);<br />} else {<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; include_once ROOT_DIR . &#039;/language/&#039; . $config[&#039;langs&#039;] . &#039;/website.lng&#039;;</p><p>}<br />$config[&#039;charset&#039;] = ($lang[&#039;charset&#039;] != &#039;&#039;) ? $lang[&#039;charset&#039;] : $config[&#039;charset&#039;];</p><br /><p>//################# Определение групп пользователей<br />$user_group = get_vars( &quot;usergroup&quot; );</p><p>if( ! $user_group ) {<br />&nbsp; &nbsp; $user_group = array ();<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $db-&gt;query( &quot;SELECT * FROM &quot; . USERPREFIX . &quot;_usergroups ORDER BY id ASC&quot; );<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; while ( $row = $db-&gt;get_row() ) {<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $user_group[$row[&#039;id&#039;]] = array ();<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; foreach ( $row as $key =&gt; $value ) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $user_group[$row[&#039;id&#039;]][$key] = stripslashes($value);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; set_vars( &quot;usergroup&quot;, $user_group );<br />&nbsp; &nbsp; $db-&gt;free();<br />}</p><p>require_once ENGINE_DIR . &#039;/modules/sitelogin.php&#039;;</p><p>if( ! $is_logged ) $member_id[&#039;user_group&#039;] = 5;</p><p>if( ! $user_group[$member_id[&#039;user_group&#039;]][&#039;allow_rating&#039;] ) die( &quot;Hacking attempt!&quot; );</p><p>$_IP = $db-&gt;safesql( $_SERVER[&#039;REMOTE_ADDR&#039;] );<br />$member_id[&#039;name&#039;] = $db-&gt;safesql($member_id[&#039;name&#039;]);</p><p>if( $is_logged ) $where = &quot;member = &#039;{$member_id[&#039;name&#039;]}&#039;&quot;;<br />else $where = &quot;ip =&#039;{$_IP}&#039;&quot;;</p><p>$row = $db-&gt;super_query( &quot;SELECT news_id FROM &quot; . PREFIX . &quot;_logs where news_id =&#039;$news_id&#039; AND {$where}&quot; );</p><p>if( !$row[&#039;news_id&#039;] AND count( explode( &quot;.&quot;, $_IP ) ) == 4 ) {<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $db-&gt;query( &quot;UPDATE &quot; . PREFIX . &quot;_post_extras SET rating=rating+&#039;$go_rate&#039;, vote_num=vote_num+1 WHERE news_id =&#039;$news_id&#039;&quot; );</p><p>&nbsp; &nbsp; if ( $db-&gt;get_affected_rows() )&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; if( $is_logged ) $user_name = $member_id[&#039;name&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; else $user_name = &quot;noname&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $db-&gt;query( &quot;INSERT INTO &quot; . PREFIX . &quot;_logs (news_id, ip, member) values (&#039;$news_id&#039;, &#039;$_IP&#039;, &#039;$user_name&#039;)&quot; );</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if ( $config[&#039;allow_alt_url&#039;] == &quot;yes&quot; AND !$config[&#039;seo_type&#039;] ) $cprefix = &quot;full_&quot;; else $cprefix = &quot;full_&quot;.$news_id;&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; clear_cache( array( &#039;news_&#039;, &#039;rss&#039;, $cprefix ) );</p><p>&nbsp; &nbsp; }<br />}</p><p>$row = $db-&gt;super_query( &quot;SELECT news_id, rating, vote_num FROM &quot; . PREFIX . &quot;_post_extras WHERE news_id =&#039;$news_id&#039;&quot; );</p><p>if( $_REQUEST[&#039;mode&#039;] == &quot;short&quot; ) {<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $buffer = ShortRating( $row[&#039;news_id&#039;], $row[&#039;rating&#039;], $row[&#039;vote_num&#039;], false );</p><p>} else {<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $buffer = ShowRating( $row[&#039;news_id&#039;], $row[&#039;rating&#039;], $row[&#039;vote_num&#039;], false );</p><p>}</p><p>$db-&gt;close();</p><p>@header( &quot;Content-type: text/html; charset=&quot; . $config[&#039;charset&#039;] );<br />echo $buffer;<br />?&gt;</p></blockquote></div></div></div>]]></description>
			<author><![CDATA[null@example.com (Xnokie)]]></author>
			<pubDate>Sat, 18 May 2013 20:42:59 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5171/#p5171</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5161/#p5161</link>
			<description><![CDATA[<div class="quotebox"><cite>Xnokie пишет:</cite><blockquote><p>Пробовал заменять дело в том что!!!</p></blockquote></div><p>Не понял...</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Sat, 18 May 2013 17:55:26 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5161/#p5161</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5160/#p5160</link>
			<description><![CDATA[<div class="quotebox"><cite>admin пишет:</cite><blockquote><p>Так что лучше замени свой файл functions.php на чистый из дистрибутива. А потом и микроразметку добавишь, если надо.</p></blockquote></div><p>Пробовал заменять дело в том что!!!</p>]]></description>
			<author><![CDATA[null@example.com (Xnokie)]]></author>
			<pubDate>Sat, 18 May 2013 17:25:06 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5160/#p5160</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5145/#p5145</link>
			<description><![CDATA[<p><strong>Xnokie</strong>, Не в css тут дело, а в ошибке в файлах.<br />Так как значение 6 в твоем коде соответствует переменной $rating, которая в свою очередь равна:</p><div class="codebox"><pre><code>    if( $rating AND $vote_num ) $rating = round( ($rating / $vote_num), 0 );
    else $rating = 0;
    $rating = $rating * 17;</code></pre></div><p>Так что лучше замени свой файл functions.php на чистый из дистрибутива. А потом и микроразметку добавишь, если надо.</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Sat, 18 May 2013 07:25:03 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5145/#p5145</guid>
		</item>
		<item>
			<title><![CDATA[Проблема с рейтингом DLE]]></title>
			<link>https://talk.alaev.info/post/5143/#p5143</link>
			<description><![CDATA[<p>Доброе утро!<br />Убрал рейтинг от сандера и поставил обычный, однако в обычном не все так хорошо как хотелось бы. После голосования выводятся не 5ть,а 6ть или более звезд. Сколько звезд поставишь, настолько этот рейтинг и увеличивается. <br /></p><div class="quotebox"><blockquote><p>&lt;ul itemprop=&quot;rating&quot; itemscope=&quot;&quot; itemtype=&quot;http://data-vocabulary.org/Rating&quot; class=&quot;unit-rating&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: RED">&lt;li itemprop=&quot;average&quot; class=&quot;current-rating&quot; style=&quot;width:102px;&quot;&gt;6&lt;/li&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Плохо&quot; class=&quot;r1-unit&quot; onclick=&quot;doRate(&#039;1&#039;, &#039;542&#039;); return false;&quot;&gt;1&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Приемлемо&quot; class=&quot;r2-unit&quot; onclick=&quot;doRate(&#039;2&#039;, &#039;542&#039;); return false;&quot;&gt;2&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Средне&quot; class=&quot;r3-unit&quot; onclick=&quot;doRate(&#039;3&#039;, &#039;542&#039;); return false;&quot;&gt;3&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Хорошо&quot; class=&quot;r4-unit&quot; onclick=&quot;doRate(&#039;4&#039;, &#039;542&#039;); return false;&quot;&gt;4&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;li itemprop=&quot;best&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;Отлично&quot; class=&quot;r5-unit&quot; onclick=&quot;doRate(&#039;5&#039;, &#039;542&#039;); return false;&quot;&gt;5&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;</p></blockquote></div><p>Вот CSS:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><blockquote><p>.rating {<br />&nbsp; &nbsp; width: 85px;<br />&nbsp; &nbsp; height: 17px;<br />&nbsp; &nbsp; font-size: 0.9em;<br />&nbsp; &nbsp; padding-top: 15px;<br />}</p><p>.unit-rating {<br />&nbsp; &nbsp; list-style: none;<br />&nbsp; &nbsp; margin: 0;<br />&nbsp; &nbsp; padding: 0;<br />&nbsp; &nbsp; width: 85px;<br />&nbsp; &nbsp; height: 17px;<br />&nbsp; &nbsp; position: relative;<br />&nbsp; &nbsp; background: url(&quot;../dleimages/rating.png&quot;) repeat-x;<br />}</p><p>.unit-rating li {<br />&nbsp; &nbsp; text-indent: -90000px;<br />&nbsp; &nbsp; padding: 0;<br />&nbsp; &nbsp; margin: 0;<br />&nbsp; &nbsp; float: left;<br />}</p><p>.unit-rating li a {<br />&nbsp; &nbsp; display: block;<br />&nbsp; &nbsp; width: 17px;<br />&nbsp; &nbsp; height: 17px;<br />&nbsp; &nbsp; text-decoration: none;<br />&nbsp; &nbsp; text-indent: -9000px;<br />&nbsp; &nbsp; z-index: 17;<br />&nbsp; &nbsp; position: absolute;<br />&nbsp; &nbsp; padding: 0;<br />}</p><p>.unit-rating li a:hover {<br />&nbsp; &nbsp; background: url(&quot;../dleimages/rating.png&quot;) 0 -17px;<br />&nbsp; &nbsp; z-index: 2;<br />&nbsp; &nbsp; left: 0;<br />}</p><p>.unit-rating a.r1-unit {<br />&nbsp; &nbsp; left: 0;<br />}</p><p>.unit-rating a.r1-unit:hover {<br />&nbsp; &nbsp; width:17px;<br />}</p><p>.unit-rating a.r2-unit {<br />&nbsp; &nbsp; left: 17px;<br />}</p><p>.unit-rating a.r2-unit:hover {<br />&nbsp; &nbsp; width: 34px;<br />}</p><p>.unit-rating a.r3-unit {<br />&nbsp; &nbsp; left: 34px;<br />}</p><p>.unit-rating a.r3-unit:hover {<br />&nbsp; &nbsp; width: 51px;<br />}</p><p>.unit-rating a.r4-unit {<br />&nbsp; &nbsp; left: 51px;<br />}</p><p>.unit-rating a.r4-unit:hover {<br />&nbsp; &nbsp; width: 68px;<br />}</p><p>.unit-rating a.r5-unit {<br />&nbsp; &nbsp; left: 68px;<br />}</p><p>.unit-rating a.r5-unit:hover {<br />&nbsp; &nbsp; width: 85px;<br />}</p><p>.unit-rating li.current-rating {<br />&nbsp; &nbsp; background: url(&quot;../dleimages/rating.png&quot;) 0 -34px;<br />&nbsp; &nbsp; position: absolute;<br />&nbsp; &nbsp; height: 17px;<br />&nbsp; &nbsp; display: block;<br />&nbsp; &nbsp; text-indent: -9000px;<br />&nbsp; &nbsp; z-index: 1;<br />}</p></blockquote></div></div></div><p>Подскажите как поправить пожалуйста</p>]]></description>
			<author><![CDATA[null@example.com (Xnokie)]]></author>
			<pubDate>Sat, 18 May 2013 03:12:22 +0000</pubDate>
			<guid>https://talk.alaev.info/post/5143/#p5143</guid>
		</item>
	</channel>
</rss>
