<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: MakeItLink &#8211; Detecting URLs In Text And Making Them Links</title>
	<atom:link href="http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/feed/" rel="self" type="application/rss+xml" />
	<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/</link>
	<description></description>
	<lastBuildDate>Thu, 11 Mar 2010 06:54:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joseph Scott</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-1576</link>
		<dc:creator>Joseph Scott</dc:creator>
		<pubDate>Mon, 09 Feb 2009 22:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-1576</guid>
		<description>We welcome patches :-)</description>
		<content:encoded><![CDATA[<p>We welcome patches :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-1575</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 09 Feb 2009 20:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-1575</guid>
		<description>Hi,

I tested again and you are partially right. This case:

&quot;My site (http://josephscott.org)&quot;

still did not work but this did:

&quot;My site (http://josephscott.org) period.&quot;

So I added a trailing space character to the string on line 41 and that seemed to fix the problem.

I am having trouble deciphering that regex. Can we not find a solution where line 41 looks like:

&quot;{$text}&quot;

instead of:

&quot; {$text} &quot;

thx</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tested again and you are partially right. This case:</p>
<p>&#8220;My site (<a href="http://josephscott.org)" rel="nofollow">http://josephscott.org)</a>&#8221;</p>
<p>still did not work but this did:</p>
<p>&#8220;My site (<a href="http://josephscott.org" rel="nofollow">http://josephscott.org</a>) period.&#8221;</p>
<p>So I added a trailing space character to the string on line 41 and that seemed to fix the problem.</p>
<p>I am having trouble deciphering that regex. Can we not find a solution where line 41 looks like:</p>
<p>&#8220;{$text}&#8221;</p>
<p>instead of:</p>
<p>&#8221; {$text} &#8221;</p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Scott</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-1572</link>
		<dc:creator>Joseph Scott</dc:creator>
		<pubDate>Mon, 09 Feb 2009 18:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-1572</guid>
		<description>Multiple people have indicated that this code is working.  Can you confirm that your copied code is the same as what I posted?</description>
		<content:encoded><![CDATA[<p>Multiple people have indicated that this code is working.  Can you confirm that your copied code is the same as what I posted?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-1507</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sat, 07 Feb 2009 21:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-1507</guid>
		<description>Hi again,

I have reconstructed the wordpress make_clickable code to try and get this to work and it still does not work(at least on a PHP4 engine).

Please see MakeItLink2.php and MakeItLink3.php which can be found in this zip:

http://pinchpile.com/makelink.zip

MakeItLink2.php is a class for making links without taking parens into consideration. This works as expected.

MakeItLink3.php is a class for taking parens into account as coded in the leaner version diff for ticket 8300. This code still does not work for(on PHP4 at least) this test case:

My site (http://josephscott.org)

Can you test it on PHP 4/5 and get back to me? Thanks.</description>
		<content:encoded><![CDATA[<p>Hi again,</p>
<p>I have reconstructed the wordpress make_clickable code to try and get this to work and it still does not work(at least on a PHP4 engine).</p>
<p>Please see MakeItLink2.php and MakeItLink3.php which can be found in this zip:</p>
<p><a href="http://pinchpile.com/makelink.zip" rel="nofollow">http://pinchpile.com/makelink.zip</a></p>
<p>MakeItLink2.php is a class for making links without taking parens into consideration. This works as expected.</p>
<p>MakeItLink3.php is a class for taking parens into account as coded in the leaner version diff for ticket 8300. This code still does not work for(on PHP4 at least) this test case:</p>
<p>My site (<a href="http://josephscott.org" rel="nofollow">http://josephscott.org</a>)</p>
<p>Can you test it on PHP 4/5 and get back to me? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-1506</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sat, 07 Feb 2009 20:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-1506</guid>
		<description>Hi,

I copied the code to my clipboard and pasted it to a PHP file. Then I removed the protected/public keywords because I have PHP4. I started testing it and it does not work for a link in parens that has no parens. The ending closing paren is included as part of the link. This is the example I was testing(hopefully it will render properly):

My site (http://josephscott.org)

If it doesn&#039;t render properly it is this case:

(link)

Can you test this with a PHP4 version of MakeItLink? And if it works for you can you post a link to your actual class file?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I copied the code to my clipboard and pasted it to a PHP file. Then I removed the protected/public keywords because I have PHP4. I started testing it and it does not work for a link in parens that has no parens. The ending closing paren is included as part of the link. This is the example I was testing(hopefully it will render properly):</p>
<p>My site (<a href="http://josephscott.org" rel="nofollow">http://josephscott.org</a>)</p>
<p>If it doesn&#8217;t render properly it is this case:</p>
<p>(link)</p>
<p>Can you test this with a PHP4 version of MakeItLink? And if it works for you can you post a link to your actual class file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-262</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Mon, 08 Dec 2008 03:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-262</guid>
		<description>Perfecto-- works great!  Thanks much.  I may integrate this into my &lt;a href=&quot;http://meyerweb.com/eric/tools/wordpress/mw_latest_tweet.html&quot; rel=&quot;nofollow&quot;&gt;Latest Tweet plugin&lt;/a&gt;, depending on how much effort it will take to do so and still support the URL-shortening feature.</description>
		<content:encoded><![CDATA[<p>Perfecto&#8211; works great!  Thanks much.  I may integrate this into my <a href="http://meyerweb.com/eric/tools/wordpress/mw_latest_tweet.html" rel="nofollow">Latest Tweet plugin</a>, depending on how much effort it will take to do so and still support the URL-shortening feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Scott</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-257</link>
		<dc:creator>Joseph Scott</dc:creator>
		<pubDate>Sun, 07 Dec 2008 06:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-257</guid>
		<description>Sorry, this appears to completely my fault.  Not sure when/where, but I managed to completely botch that regex line.  I&#039;ve updated the code in the post with the correct regex line.  I tried the corrected version (minus the protected/public keywords) with PHP4 and confirmed that it works now.

My apologies for the confusion.</description>
		<content:encoded><![CDATA[<p>Sorry, this appears to completely my fault.  Not sure when/where, but I managed to completely botch that regex line.  I&#8217;ve updated the code in the post with the correct regex line.  I tried the corrected version (minus the protected/public keywords) with PHP4 and confirmed that it works now.</p>
<p>My apologies for the confusion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Scott</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-255</link>
		<dc:creator>Joseph Scott</dc:creator>
		<pubDate>Sat, 06 Dec 2008 23:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-255</guid>
		<description>I take that back, it looks like something did change in PHP5 for preg_replace_callback that causes it to break in PHP4.</description>
		<content:encoded><![CDATA[<p>I take that back, it looks like something did change in PHP5 for preg_replace_callback that causes it to break in PHP4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Scott</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-254</link>
		<dc:creator>Joseph Scott</dc:creator>
		<pubDate>Sat, 06 Dec 2008 21:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-254</guid>
		<description>It does have PHP5&#039;isms in it (such as the protected and public keywords), but there really isn&#039;t anything in the code that requires PHP5.</description>
		<content:encoded><![CDATA[<p>It does have PHP5&#8242;isms in it (such as the protected and public keywords), but there really isn&#8217;t anything in the code that requires PHP5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://josephscott.org/archives/2008/11/makeitlink-detecting-urls-in-text-and-making-them-links/#comment-253</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Sat, 06 Dec 2008 19:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=467#comment-253</guid>
		<description>Is this library PHP5 only?  I got a bunch of errors testing it out, some of which I banished by stripping off the &#039;protected&#039; and &#039;public&#039; function labels, but even after that I ended up with a preg_replace_callback error I couldn&#039;t resolve.

(And before anyone says &quot;Just upgrade PHP already!&quot;, that&#039;s not always an available option.)</description>
		<content:encoded><![CDATA[<p>Is this library PHP5 only?  I got a bunch of errors testing it out, some of which I banished by stripping off the &#8216;protected&#8217; and &#8216;public&#8217; function labels, but even after that I ended up with a preg_replace_callback error I couldn&#8217;t resolve.</p>
<p>(And before anyone says &#8220;Just upgrade PHP already!&#8221;, that&#8217;s not always an available option.)</p>
]]></content:encoded>
	</item>
</channel>
</rss>