<?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: Plugin &#8211; Twig (Twitter Integrator)</title>
	<atom:link href="http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danhendricks.com</link>
	<description>Learn from yesterday, live for today.</description>
	<lastBuildDate>Sat, 28 Nov 2009 09:12:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Zonerdck - 15 Twitter Plugins For Wordpress</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11099</link>
		<dc:creator>Zonerdck - 15 Twitter Plugins For Wordpress</dc:creator>
		<pubDate>Sat, 28 Nov 2009 09:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11099</guid>
		<description>[...] Twitter. It has provisions for caching as well as displaying an error message if Twitter is down.   Twig : This is a really unique plugin. What it does is put tweets in between your WordPress blog posts [...]</description>
		<content:encoded><![CDATA[<p>[...] Twitter. It has provisions for caching as well as displaying an error message if Twitter is down.   Twig : This is a really unique plugin. What it does is put tweets in between your WordPress blog posts [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Wallace</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11098</link>
		<dc:creator>Scott Wallace</dc:creator>
		<pubDate>Sat, 07 Nov 2009 17:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11098</guid>
		<description>Another couple of bug fixes:

Index: twig.php
===================================================================
--- twig.php	(revision 5)
+++ twig.php	(working copy)
@@ -134,7 +134,7 @@
 
 function twig_get_last_post_time() {
 	global $wpdb;
-	$result = $wpdb-&gt;get_var(&quot;SELECT UNIX_TIMESTAMP(post_date) FROM &quot;.$wpdb-&gt;prefix.&quot;posts WHERE post_status = &#039;publish&#039; AND ID &gt; &quot;.get_the_ID().&quot; ORDER BY post_date ASC LIMIT 1&quot;);
+	$result = $wpdb-&gt;get_var(&quot;SELECT UNIX_TIMESTAMP(post_date) FROM &quot;.$wpdb-&gt;prefix.&quot;posts WHERE post_type=&#039;post&#039; AND post_status = &#039;publish&#039; AND ID &gt; &quot;.get_the_ID().&quot; ORDER BY post_date ASC LIMIT 1&quot;);
 	if(!isset($result)) $result = strtotime(&quot;now&quot;);
 	return $result;
 }
Index: twig-settings.php
===================================================================
--- twig-settings.php	(revision 5)
+++ twig-settings.php	(working copy)
@@ -146,7 +146,7 @@
 
 	/* REFRESH CACHE */
 	if(isset($_POST[&#039;twig_config_refresh&#039;])) {
-		$wpdb-&gt;query(&quot;DELETE FROM `wp_twig_cache` ORDER BY d_posted DESC LIMIT 200&quot;);
+               $wpdb-&gt;query(&quot;DELETE FROM `&quot;.$wpdb-&gt;prefix.&quot;twig_cache` ORDER BY d_posted DESC LIMIT 200&quot;);
 	}
 }
 ?&gt;</description>
		<content:encoded><![CDATA[<p>Another couple of bug fixes:</p>
<p>Index: twig.php<br />
===================================================================<br />
&#8212; twig.php	(revision 5)<br />
+++ twig.php	(working copy)<br />
@@ -134,7 +134,7 @@</p>
<p> function twig_get_last_post_time() {<br />
 	global $wpdb;<br />
-	$result = $wpdb-&gt;get_var(&#8220;SELECT UNIX_TIMESTAMP(post_date) FROM &#8220;.$wpdb-&gt;prefix.&#8221;posts WHERE post_status = &#8216;publish&#8217; AND ID &gt; &#8220;.get_the_ID().&#8221; ORDER BY post_date ASC LIMIT 1&#8243;);<br />
+	$result = $wpdb-&gt;get_var(&#8220;SELECT UNIX_TIMESTAMP(post_date) FROM &#8220;.$wpdb-&gt;prefix.&#8221;posts WHERE post_type=&#8217;post&#8217; AND post_status = &#8216;publish&#8217; AND ID &gt; &#8220;.get_the_ID().&#8221; ORDER BY post_date ASC LIMIT 1&#8243;);<br />
 	if(!isset($result)) $result = strtotime(&#8220;now&#8221;);<br />
 	return $result;<br />
 }<br />
Index: twig-settings.php<br />
===================================================================<br />
&#8212; twig-settings.php	(revision 5)<br />
+++ twig-settings.php	(working copy)<br />
@@ -146,7 +146,7 @@</p>
<p> 	/* REFRESH CACHE */<br />
 	if(isset($_POST['twig_config_refresh'])) {<br />
-		$wpdb-&gt;query(&#8220;DELETE FROM `wp_twig_cache` ORDER BY d_posted DESC LIMIT 200&#8243;);<br />
+               $wpdb-&gt;query(&#8220;DELETE FROM `&#8221;.$wpdb-&gt;prefix.&#8221;twig_cache` ORDER BY d_posted DESC LIMIT 200&#8243;);<br />
 	}<br />
 }<br />
 ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Wallace</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11097</link>
		<dc:creator>Scott Wallace</dc:creator>
		<pubDate>Sat, 31 Oct 2009 14:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11097</guid>
		<description>Ok... last attempt - then I&#039;ll stop.


--- twig.php	(revision 2)
+++ twig.php	(working copy)
@@ -265,6 +265,8 @@
   $txt = eregi_replace(&#039;(((f&#124;ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#039;, &#039;&lt;a href=&quot;\\1&quot; rel=&quot;nofollow&quot;&gt;\\1&lt;/a&gt;&#039;, $txt);
   $txt = eregi_replace(&#039;([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#039;, &#039;\\1&lt;a href=&quot;http://\\2&quot; rel=&quot;nofollow&quot;&gt;\\2&lt;/a&gt;&#039;, $txt);
   $txt = eregi_replace(&#039;([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})&#039;, &#039;&lt;a href=&quot;mailto:\\1&quot; rel=&quot;nofollow&quot;&gt;\\1&lt;/a&gt;&#039;, $txt);
+  $txt = preg_replace(&#039;/(\B)#([a-z0-9\-_]+)/i&#039;, &#039;$1&lt;a href=&quot;http://twitter.com/#search?q=%23$2&quot; rel=&quot;nofollow&quot;&gt;#$2&lt;/a&gt;&#039;, $txt);
+  $txt = preg_replace(&#039;/(\B)@([a-z0-9\-_]+)/i&#039;, &#039;$1&lt;a href=&quot;http://twitter.com/$2&quot; rel=&quot;nofollow&quot;&gt;@$2&lt;/a&gt;&#039;, $txt);
   return $txt;
 }
 ?&gt;
</description>
		<content:encoded><![CDATA[<p>Ok&#8230; last attempt &#8211; then I&#8217;ll stop.</p>
<p>&#8212; twig.php	(revision 2)<br />
+++ twig.php	(working copy)<br />
@@ -265,6 +265,8 @@<br />
   $txt = eregi_replace(&#8216;(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#8217;, &#8216;<a href="\\1" rel="nofollow">\\1</a>&#8216;, $txt);<br />
   $txt = eregi_replace(&#8216;([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#8217;, &#8216;\\1<a href="http://\\2" rel="nofollow">\\2</a>&#8216;, $txt);<br />
   $txt = eregi_replace(&#8216;([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})&#8217;, &#8216;<a href="mailto:\\1" rel="nofollow">\\1</a>&#8216;, $txt);<br />
+  $txt = preg_replace(&#8216;/(\B)#([a-z0-9\-_]+)/i&#8217;, &#8216;$1<a href="http://twitter.com/#search?q=%23$2" rel="nofollow">#$2</a>&#8216;, $txt);<br />
+  $txt = preg_replace(&#8216;/(\B)@([a-z0-9\-_]+)/i&#8217;, &#8216;$1<a href="http://twitter.com/$2" rel="nofollow">@$2</a>&#8216;, $txt);<br />
   return $txt;<br />
 }<br />
 ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Wallace</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11096</link>
		<dc:creator>Scott Wallace</dc:creator>
		<pubDate>Sat, 31 Oct 2009 14:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11096</guid>
		<description>Oops... formatting FAIL.

That patch again:
&lt;code&gt;
--- twig.php	(revision 2)
+++ twig.php	(working copy)
@@ -265,6 +265,8 @@
   $txt = eregi_replace(&#039;(((f&#124;ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#039;, &#039;&lt;a href=&quot;\\1&quot; rel=&quot;nofollow&quot;&gt;\\1&lt;/a&gt;&#039;, $txt);
   $txt = eregi_replace(&#039;([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#039;, &#039;\\1&lt;a href=&quot;http://\\2&quot; rel=&quot;nofollow&quot;&gt;\\2&lt;/a&gt;&#039;, $txt);
   $txt = eregi_replace(&#039;([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})&#039;, &#039;&lt;a href=&quot;mailto:\\1&quot; rel=&quot;nofollow&quot;&gt;\\1&lt;/a&gt;&#039;, $txt);
+  $txt = preg_replace(&#039;/(\B)#([a-z0-9\-_]+)/i&#039;, &#039;$1&lt;a href=&quot;http://twitter.com/#search?q=%23$2&quot; rel=&quot;nofollow&quot;&gt;#$2&lt;/a&gt;&#039;, $txt);
+  $txt = preg_replace(&#039;/(\B)@([a-z0-9\-_]+)/i&#039;, &#039;$1&lt;a href=&quot;http://twitter.com/$2&quot; rel=&quot;nofollow&quot;&gt;@$2&lt;/a&gt;&#039;, $txt);
   return $txt;
 }
 ?&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Oops&#8230; formatting FAIL.</p>
<p>That patch again:<br />
<code><br />
--- twig.php	(revision 2)<br />
+++ twig.php	(working copy)<br />
@@ -265,6 +265,8 @@<br />
   $txt = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)', '<a href="\\1" rel="nofollow">\\1</a>', $txt);<br />
   $txt = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)', '\\1<a href="http://\\2" rel="nofollow">\\2</a>', $txt);<br />
   $txt = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})', '<a href="mailto:\\1" rel="nofollow">\\1</a>', $txt);<br />
+  $txt = preg_replace('/(\B)#([a-z0-9\-_]+)/i', '$1<a href="http://twitter.com/#search?q=%23$2" rel="nofollow">#$2</a>', $txt);<br />
+  $txt = preg_replace('/(\B)@([a-z0-9\-_]+)/i', '$1<a href="http://twitter.com/$2" rel="nofollow">@$2</a>', $txt);<br />
   return $txt;<br />
 }<br />
 ?&gt;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Wallace</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11095</link>
		<dc:creator>Scott Wallace</dc:creator>
		<pubDate>Sat, 31 Oct 2009 14:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11095</guid>
		<description>Another small patch to display hashtags and @usernames as links:

--- snip ---
--- twig.php	(revision 2)
+++ twig.php	(working copy)
@@ -265,6 +265,8 @@
   $txt = eregi_replace(&#039;(((f&#124;ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#039;, &#039;&lt;a href=&quot;\\1&quot; rel=&quot;nofollow&quot;&gt;\\1&lt;/a&gt;&#039;, $txt);
   $txt = eregi_replace(&#039;([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#039;, &#039;\\1&lt;a href=&quot;http://\\2&quot; rel=&quot;nofollow&quot;&gt;\\2&lt;/a&gt;&#039;, $txt);
   $txt = eregi_replace(&#039;([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})&#039;, &#039;&lt;a href=&quot;mailto:\\1&quot; rel=&quot;nofollow&quot;&gt;\\1&lt;/a&gt;&#039;, $txt);
+  $txt = preg_replace(&#039;/(\B)#([a-z0-9\-_]+)/i&#039;, &#039;$1&lt;a href=&quot;http://twitter.com/#search?q=%23$2&quot; rel=&quot;nofollow&quot;&gt;#$2&lt;/a&gt;&#039;, $txt);
+  $txt = preg_replace(&#039;/(\B)@([a-z0-9\-_]+)/i&#039;, &#039;$1&lt;a href=&quot;http://twitter.com/$2&quot; rel=&quot;nofollow&quot;&gt;@$2&lt;/a&gt;&#039;, $txt);
   return $txt;
 }
 ?&gt;
--- snip ---</description>
		<content:encoded><![CDATA[<p>Another small patch to display hashtags and @usernames as links:</p>
<p>&#8212; snip &#8212;<br />
&#8212; twig.php	(revision 2)<br />
+++ twig.php	(working copy)<br />
@@ -265,6 +265,8 @@<br />
   $txt = eregi_replace(&#8216;(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#8217;, &#8216;<a href="\\1" rel="nofollow">\\1</a>&#8216;, $txt);<br />
   $txt = eregi_replace(&#8216;([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)&#8217;, &#8216;\\1<a href="http://\\2" rel="nofollow">\\2</a>&#8216;, $txt);<br />
   $txt = eregi_replace(&#8216;([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})&#8217;, &#8216;<a href="mailto:\\1" rel="nofollow">\\1</a>&#8216;, $txt);<br />
+  $txt = preg_replace(&#8216;/(\B)#([a-z0-9\-_]+)/i&#8217;, &#8216;$1<a href="http://twitter.com/#search?q=%23$2" rel="nofollow">#$2</a>&#8216;, $txt);<br />
+  $txt = preg_replace(&#8216;/(\B)@([a-z0-9\-_]+)/i&#8217;, &#8216;$1<a href="http://twitter.com/$2" rel="nofollow">@$2</a>&#8216;, $txt);<br />
   return $txt;<br />
 }<br />
 ?&gt;<br />
&#8212; snip &#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Wallace</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11094</link>
		<dc:creator>Scott Wallace</dc:creator>
		<pubDate>Wed, 28 Oct 2009 20:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11094</guid>
		<description>I have a small bug fix.  Only increment the counter if the tweet is shown.

--- snip ---
--- twig.php.orig	2009-10-28 20:37:19.000000000 +0000
+++ twig.php	2009-10-28 20:37:45.000000000 +0000
@@ -124,9 +124,9 @@
               				$twig_expand_started = true;
             			}
           			}
+		  			$twig_count++;
 				}
   			
-	  			$twig_count++;
 			}
 		}
 		if($twig_expand_started) echo &quot;&quot;;
--- snip ---</description>
		<content:encoded><![CDATA[<p>I have a small bug fix.  Only increment the counter if the tweet is shown.</p>
<p>&#8212; snip &#8212;<br />
&#8212; twig.php.orig	2009-10-28 20:37:19.000000000 +0000<br />
+++ twig.php	2009-10-28 20:37:45.000000000 +0000<br />
@@ -124,9 +124,9 @@<br />
               				$twig_expand_started = true;<br />
             			}<br />
           			}<br />
+		  			$twig_count++;<br />
 				}</p>
<p>-	  			$twig_count++;<br />
 			}<br />
 		}<br />
 		if($twig_expand_started) echo &#8220;&#8221;;<br />
&#8212; snip &#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11092</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 01 Oct 2009 10:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11092</guid>
		<description>Oops, apparently the php code I pasted is blocked... makes sense I guess.</description>
		<content:encoded><![CDATA[<p>Oops, apparently the php code I pasted is blocked&#8230; makes sense I guess.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11091</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 01 Oct 2009 10:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11091</guid>
		<description>Hi Daniel!

I have installed the plugin, I can adjust the settings but nothing happens. My tweets do not show up as blog posts. 
I am using the latest version of Wordpress (2.8.4). Also, when I press the &#039;Test&#039; button on the settings page, nothing happens... is that correct behavior?
I&#039;ve checked an double-checked my twitter username and password ;)

Here are the first lines of index.php, I pasted the line right below the &#039;while&#039; line:



  
  
   
  &lt;a href=&quot;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &quot;&gt;
    

Any thoughts?

Marco</description>
		<content:encoded><![CDATA[<p>Hi Daniel!</p>
<p>I have installed the plugin, I can adjust the settings but nothing happens. My tweets do not show up as blog posts.<br />
I am using the latest version of WordPress (2.8.4). Also, when I press the &#8216;Test&#8217; button on the settings page, nothing happens&#8230; is that correct behavior?<br />
I&#8217;ve checked an double-checked my twitter username and password <img src='http://www.danhendricks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Here are the first lines of index.php, I pasted the line right below the &#8216;while&#8217; line:</p>
<p>  &lt;a href=&quot;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &#8220;&gt;</p>
<p>Any thoughts?</p>
<p>Marco</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11084</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 04 Sep 2009 04:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11084</guid>
		<description>Sorry everyone that this took so long to fix.  It took me awhile to figure out the issue.  It should be fixed not in 0.17.1.  Please let me know if you encounter any problems after the update.

Thank you for your patience,
Daniel</description>
		<content:encoded><![CDATA[<p>Sorry everyone that this took so long to fix.  It took me awhile to figure out the issue.  It should be fixed not in 0.17.1.  Please let me know if you encounter any problems after the update.</p>
<p>Thank you for your patience,<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magyar</title>
		<link>http://www.danhendricks.com/source-code/wordpress/plugin-twig-twitter-aggregator/comment-page-1/#comment-11083</link>
		<dc:creator>Magyar</dc:creator>
		<pubDate>Tue, 25 Aug 2009 03:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.danhendricks.com/?page_id=706#comment-11083</guid>
		<description>I&#039;m having the same problem as above. I try to access the settings and get &#039;You do not have sufficient permissions to access this page.&quot; I checked the CHMOD and everything seems okay. Please help!</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the same problem as above. I try to access the settings and get &#8216;You do not have sufficient permissions to access this page.&#8221; I checked the CHMOD and everything seems okay. Please help!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

