<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB по-русски - [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
		<link>http://punbb.ru/topic1336-reliz-anycode-tool-100-beta.html</link>
		<atom:link href="http://punbb.ru/feed-rss-topic1336.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «[Релиз] AnyCode Tool (1.0.0 Beta)».]]></description>
		<lastBuildDate>Mon, 07 May 2012 15:50:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post34882.html#p34882</link>
			<description><![CDATA[<div class="quotebox"><cite>hcs пишет:</cite><blockquote><p>Как же вы попробовали если он не указал что куда ставить??<br />Там предлагается не решение а полноценное расширение, единственно что отсутствуют заголовки манифеста.</p></blockquote></div><p>Так и пробовал за место вашего ставить - в итоге форум ломался.<br />Ставил в две части как у Вас старт и конец..Ставил как отдельное расширение полноценное - хук - не работало.<br />Манифест?</p>]]></description>
			<author><![CDATA[null@example.com (Юрьевич_1)]]></author>
			<pubDate>Mon, 07 May 2012 15:50:46 +0000</pubDate>
			<guid>http://punbb.ru/post34882.html#p34882</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post34877.html#p34877</link>
			<description><![CDATA[<p>Как же вы попробовали если он не указал что куда ставить??<br />Там предлагается не решение а полноценное расширение, единственно что отсутствуют заголовки манифеста.</p>]]></description>
			<author><![CDATA[null@example.com (hcs)]]></author>
			<pubDate>Mon, 07 May 2012 14:04:33 +0000</pubDate>
			<guid>http://punbb.ru/post34877.html#p34877</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post34867.html#p34867</link>
			<description><![CDATA[<p><strong>yandrey</strong><br />Попробовал ваше решение - не работает.<br />Что куда ставить Вы не указали.<br />Версия форума 1.4.2</p>]]></description>
			<author><![CDATA[null@example.com (Юрьевич_1)]]></author>
			<pubDate>Mon, 07 May 2012 11:40:03 +0000</pubDate>
			<guid>http://punbb.ru/post34867.html#p34867</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post34003.html#p34003</link>
			<description><![CDATA[<p>да, solution enabled, hook enable</p><p>странно, но я пишу туда что угодно, и ошибки не возникает</p>]]></description>
			<author><![CDATA[null@example.com (floop)]]></author>
			<pubDate>Thu, 15 Mar 2012 09:24:56 +0000</pubDate>
			<guid>http://punbb.ru/post34003.html#p34003</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post34002.html#p34002</link>
			<description><![CDATA[<p>Решение активировано?</p>]]></description>
			<author><![CDATA[null@example.com (hcs)]]></author>
			<pubDate>Thu, 15 Mar 2012 09:19:01 +0000</pubDate>
			<guid>http://punbb.ru/post34002.html#p34002</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post34001.html#p34001</link>
			<description><![CDATA[<p>установил на 1.4.2<br /><strong>что требуется:</strong><br />один IP - один пользователь, то есть если с IP была регистрация, запретить регистироваться повторно.</p><p><strong>файл:</strong><br />forum/register.php</p><p><strong>хук:</strong><br />rg_register_qr_check_register_flood</p><p><strong>код:</strong> </p><div class="codebox"><pre><code>$query[&#039;WHERE&#039;] = &#039;u.registration_ip=\&#039;&#039;.$forum_db-&gt;escape(get_remote_address()).&#039;\&#039;&#039;;</code></pre></div><p>сейчас код прописан в файле после хука, а когда копирую в anycode tool то не срабатывает</p>]]></description>
			<author><![CDATA[null@example.com (floop)]]></author>
			<pubDate>Thu, 15 Mar 2012 09:13:30 +0000</pubDate>
			<guid>http://punbb.ru/post34001.html#p34001</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post32504.html#p32504</link>
			<description><![CDATA[<div class="quotebox"><cite>hcs пишет:</cite><blockquote><p><span class="bbu"><strong>Задача 5</strong></span><br />Кто сейчас просматривает эту тему?<br /><span class="bbu">Решение</span><br />Импровизация, за основу дёрнут код &quot;кто в онлайне&quot; из индекса.</p><p>Хук №1:<br /><strong>vt_start</strong></p><div class="codebox"><pre><code>    $query = array(
        &#039;SELECT&#039;    =&gt; &#039;o.user_id, o.ident&#039;,
        &#039;FROM&#039;        =&gt; &#039;online AS o&#039;,
        &#039;WHERE&#039;        =&gt; &#039;o.idle=0 AND o.prev_url=\&#039;&#039;.get_current_url(255).&#039;\&#039;&#039;,
        &#039;ORDER BY&#039;    =&gt; &#039;o.ident&#039;
    );

    $result = $forum_db-&gt;query_build($query) or error(__FILE__, __LINE__);
    $forum_page[&#039;num_guests&#039;] = $forum_page[&#039;num_users&#039;] = 0;
    $users = array();
    
    while ($forum_user_online = $forum_db-&gt;fetch_assoc($result))
    {
        
        if ($forum_user_online[&#039;user_id&#039;] &gt; 1)
        {
            $users[] = ($forum_user[&#039;g_view_users&#039;] == &#039;1&#039;) ? &#039;&lt;a href=&quot;&#039;.forum_link($forum_url[&#039;user&#039;], $forum_user_online[&#039;user_id&#039;]).&#039;&quot;&gt;&#039;.forum_htmlencode($forum_user_online[&#039;ident&#039;]).&#039;&lt;/a&gt;&#039; : forum_htmlencode($forum_user_online[&#039;ident&#039;]);
            ++$forum_page[&#039;num_users&#039;];
        }
        else
            ++$forum_page[&#039;num_guests&#039;];
    }

require_once FORUM_ROOT.&#039;lang/&#039;.$forum_user[&#039;language&#039;].&#039;/index.php&#039;;
    
    $forum_page[&#039;online_info&#039;] = array();
    $forum_page[&#039;online_info&#039;][&#039;guests&#039;] = ($forum_page[&#039;num_guests&#039;] == 0) ? $lang_index[&#039;Guests none&#039;] : sprintf((($forum_page[&#039;num_guests&#039;] == 1) ? $lang_index[&#039;Guests single&#039;] : $lang_index[&#039;Guests plural&#039;]), forum_number_format($forum_page[&#039;num_guests&#039;]));
    $forum_page[&#039;online_info&#039;][&#039;users&#039;] = ($forum_page[&#039;num_users&#039;] == 0) ? $lang_index[&#039;Users none&#039;] : sprintf((($forum_page[&#039;num_users&#039;] == 1) ? $lang_index[&#039;Users single&#039;] : $lang_index[&#039;Users plural&#039;]), forum_number_format($forum_page[&#039;num_users&#039;]));</code></pre></div><p>Хук №2: <strong>vt_end</strong><br /></p><div class="codebox"><pre><code>    ?&gt;
&lt;div id=&quot;brd-online&quot; class=&quot;gen-content&quot;&gt;
    &lt;h3 class=&quot;hn&quot;&gt;&lt;span&gt;&lt;?php printf($lang_index[&#039;Currently online&#039;], implode($lang_index[&#039;Online stats separator&#039;], $forum_page[&#039;online_info&#039;])) ?&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;?php if (!empty($users)): ?&gt;    &lt;p&gt;&lt;?php echo implode($lang_index[&#039;Online list separator&#039;], $users) ?&gt;&lt;/p&gt;
&lt;?php endif;?&gt;
&lt;/div&gt;
&lt;?php</code></pre></div><p>Во втором хуке можно <strong>$lang_index[&#039;Currently online&#039;]</strong> заменить на что-нибудь вроде &#039;<strong>Просматривают тему ( %s )&#039;</strong></p></blockquote></div><p>как то неправильно, ибо показывает только находящихся по точно такому url, на другой странице, через post - уже не в теме</p><p>сделал так:<br /></p><div class="codebox"><pre><code>    &lt;install&gt;&lt;![CDATA[
    
        $query = &#039;ALTER TABLE &#039;.$db_prefix.&#039;online ADD last_tid INT(10) UNSIGNED DEFAULT &quot;0&quot; NOT NULL&#039;;
        $forum_db-&gt;query($query) or error(__FILE__, __LINE__);
        
    ]]&gt;&lt;/install&gt;
    
    &lt;uninstall&gt;&lt;![CDATA[
    
        $query = &#039;ALTER TABLE &#039;.$db_prefix.&#039;online DROP last_tid&#039;;
        $forum_db-&gt;query($query) or error(__FILE__, __LINE__);
        
    ]]&gt;&lt;/uninstall&gt; 


    &lt;hooks&gt;

        &lt;hook id=&quot;fn_cookie_login_qr_update_online_user, fn_set_default_user_qr_update_online_guest_user&quot;&gt;&lt;![CDATA[

                    $query[&#039;SET&#039;] .= &#039;, last_tid=0&#039;;

        ]]&gt;&lt;/hook&gt;

        &lt;hook id=&quot;vt_end&quot;&gt;&lt;![CDATA[

    $user_ident = ($forum_user[&#039;id&#039;]==1) ? &#039; AND ident=\&#039;&#039;.$forum_db-&gt;escape(get_remote_address()).&#039;\&#039;&#039; : &#039;&#039;;
    $query = array(
        &#039;UPDATE&#039;    =&gt; &#039;online&#039;,
        &#039;SET&#039;        =&gt; &#039;last_tid=&#039;.$id,
        &#039;WHERE&#039;        =&gt; &#039;user_id=&#039;.$forum_user[&#039;id&#039;].$user_ident
        );

    $forum_db-&gt;query_build($query) or error(__FILE__, __LINE__);

    $query = array(
        &#039;SELECT&#039;    =&gt; &#039;o.user_id, o.ident&#039;,
        &#039;FROM&#039;        =&gt; &#039;online AS o&#039;,
        &#039;WHERE&#039;        =&gt; &#039;o.idle=0 AND o.last_tid=&#039;.$id
    );

    $result = $forum_db-&gt;query_build($query) or error(__FILE__, __LINE__);
    $forum_page[&#039;num_guests&#039;] = $forum_page[&#039;num_users&#039;] = 0;
    $users = array();
    
    while ($forum_user_online = $forum_db-&gt;fetch_assoc($result))
    {
        
        if ($forum_user_online[&#039;user_id&#039;] &gt; 1)
        {
            $users[] = ($forum_user[&#039;g_view_users&#039;] == &#039;1&#039;) ? &#039;&lt;a href=&quot;&#039;.forum_link($forum_url[&#039;user&#039;], $forum_user_online[&#039;user_id&#039;]).&#039;&quot;&gt;&#039;.forum_htmlencode($forum_user_online[&#039;ident&#039;]).&#039;&lt;/a&gt;&#039; : forum_htmlencode($forum_user_online[&#039;ident&#039;]);
            ++$forum_page[&#039;num_users&#039;];
        }
        else
            ++$forum_page[&#039;num_guests&#039;];
    }

require_once FORUM_ROOT.&#039;lang/&#039;.$forum_user[&#039;language&#039;].&#039;/index.php&#039;;
    
    $forum_page[&#039;online_info&#039;] = array();
    $forum_page[&#039;online_info&#039;][&#039;guests&#039;] = ($forum_page[&#039;num_guests&#039;] == 0) ? $lang_index[&#039;Guests none&#039;] : sprintf((($forum_page[&#039;num_guests&#039;] == 1) ? $lang_index[&#039;Guests single&#039;] : $lang_index[&#039;Guests plural&#039;]), forum_number_format($forum_page[&#039;num_guests&#039;]));
    $forum_page[&#039;online_info&#039;][&#039;users&#039;] = ($forum_page[&#039;num_users&#039;] == 0) ? $lang_index[&#039;Users none&#039;] : sprintf((($forum_page[&#039;num_users&#039;] == 1) ? $lang_index[&#039;Users single&#039;] : $lang_index[&#039;Users plural&#039;]), forum_number_format($forum_page[&#039;num_users&#039;]));


?&gt;
&lt;div class=&quot;gen-content&quot;&gt;
  &lt;h2 class=&quot;hn&quot;&gt;&lt;span&gt;&lt;?php printf($lang_index[&#039;Currently online&#039;], implode($lang_index[&#039;Online stats separator&#039;], $forum_page[&#039;online_info&#039;])) ?&gt;&lt;/span&gt;
&lt;?php if (!empty($users)): ?&gt;     —  &lt;span&gt;&lt;?php echo implode($lang_index[&#039;Online list separator&#039;], $users) ?&gt;&lt;/span&gt;
&lt;?php endif;?&gt;
 &lt;/h2&gt;
&lt;/div&gt;
&lt;?php
        ]]&gt;&lt;/hook&gt;




    &lt;/hooks&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yandrey)]]></author>
			<pubDate>Tue, 13 Dec 2011 16:23:54 +0000</pubDate>
			<guid>http://punbb.ru/post32504.html#p32504</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post32246.html#p32246</link>
			<description><![CDATA[<p><strong>dre@mer</strong>, <a href="http://punbb.ru/topic4313-zapros-anycode-tool.html">[запрос] AnyCode Tool</a></p>]]></description>
			<author><![CDATA[null@example.com (kmbxxx)]]></author>
			<pubDate>Fri, 25 Nov 2011 17:16:57 +0000</pubDate>
			<guid>http://punbb.ru/post32246.html#p32246</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post32239.html#p32239</link>
			<description><![CDATA[<p>В версии 1.4&nbsp; AnyCode Tool&nbsp; работает?</p>]]></description>
			<author><![CDATA[null@example.com (dre@mer)]]></author>
			<pubDate>Thu, 24 Nov 2011 18:18:24 +0000</pubDate>
			<guid>http://punbb.ru/post32239.html#p32239</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post28490.html#p28490</link>
			<description><![CDATA[<p>ядро не хотельсь бы ковырять</p>]]></description>
			<author><![CDATA[null@example.com (Riff)]]></author>
			<pubDate>Mon, 01 Nov 2010 09:52:11 +0000</pubDate>
			<guid>http://punbb.ru/post28490.html#p28490</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post28489.html#p28489</link>
			<description><![CDATA[<p>может тогда вручную вырезать из файлов разметку с этими тегами.</p>]]></description>
			<author><![CDATA[null@example.com (KANekT)]]></author>
			<pubDate>Mon, 01 Nov 2010 09:46:11 +0000</pubDate>
			<guid>http://punbb.ru/post28489.html#p28489</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post28487.html#p28487</link>
			<description><![CDATA[<p>в принципе логично... но маньяки всякие бывают <img src="http://punbb.ru/img/smilies/smile.png" width="15" height="15" alt="smile" />)) и файрбаком такое проскочить как нефиг</p>]]></description>
			<author><![CDATA[null@example.com (Riff)]]></author>
			<pubDate>Mon, 01 Nov 2010 09:03:49 +0000</pubDate>
			<guid>http://punbb.ru/post28487.html#p28487</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post28485.html#p28485</link>
			<description><![CDATA[<p>самый простой способ через css сделать эти блоки невидимыми</p>]]></description>
			<author><![CDATA[null@example.com (hcs)]]></author>
			<pubDate>Mon, 01 Nov 2010 08:51:53 +0000</pubDate>
			<guid>http://punbb.ru/post28485.html#p28485</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post28484.html#p28484</link>
			<description><![CDATA[<p>Подскажите пожалуйста как скрыть в профиле и в его редактировании поле &quot;Местонахождение&quot;?</p>]]></description>
			<author><![CDATA[null@example.com (Riff)]]></author>
			<pubDate>Mon, 01 Nov 2010 08:41:39 +0000</pubDate>
			<guid>http://punbb.ru/post28484.html#p28484</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Релиз] AnyCode Tool (1.0.0 Beta)]]></title>
			<link>http://punbb.ru/post28132.html#p28132</link>
			<description><![CDATA[<p>оно не работает в эксплорере</p>]]></description>
			<author><![CDATA[null@example.com (bubka)]]></author>
			<pubDate>Thu, 23 Sep 2010 04:49:19 +0000</pubDate>
			<guid>http://punbb.ru/post28132.html#p28132</guid>
		</item>
	</channel>
</rss>

