<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Херли? :) &#187; CooperCMS</title>
	<atom:link href="http://herli.ru/category/web/coopercms/feed" rel="self" type="application/rss+xml" />
	<link>http://herli.ru</link>
	<description>херли нам, ☭ рабочим пацанам  =)</description>
	<lastBuildDate>Mon, 21 May 2012 03:47:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Скрываем недоступную информацию от гостей</title>
		<link>http://herli.ru/697-skryvaem-nedostupnuyu-informaciyu-ot-gostej.html</link>
		<comments>http://herli.ru/697-skryvaem-nedostupnuyu-informaciyu-ot-gostej.html#comments</comments>
		<pubDate>Mon, 14 May 2012 22:16:50 +0000</pubDate>
		<dc:creator>Dogma</dc:creator>
				<category><![CDATA[CooperCMS]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://herli.ru/?p=697</guid>
		<description><![CDATA[Добавить в дистрибутив (поправить конфиг, добавав разрешение на засекречивание информации от гостей) 1234567891011121314151617181920212223242526272829303132333435363738Открываем файл \engine\forum\sources\modules\show.last.php , идем на строку ~40 и после этого: &#160;Показать / Скрыть текст &#160; while ($row = $db-&#62;get_row ($result)) &#160; &#160; &#160; &#160; { вставляем вот это: &#160;Показать / Скрыть текст foreach(explode(':', $row['access_read']) as $ug) &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<sape_index><p><a href="http://herli.ru/697-skryvaem-nedostupnuyu-informaciyu-ot-gostej.html/girls-0070" rel="attachment wp-att-698"><img src="http://herli.ru/wp-content/uploads/2012/05/girls-0070-260x300.jpg" alt="" title="girls-0070" width="260" height="300" class="aligncenter size-medium wp-image-698" /></a><br />
Добавить в дистрибутив (поправить конфиг, добавав разрешение на засекречивание информации от гостей)<span id="more-697"></span></p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:450px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Открываем файл \engine\forum\sources\modules\show.last.php , идем на строку ~40 и после этого:<br />
&nbsp;Показать / Скрыть текст<br />
&nbsp; while ($row = $db-&gt;get_row ($result))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
вставляем вот это:<br />
&nbsp;Показать / Скрыть текст<br />
foreach(explode(':', $row['access_read']) as $ug)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $allowfs = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($member_id['user_group'] == $ug)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $allowfs = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!$allowfs)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $row['name'] = '&lt;b style=&quot;color:#b2b2b2&quot;&gt;Засекречено&lt;/b&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $row['last_poster_name'] = '&lt;i style=&quot;color:#b2b2b2&quot;&gt;Засекречено&lt;/i&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $row['author_topic'] = '&lt;u style=&quot;color:#b2b2b2&quot;&gt;Засекречено&lt;/u&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
а если хотите чтобы темы вообще не выводились, то вставляем это:<br />
&nbsp;Показать / Скрыть текст<br />
foreach(explode(':', $row['access_read']) as $ug)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $allowfs = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($member_id['user_group'] == $ug)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blank = '1';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!$blank)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (isset($left)) ? $left++ : $left = '1';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $lpid = $row['pid'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></td></tr></tbody></table></div>
</sape_index><!--context code-->]]></content:encoded>
			<wfw:commentRss>http://herli.ru/697-skryvaem-nedostupnuyu-informaciyu-ot-gostej.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Работа с модулями в движке</title>
		<link>http://herli.ru/514-rabota-s-modulyami-v-dvizhke.html</link>
		<comments>http://herli.ru/514-rabota-s-modulyami-v-dvizhke.html#comments</comments>
		<pubDate>Wed, 21 Jul 2010 18:42:34 +0000</pubDate>
		<dc:creator>Dogma</dc:creator>
				<category><![CDATA[CooperCMS]]></category>
		<category><![CDATA[параметр]]></category>
		<category><![CDATA[переменная]]></category>

		<guid isPermaLink="false">http://herli.ru/?p=514</guid>
		<description><![CDATA[Как передать значение в модуль через переменную? {include file=&#8221;engine/modules/module.php?show=value&#38;show2=value2&#8243;} это всё прекрасно, но как ловить переменные в модуле? все значения передаются через $_GET, но ловятся не гетом и реквестом, а самим движком, поймать значения можно конструкцией if ( $show ) $showid = intval( $show ); if ( $show2 ) $showid = intval( $show2 );]]></description>
			<content:encoded><![CDATA[<sape_index><p>Как передать значение в модуль через переменную? <span id="more-514"></span></p>
<blockquote><p>{include file=&#8221;engine/modules/module.php?show=value&amp;show2=value2&#8243;}</p></blockquote>
<p>это всё прекрасно, но как ловить переменные в модуле? все значения передаются через $_GET, но ловятся не гетом и реквестом, а самим движком, поймать значения можно конструкцией</p>
<blockquote><p>if ( $show ) $showid = intval( $show );<br />
if ( $show2 ) $showid = intval( $show2 );</p></blockquote>
</sape_index><!--context code-->]]></content:encoded>
			<wfw:commentRss>http://herli.ru/514-rabota-s-modulyami-v-dvizhke.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

