<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB по-русски &mdash; MOD: Modern BB Code]]></title>
		<link>http://punbb.ru/topic203-mod-modern-bb-code.html</link>
		<atom:link href="http://punbb.ru/feed-rss-topic203.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «MOD: Modern BB Code».]]></description>
		<lastBuildDate>Mon, 27 Sep 2010 11:11:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post28148.html#p28148</link>
			<description><![CDATA[<p><strong>Chravn</strong>, мод предназначен для версии 1.2.<br />К версии 1.3 он не подходит.</p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Mon, 27 Sep 2010 11:11:25 +0000</pubDate>
			<guid>http://punbb.ru/post28148.html#p28148</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post28147.html#p28147</link>
			<description><![CDATA[<p>При&nbsp; попытке установить MOD вижу<br /> </p><div class="codebox"><pre><code>Ошибка загрузки расширения «pun_modern_bb_code».
Отсутствует manifest.xml.</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Chravn)]]></author>
			<pubDate>Mon, 27 Sep 2010 10:22:01 +0000</pubDate>
			<guid>http://punbb.ru/post28147.html#p28147</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post24681.html#p24681</link>
			<description><![CDATA[<p>Подскажите что не так поставил punBB установил MOD: Modern BB Code скачал от сюда <a href="http://punbb.ru/redirect-be513d192ecccdb227085e3c2a45b2c4b07fc87f-24681.html" target="_blank">www.punres.org/files/projects/pr … v1.0.0.zip</a> и в постах пропал текст, при редактировании текст есть, но в постах не видно. помогите</p>]]></description>
			<author><![CDATA[null@example.com (astass)]]></author>
			<pubDate>Tue, 28 Jul 2009 11:18:12 +0000</pubDate>
			<guid>http://punbb.ru/post24681.html#p24681</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post22491.html#p22491</link>
			<description><![CDATA[<p>В ридми есть неточность. В стиле для Oxygen (возможно и в других) неправильно указан путь к картинкам (стрелки).</p>]]></description>
			<author><![CDATA[null@example.com (coordinator)]]></author>
			<pubDate>Wed, 04 Feb 2009 21:41:55 +0000</pubDate>
			<guid>http://punbb.ru/post22491.html#p22491</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post18689.html#p18689</link>
			<description><![CDATA[<div class="quotebox"><cite>hcs пишет:</cite><blockquote><p>Как ты думаешь, много ли людей обладает ясновидением и не видя ошибки могут определить причину?</p></blockquote></div><p>ты же у нас пророк...все знаешь, а логи не мешало бы глянуть</p>]]></description>
			<author><![CDATA[null@example.com (Nickola9)]]></author>
			<pubDate>Fri, 23 May 2008 15:21:11 +0000</pubDate>
			<guid>http://punbb.ru/post18689.html#p18689</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post18683.html#p18683</link>
			<description><![CDATA[<p>Как ты думаешь, много ли людей обладает ясновидением и не видя ошибки могут определить причину?</p>]]></description>
			<author><![CDATA[null@example.com (hcs)]]></author>
			<pubDate>Fri, 23 May 2008 00:52:53 +0000</pubDate>
			<guid>http://punbb.ru/post18683.html#p18683</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post18682.html#p18682</link>
			<description><![CDATA[<p>Установил все как надо, но почему-то выпадающие меню отказываются работать (размер, изображение, список и т.д)... Яваскрипт выдает ошибку.<br />В чем может быть причина?</p>]]></description>
			<author><![CDATA[null@example.com (Sunscreen)]]></author>
			<pubDate>Thu, 22 May 2008 21:39:56 +0000</pubDate>
			<guid>http://punbb.ru/post18682.html#p18682</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post18273.html#p18273</link>
			<description><![CDATA[<p>Нету(((((<br />я пользуюсь поиском...в wordpad</p><p>Черт,очень хороший мод,очень нужный....</p>]]></description>
			<author><![CDATA[null@example.com (SerebroSuper)]]></author>
			<pubDate>Tue, 06 May 2008 17:17:35 +0000</pubDate>
			<guid>http://punbb.ru/post18273.html#p18273</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post18272.html#p18272</link>
			<description><![CDATA[<p>Так, хорошо, по порядку. Эту строку найди в post.php:<br /></p><div class="codebox"><pre><code>&lt;label&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Message&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;</code></pre></div><p>По моему, без нее никак. Она должна там быть. Если найдешь, запости строчек десять, чтоб где-то в середине была найденная строка.<br />Если не найдешь, я пас. Возможно, кто-то другой сможет помочь.</p>]]></description>
			<author><![CDATA[null@example.com (nobody)]]></author>
			<pubDate>Tue, 06 May 2008 17:13:35 +0000</pubDate>
			<guid>http://punbb.ru/post18272.html#p18272</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post18270.html#p18270</link>
			<description><![CDATA[<p>нету,такого у меня в post и edit..... <br /></p><div class="codebox"><pre><code>&lt;?php endif; ?&gt;                        &lt;label&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Message&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;</code></pre></div><p>странно....<br />где его нужно добавлять тогда?<br />форум устанавливал с этого сайта,punbb 1.2.17</p>]]></description>
			<author><![CDATA[null@example.com (SerebroSuper)]]></author>
			<pubDate>Tue, 06 May 2008 17:07:19 +0000</pubDate>
			<guid>http://punbb.ru/post18270.html#p18270</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post18269.html#p18269</link>
			<description><![CDATA[<p>Где ты взял инструкцию? Вот кусок readme из мода:<br /></p><div class="codebox"><pre><code>#
#---------[ 6. FIND (line:493) ]---------------------------------------------------
#

&lt;?php endif; ?&gt;                        &lt;label&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Message&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;

#
#---------[ 7. REPLACE WITH ]---------------------------------------------------
#

                        &lt;?php endif; require PUN_ROOT.&#039;mod_modern_bbcode.php&#039;; ?&gt;
                        &lt;label&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (nobody)]]></author>
			<pubDate>Tue, 06 May 2008 16:59:20 +0000</pubDate>
			<guid>http://punbb.ru/post18269.html#p18269</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post18265.html#p18265</link>
			<description><![CDATA[<p>Странно , но вот у меня проблема...с установкой мода...<br />в post и edit нету строчки... </p><p>&lt;?php endif; require PUN_ROOT.&#039;mod_easy_bbcode.php&#039;; ?&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Message&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;</p><p>что делать?</p>]]></description>
			<author><![CDATA[null@example.com (SerebroSuper)]]></author>
			<pubDate>Tue, 06 May 2008 16:17:28 +0000</pubDate>
			<guid>http://punbb.ru/post18265.html#p18265</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post16720.html#p16720</link>
			<description><![CDATA[<p>Вот еще один хитрый план от меня.<br />Заметил, что при выводе смайлов через smilies.php они выводятся полностью, хотя часть из них уже есть в форме ответа (у меня например их там штук 20).<br />Я считаю что показывать эти смайлы через smilies.php нет ни какого смысла.<br />Что я сделал (не забываем, что у меня моды easy bbcode и Modern BB Code скрещены <img src="http://punbb.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /> и смайлы в форме ответа выводятся как в первом):</p><p>Это вывод смайлов в форме ответа (быстрого ответа) <strong>mod_easy_bbcode.php</strong><br /></p><div class="codebox"><pre><code>$smiley_dups = array();
$num_smilies = count($smiley_text);
$j = 0;   // добавлно мной
for ($i = 0; $i &lt; $num_smilies; ++$i)
{
    // Is there a smiley at the current index?
    if (!isset($smiley_text[$i]))
        continue;

    if (!in_array($smiley_img[$i], $smiley_dups))
    {
        echo &#039;&lt;a href=&quot;javascript:insert_text(\&#039;&#039;.$smiley_text[$i].&#039;\&#039;, \&#039;\&#039;);&quot;&gt;&lt;img src=&quot;img/smilies/&#039;.$smiley_img[$i].&#039;&quot; alt=&quot;&#039;.$smiley_text[$i].&#039;&quot; /&gt;&lt;/a&gt;&#039;.&quot;\n&quot;;
      ++$j;   // добавлно мной
    if ($j == 20)   // добавлно мной
      $i = $num_smilies;   // добавлно мной
    }

    $smiley_dups[] = $smiley_img[$i];
}</code></pre></div><p>выводятся только первые 20 различных смайлов в форму.</p><p>В <strong>smilies.php</strong><br /></p><div class="codebox"><pre><code>$smiley_dups = array();
$num_smilies = count($smiley_text);
$j = 0;   // добавлно мной
for ($i = 0; $i &lt; $num_smilies; ++$i)
{
    // Is there a smiley at the current index?
    if (!isset($smiley_text[$i]))
        continue;

    if (!in_array($smiley_img[$i], $smiley_dups))
    {
       ++$j;   // добавлно мной
    if ($j &gt; 20)   // добавлно мной
    {   // добавлно мной
?&gt;
&lt;tr&gt;
&lt;td class=&quot;tcl&quot;&gt;&lt;a href=&quot;javascript:insert_text(&#039;&lt;?php echo $smiley_text[$i] ?&gt;&#039;, &#039;&#039;);&quot;&gt;&lt;img src=&quot;img/smilies/&lt;?php echo $smiley_img[$i] ?&gt;&quot; alt=&quot;&lt;?php echo $smiley_text[$i] ?&gt;&quot; /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td class=&quot;tcr&quot;&gt;&lt;?php echo $smiley_text[$i] ?&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
    }   // добавлно мной
    }

    $smiley_dups[] = $smiley_img[$i];

}</code></pre></div><p>выводятся смайлы начиная с 21 отличного от других.</p><p>В help.php ограничил вывод смайлов 20 различными штуками<br /></p><div class="codebox"><pre><code>$num_smilies = count($smiley_text);
$j = 0;   // добавлно мной
for ($i = 0; $i &lt; $num_smilies; ++$i)
{
    // Is there a smiley at the current index?
    if (!isset($smiley_text[$i]))
        continue;

    echo &quot;\t\t&quot;.&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#039;.$smiley_text[$i];

    // Save the current text and image
    $cur_img = $smiley_img[$i];
    $cur_text = $smiley_text[$i];

    // Loop through the rest of the array and see if there are any duplicate images
    // (more than one text representation for one image)
    for ($next = $i + 1; $next &lt; $num_smilies; ++$next)
    {
        // Did we find a dupe?
        if (isset($smiley_img[$next]) &amp;&amp; $smiley_img[$i] == $smiley_img[$next])
        {
            echo &#039; &#039;.$lang_common[&#039;and&#039;].&#039; &#039;.$smiley_text[$next];

            // Remove the dupe so we won&#039;t display it twice
            unset($smiley_text[$next]);
            unset($smiley_img[$next]);
        }
    }

    echo &#039; &#039;.$lang_help[&#039;produces&#039;].&#039; &lt;img src=&quot;img/smilies/&#039;.$cur_img.&#039;&quot; alt=&quot;&#039;.$cur_text.&#039;&quot; /&gt;&lt;br /&gt;&#039;.&quot;\n&quot;;
     ++$j;   // добавлно мной
  if ($j == 20)   // добавлно мной
    $i = $num_smilies;   // добавлно мной
}</code></pre></div><p>Надеюсь, что написал более-менее понятно.</p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Tue, 26 Feb 2008 16:53:51 +0000</pubDate>
			<guid>http://punbb.ru/post16720.html#p16720</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post15683.html#p15683</link>
			<description><![CDATA[<p><strong>Visman</strong><br />Спасибо, такой способ работает.</p>]]></description>
			<author><![CDATA[null@example.com (coordinator)]]></author>
			<pubDate>Fri, 18 Jan 2008 20:18:25 +0000</pubDate>
			<guid>http://punbb.ru/post15683.html#p15683</guid>
		</item>
		<item>
			<title><![CDATA[Re: MOD: Modern BB Code]]></title>
			<link>http://punbb.ru/post15679.html#p15679</link>
			<description><![CDATA[<div class="quotebox"><cite>coordinator пишет:</cite><blockquote><p>Мне нужно заменить кнопку на картинку и все.</p></blockquote></div><p>Можно все кнопки переделать по принципу<br /></p><div class="codebox"><pre><code>&lt;a class=&quot;btn&quot; title=&lt;?php echo &#039;&quot;&#039;.$lang_easy_bbcode[&#039;Bold title&#039;].&#039;&quot;&#039; ?&gt; href=&quot;javascript:insert_text(&#039;[b]&#039;,&#039;[/b]&#039;)&quot;&gt;&lt;b&gt;&lt;?php echo $lang_easy_bbcode[&#039;Bold&#039;] ?&gt;&lt;/b&gt;&lt;/a&gt;</code></pre></div><p>но вместо </p><div class="codebox"><pre><code>&lt;b&gt;&lt;?php echo $lang_easy_bbcode[&#039;Bold&#039;] ?&gt;&lt;/b&gt;</code></pre></div><p>ставить </p><div class="codebox"><pre><code>&lt;img src=&quot;URL нужной картинки&quot; alt=&quot;&lt;?php echo $lang_easy_bbcode[&#039;Bold&#039;] ?&gt;&quot; /&gt;</code></pre></div><p><span style="color: #808080"><em>Добавлено спустя&nbsp; &nbsp; &nbsp;1 минуту&nbsp; &nbsp;56 секунд: </em></span><br />А может и просто </p><div class="codebox"><pre><code>&lt;img src=&quot;URL нужной картинки&quot; /&gt;</code></pre></div><p>ставить, а не </p><div class="codebox"><pre><code>&lt;img src=&quot;URL нужной картинки&quot; alt=&quot;&lt;?php echo $lang_easy_bbcode[&#039;Bold&#039;] ?&gt;&quot; /&gt;</code></pre></div><p>Пробуй <img src="http://punbb.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p><span style="color: #808080"><em>Добавлено спустя&nbsp; &nbsp; &nbsp;7 минут&nbsp; &nbsp;56 секунд: </em></span><br />Вот еще это добавлял в <strong>base.css</strong> кажется, когда переделывал.<br /></p><div class="codebox"><pre><code>DIV.spoilerbox p {
    color: #353533;
    background: #353533;
}


DIV.easybar {
    height: 2em;
    margin-right: 5px;
    width: 100%;
    padding: 3px 1px;
}

DIV.easybar A.btn {
    float: left;
    padding: 3px 7px;
    margin: 0 2px 0 0;
    text-decoration: none;
    text-transform: uppercase;
    display: block;
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Fri, 18 Jan 2008 17:10:27 +0000</pubDate>
			<guid>http://punbb.ru/post15679.html#p15679</guid>
		</item>
	</channel>
</rss>

