<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<channel>
			<title>Не квадратные аватары для блога / Вопросы, проблемы и их решения / Alto CMS</title>
			<link>http://altocms.ru/comments/687/</link>
			<description><![CDATA[Как сделать, чтобы аватар для блога не кропался? Нужно выводить аватары с другим соотношением сторон, нежели квадратные]]></description>
			<language>ru</language>
			<managingEditor>noreply@altocms.ru</managingEditor>
			<webMaster>noreply@altocms.ru</webMaster>
			<generator>Alto CMS v.1.5.0b1</generator>
							<item>
					<title>Не квадратные аватары для блога (comment #12481)</title>
					<guid isPermaLink="true">http://altocms.ru/t/687/#comment12481</guid>
					<link>http://altocms.ru/687.html#comment12481</link>
					<author>andreyv@gladcode.ru</author>
					<description><![CDATA[Нужно сделать следующее:<br/>
1. Убедитесь, что в вашей копии движка строчка 1180 <a href="https://github.com/altocms/altocms/blob/master/engine/include/functions/File.php#L1180" rel="nofollow" >этого файла</a> такая же, если нет, то обновите движок до последней версии.<br/>
<br/>
2. <a href="https://github.com/altocms/altocms/blob/master/common/classes/modules/blog/Blog.class.php#L1234" rel="nofollow" >Эту строчку</a> меняем на <pre class="prettyprint"><code>if ($sFileTmp && ($oImg = $this-&gt;Img_Read($sFileTmp))) {</code></pre><br/>
<br/>
3. <a href="https://github.com/altocms/altocms/blob/master/common/config/config.php#L306" rel="nofollow" >В конфиге</a> задаем нужный размер как сказано здесь: <a href="http://altocms.ru/420.html" rel="nofollow" >http://altocms.ru/420.html</a>. А лучше эту строку конфига перенести в файл конфигурации приложения «app/config/config.local.php»<br/>
<br/>
4. В шаблоне выводим нужный размер аватарки.]]></description>
					<pubDate>Mon, 04 Aug 2014 03:02:10 +0400</pubDate>
									</item>
					</channel>
	</rss>
