Bb_Code эскизы для RotorCMS - Visavi.net https://visavi.net/ RSS - Visavi.net https://visavi.net/assets/img/images/logo_small.png RSS - Visavi.net https://visavi.net/ [email protected] (admin) [email protected] (admin) Thu, 28 Nov 2024 23:36:16 +0300 6, не он, а она <img src="https://visavi.net/uploads/stickers/smile.gif" alt="smile"> <br> <br> по крайней мере так в профиле написано https://visavi.net/topics/33501/577663 Bb_Code эскизы для RotorCMS spletni Fri, 27 Jul 2012 16:05:04 +0400 Сообщения https://visavi.net/topics/33501/577663 4. <strong>Zдешний</strong>, зачем тут понимать текст если по коду итак все понятно<br> он предлагает функцию вставки изображений прям в сообщение<br> но это небезопасно https://visavi.net/topics/33501/577661 Bb_Code эскизы для RotorCMS Вантуз-мен Fri, 27 Jul 2012 15:39:12 +0400 Сообщения https://visavi.net/topics/33501/577661 includes/function.php<br> поиск:<br> <pre class="prettyprint">function url_replace($m) { global $config; if (!isset($m&#91;4])) { $target = (strpos($m&#91;1], $config&#91;&#039;home&#039;]) === false) ? &#039; target=&quot;_blank&quot;&#039; &#58; &#039;&#039;; return &#039;&lt;a href=&quot;&#039;.$m&#91;1].&#039;&quot;&#039;.$target.&#039;&gt;&#039;.check(rawurldecode(html_entity_decode($m&#91;3], ENT_QUOTES, &#039;utf-8&#039;))).&#039;&lt;/a&gt;&#039;; } else { $target = (strpos($m&#91;4], $config&#91;&#039;home&#039;]) === false) ? &#039; target=&quot;_blank&quot;&#039; &#58; &#039;&#039;; return &#039;&lt;a href=&quot;&#039;.$m&#91;4].&#039;&quot;&#039;.$target.&#039;&gt;&#039;.check(rawurldecode(html_entity_decode($m&#91;4], ENT_QUOTES, &#039;utf-8&#039;))).&#039;&lt;/a&gt;&#039;; } }</pre> заменены:<br> <pre class="prettyprint">function url_replace($url) { global $config; if (!isset($url&#91;4])) { $target = (strpos($url&#91;1], $config&#91;&#039;home&#039;]) === false) ? &#039; target=&quot;_blank&quot;&#039; &#58; &#039;&#039;; $title = (utf_strlen($url&#91;3]) &gt; 80) ? utf_substr($url&#91;3], 0, 70).&#039;...&#039; &#58; $url&#91;3]; return &#039;&lt;a href=&quot;&#039;.$url&#91;1].&#039;&quot;&#039;.$target.&#039;&gt;&#039;.check(rawurldecode(html_entity_decode($title, ENT_QUOTES, &#039;utf-8&#039;))).&#039;&lt;/a&gt;&#039;; } else { if ((!preg_match(&#039;/\.gif$/i&#039;,$url&#91;4])) &amp;&amp; (!preg_match(&#039;/\.png$/i&#039;,$url&#91;4])) &amp;&amp; (!preg_match(&#039;/\.jpg$/i&#039;,$url&#91;4])) &amp;&amp; (!preg_match(&#039;/\.jpng$/i&#039;,$url&#91;4])) &amp;&amp; (!preg_match(&#039;/\.jpeg$/i&#039;,$url&#91;4]))){ $target = (strpos($url&#91;4], $config&#91;&#039;home&#039;]) === false) ? &#039; target=&quot;_blank&quot;&#039; &#58; &#039;&#039;; $title = (utf_strlen($url&#91;4]) &gt; 80) ? utf_substr($url&#91;4], 0, 70).&#039;...&#039; &#58; $url&#91;4]; return &#039;&lt;a href=&quot;&#039;.$url&#91;4].&#039;&quot;&#039;.$target.&#039;&gt;&#039;.check(rawurldecode(html_entity_decode($title, ENT_QUOTES, &#039;utf-8&#039;))).&#039;&lt;/a&gt;&#039;; } else return $url&#91;4]; } }</pre> поиск:<br> <pre class="prettyprint">function bb_code($msg) {</pre> добавляется в конце:<br> <pre class="prettyprint"> $msg = preg_replace(&#039;#\&#91;img\](.*?)\&#91;/img\]#si&#039;, &#039;&lt;img src=\1 height=160 weight=200&gt;&lt;br&gt; &lt;a href=\1&gt;Tải về&lt;/a&gt;&#039;, $msg);</pre> https://visavi.net/topics/33501/577585 Bb_Code эскизы для RotorCMS QuyCuong Fri, 27 Jul 2012 10:09:15 +0400 Сообщения https://visavi.net/topics/33501/577585 <blockquote class="blockquote"><strong>QuyCuong</strong> (27 Июля 2012 / 11:19)<br> 2. <strong>Zдешний</strong>, <br> Я не понимаю, что вы говорите, но я буду делать с действием</blockquote> On english, please. My english is not well. But your russian translating is very bad <img src="https://visavi.net/uploads/stickers/sad.gif" alt="sad"> https://visavi.net/topics/33501/577561 Bb_Code эскизы для RotorCMS Zдешний Fri, 27 Jul 2012 09:22:32 +0400 Сообщения https://visavi.net/topics/33501/577561 2. <strong>Zдешний</strong>, <br> Я не понимаю, что вы говорите, но я буду делать с действием https://visavi.net/topics/33501/577560 Bb_Code эскизы для RotorCMS QuyCuong Fri, 27 Jul 2012 09:19:48 +0400 Сообщения https://visavi.net/topics/33501/577560 Копипаст? https://visavi.net/topics/33501/577559 Bb_Code эскизы для RotorCMS Zдешний Fri, 27 Jul 2012 09:17:06 +0400 Сообщения https://visavi.net/topics/33501/577559 includes/function.php<br> <pre class="prettyprint">// ------------------ Вспомогательная функция для bb-кода --------------------// function url_replace($url) { global $config; if (!isset($url&#91;4])) { $target = (strpos($url&#91;1], $config&#91;&#039;home&#039;]) === false) ? &#039; target=&quot;_blank&quot;&#039; &#58; &#039;&#039;; $title = (utf_strlen($url&#91;3]) &gt; 80) ? utf_substr($url&#91;3], 0, 70).&#039;...&#039; &#58; $url&#91;3]; return &#039;&lt;a href=&quot;&#039;.$url&#91;1].&#039;&quot;&#039;.$target.&#039;&gt;&#039;.check(rawurldecode(html_entity_decode($title, ENT_QUOTES, &#039;utf-8&#039;))).&#039;&lt;/a&gt;&#039;; } else { if ((!preg_match(&#039;/\.gif$/i&#039;,$url&#91;4])) &amp;&amp; (!preg_match(&#039;/\.png$/i&#039;,$url&#91;4])) &amp;&amp; (!preg_match(&#039;/\.jpg$/i&#039;,$url&#91;4]))){ $target = (strpos($url&#91;4], $config&#91;&#039;home&#039;]) === false) ? &#039; target=&quot;_blank&quot;&#039; &#58; &#039;&#039;; $title = (utf_strlen($url&#91;4]) &gt; 80) ? utf_substr($url&#91;4], 0, 70).&#039;...&#039; &#58; $url&#91;4]; return &#039;&lt;a href=&quot;&#039;.$url&#91;4].&#039;&quot;&#039;.$target.&#039;&gt;&#039;.check(rawurldecode(html_entity_decode($title, ENT_QUOTES, &#039;utf-8&#039;))).&#039;&lt;/a&gt;&#039;; } else return $url&#91;4]; } }</pre> <pre class="prettyprint">// ------------------ Функция вставки BB-кода --------------------// function bb_code($msg) { $msg = preg_replace(&#039;#\&#91;img\](.*?)\&#91;/img\]#si&#039;, &#039;&lt;img src=\1 height=160 weight=200&gt;&lt;br&gt; &lt;a href=\1&gt;Tải về&lt;/a&gt;&#039;, $msg);</pre> или если вы видите поблагодарить полезная статья. Я вьетнамского национального<br> <br> <em><span style="font-size:x-small">Добавлено через 07:40 сек.</span></em><br> он может появиться в любом месте мы хотим с этим [img] ссылка. (GIF, PNG, JPG) [/img]<br> Я не знаю русского языка, я спросил Google https://visavi.net/topics/33501/577538 Bb_Code эскизы для RotorCMS QuyCuong Fri, 27 Jul 2012 06:59:15 +0400 Сообщения https://visavi.net/topics/33501/577538