<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - own clickable links]]></title>
		<link>http://punbb.informer.com/forums/topic/20432/own-clickable-links/</link>
		<description><![CDATA[The most recent posts in own clickable links.]]></description>
		<lastBuildDate>Tue, 02 Dec 2008 11:40:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: own clickable links]]></title>
			<link>http://punbb.informer.com/forums/post/120315/#p120315</link>
			<description><![CDATA[<p>Dupe of <a href="http://punbb.informer.com/forums/topic/20431/own-clickable-links/">http://punbb.informer.com/forums/topic/ &#133; ble-links/</a> . Moved to Archive.</p>]]></description>
			<author><![CDATA[dummy@example.com (Anatoly)]]></author>
			<pubDate>Tue, 02 Dec 2008 11:40:14 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/120315/#p120315</guid>
		</item>
		<item>
			<title><![CDATA[own clickable links]]></title>
			<link>http://punbb.informer.com/forums/post/120285/#p120285</link>
			<description><![CDATA[<p>i</p><p>i have set for clickable kommte:// link in parser.php<br />but this not make a sence mean not work.</p><div class="codebox"><pre><code>    $text = preg_replace(&#039;#(?&lt;=[\s\]\)])(&lt;)?(\[)?(\()?([\&#039;&quot;]?)(https?|ftp|news|kommute){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-])?)\4(?(3)(\)))(?(2)(\]))(?(1)(&gt;))(?![^\s]*\[/(?:url|img)\])#ie&#039;, &#039;stripslashes(\&#039;$1$2$3$4\&#039;).handle_url_tag(\&#039;$5://$6\&#039;, \&#039;$5://$6\&#039;, true).stripslashes(\&#039;$4$10$11$12\&#039;)&#039;, $text);</code></pre></div><p>but it will not clickable i must use to get clickable?</p><p>or i must rewrite handle_url_tag ?</p><div class="codebox"><pre><code>    $full_url = str_replace(array(&#039; &#039;, &#039;\&#039;&#039;, &#039;`&#039;, &#039;&quot;&#039;), array(&#039;%20&#039;, &#039;&#039;, &#039;&#039;, &#039;&#039;), $url);
    if (strpos($url, &#039;www.&#039;) === 0)            // If it starts with www, we add http://
        $full_url = &#039;http://&#039;.$full_url;
    else if (strpos($url, &#039;ftp.&#039;) === 0)    // Else if it starts with ftp, we add ftp://
        $full_url = &#039;ftp://&#039;.$full_url;
    else if (!preg_match(&#039;#^([a-z0-9]{3,6})://#&#039;, $url))     // Else if it doesn&#039;t start with abcdef://, we add http://
        $full_url = &#039;http://&#039;.$full_url;</code></pre></div><p>But this it will add 2 &quot;kommute://&quot;<br /></p><div class="codebox"><pre><code>    else if (strpos($url, &#039;kommute://&#039;) === 0)    
        $full_url =kommute://&#039;.$full_url;</code></pre></div><p>how must it look to get work?</p>]]></description>
			<author><![CDATA[dummy@example.com (clunky)]]></author>
			<pubDate>Mon, 01 Dec 2008 15:49:32 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/120285/#p120285</guid>
		</item>
	</channel>
</rss>
