<?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"
	>
<channel>
	<title>Comments on: Author&#8217;s RSS Feed field in comments</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/</link>
	<description></description>
	<pubDate>Sat, 30 Aug 2008 04:41:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Bloggie Broad</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10071</link>
		<dc:creator>Bloggie Broad</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10071</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Breaking from the breaking news....&lt;/strong&gt;
to announce that you can post your RSS feed in...</description>
		<content:encoded><![CDATA[<trackback /><strong>Breaking from the breaking news&#8230;.</strong><br />
to announce that you can post your RSS feed in&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Psst!</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10072</link>
		<dc:creator>Psst!</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10072</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;http://www.ryskamp.org/brain/psst/archives/2004_03.html#000575&lt;/strong&gt;
Add field to MT...
</description>
		<content:encoded><![CDATA[<trackback /><strong><a href="http://www.ryskamp.org/brain/psst/archives/2004_03.html#000575" rel="nofollow">http://www.ryskamp.org/brain/psst/archives/2004_03.html#000575</a></strong><br />
Add field to MT&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Live in the Delirious Cool</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10069</link>
		<dc:creator>Live in the Delirious Cool</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10069</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Commenting, it's where the fun is.&lt;/strong&gt;
Can you believe in all this time I've never once hacked or altered my MT files?  This might be worth it.  Also, a nice, easy fix to the "remember me" problem seen in MT commenting.</description>
		<content:encoded><![CDATA[<trackback /><strong>Commenting, it&#8217;s where the fun is.</strong><br />
Can you believe in all this time I&#8217;ve never once hacked or altered my MT files?  This might be worth it.  Also, a nice, easy fix to the &#8220;remember me&#8221; problem seen in MT commenting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bloggie Broad</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10070</link>
		<dc:creator>Bloggie Broad</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10070</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Bloggie Scripty Reverb&lt;/strong&gt;
I like to keep an up-to-date listing of all the...</description>
		<content:encoded><![CDATA[<trackback /><strong>Bloggie Scripty Reverb</strong><br />
I like to keep an up-to-date listing of all the&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Big Pink Cookie</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10068</link>
		<dc:creator>Big Pink Cookie</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10068</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;I See You...&lt;/strong&gt;
I see all these people floating through my personal blogosphere, but no one is stopping to say hi. Come on...</description>
		<content:encoded><![CDATA[<trackback /><strong>I See You&#8230;</strong><br />
I see all these people floating through my personal blogosphere, but no one is stopping to say hi. Come on&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10066</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10066</guid>
		<description>(I meant .RDF or .XML feeds)</description>
		<content:encoded><![CDATA[<p>(I meant .RDF or .XML feeds)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10065</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10065</guid>
		<description>FYI - if you'd like to display a long list of XML feeds from anyone that's ever commented on your site and filled out that field, use this code:&lt;h3&gt;&#60;?
mysql_connect ("localhost", "DBUSERNAME", "DBPASSWORD") or die ('I cannot connect to the database because: ' . mysql_error());
	mysql_select_db ("MTDATABASE");
	&#36;query = "SELECT DISTINCT comment_author_rss, comment_author FROM mt_comment
 WHERE comment_author_rss &#60;&#62; '' order by comment_author";
	&#36;result = mysql_query(&#36;query);
	&#36;numrows = mysql_num_rows(&#36;result);
	for (&#36;i=0; &#36;i &#60; &#36;numrows; &#36;i++) {
		&#36;row = mysql_fetch_array(&#36;result);
		if (stristr(&#36;row['comment_author_rss'], ".rdf") &#124;&#124; stristr(&#36;row['comment_author_rss'], ".xml")) {
		echo &#36;row['comment_author']; 
		echo "&#60;br&#62;";
		echo "&#60;a href=&#92;"".&#36;row['comment_author_rss']."&#92;"&#62;";
		echo &#36;row['comment_author_rss'];
		echo "&#60;/a&#62;";
		echo "&#60;br&#62;";
		echo "&#60;br&#62;";
		}
	}	
?&#62;&lt;/h3&gt;</description>
		<content:encoded><![CDATA[<p>FYI - if you&#8217;d like to display a long list of XML feeds from anyone that&#8217;s ever commented on your site and filled out that field, use this code:<br />
<h3>&lt;?<br />
mysql_connect (&#8221;localhost&#8221;, &#8220;DBUSERNAME&#8221;, &#8220;DBPASSWORD&#8221;) or die (&#8217;I cannot connect to the database because: &#8216; . mysql_error());<br />
	mysql_select_db (&#8221;MTDATABASE&#8221;);<br />
	&#36;query = &#8220;SELECT DISTINCT comment_author_rss, comment_author FROM mt_comment<br />
 WHERE comment_author_rss &lt;&gt; &#8221; order by comment_author&#8221;;<br />
	&#36;result = mysql_query(&#36;query);<br />
	&#36;numrows = mysql_num_rows(&#36;result);<br />
	for (&#36;i=0; &#36;i &lt; &#36;numrows; &#36;i++) {<br />
		&#36;row = mysql_fetch_array(&#36;result);<br />
		if (stristr(&#36;row['comment_author_rss'], &#8220;.rdf&#8221;) || stristr(&#36;row['comment_author_rss'], &#8220;.xml&#8221;)) {<br />
		echo &#36;row['comment_author'];<br />
		echo &#8220;&lt;br&gt;&#8221;;<br />
		echo &#8220;&lt;a href=&#92;&#8221;".&#36;row['comment_author_rss'].&#8221;&#92;&#8221;&gt;&#8221;;<br />
		echo &#36;row['comment_author_rss'];<br />
		echo &#8220;&lt;/a&gt;&#8221;;<br />
		echo &#8220;&lt;br&gt;&#8221;;<br />
		echo &#8220;&lt;br&gt;&#8221;;<br />
		}<br />
	}<br />
?&gt;</h3>
]]></content:encoded>
	</item>
	<item>
		<title>By: JLT</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10064</link>
		<dc:creator>JLT</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10064</guid>
		<description>Thanks for the great help as always!  Keep up the great work, I really appreciate it.</description>
		<content:encoded><![CDATA[<p>Thanks for the great help as always!  Keep up the great work, I really appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10063</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10063</guid>
		<description>Yes - sort of. The hack can be used to add any type of extra field - with the exception that what I add to comments.pm - is some code to check to make sure it's a valid URL. If you wanted it to add the field directly to the database...then instead of this part:&lt;h3&gt;my &#36;rssfeed = &#36;q-&#62;param('rssfeed') &#124;&#124; '';
if (&#36;rssfeed) {
require MT::Util;
if (my &#36;fixed2 = MT::Util::is_valid_url(&#36;rssfeed)) {
&#36;rssfeed = &#36;fixed2;
} else {
return &#36;app-&#62;handle_error(&#36;app-&#62;translate(
"Invalid URL '[_1]'", &#36;rssfeed));
}
}
&#36;comment-&#62;author_rss(remove_html(&#36;rssfeed));&lt;/h3&gt;&lt;p&gt;Just add this:&lt;/p&gt;&lt;h3&gt;&#36;comment-&gt;author_rss(&#36;q-&gt;param('rssfeed'));&lt;/h3&gt;</description>
		<content:encoded><![CDATA[<p>Yes - sort of. The hack can be used to add any type of extra field - with the exception that what I add to comments.pm - is some code to check to make sure it&#8217;s a valid URL. If you wanted it to add the field directly to the database&#8230;then instead of this part:<br />
<h3>my &#36;rssfeed = &#36;q-&gt;param(&#8217;rssfeed&#8217;) || &#8221;;<br />
if (&#36;rssfeed) {<br />
require MT::Util;<br />
if (my &#36;fixed2 = MT::Util::is_valid_url(&#36;rssfeed)) {<br />
&#36;rssfeed = &#36;fixed2;<br />
} else {<br />
return &#36;app-&gt;handle_error(&#36;app-&gt;translate(<br />
&#8220;Invalid URL &#8216;[_1]&#8216;&#8221;, &#36;rssfeed));<br />
}<br />
}<br />
&#36;comment-&gt;author_rss(remove_html(&#36;rssfeed));</h3>
<p>Just add this:</p>
<h3>&#36;comment->author_rss(&#36;q->param(&#8217;rssfeed&#8217;));</h3>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al-Muhajabah</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10060</link>
		<dc:creator>Al-Muhajabah</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comment-10060</guid>
		<description>Jennifer, this isn't specifically about your new plugin-hack, but I want to thank you for giving such detailed instructions. I had been trying to implement a plugin-hack to create threaded comments and a new comment subject field. But for some reason, it wouldn't work!

It turns out that I had forgotten about the subscribe to comments script. Since I didn't put the new fields in the processing.tmpl page, they got lost before they were entered in the database.

After I read your instructions here (and after I stopped banging my head on my computer monitor!) I went and added the new fields to processing.tmpl. Now it works like a charm!</description>
		<content:encoded><![CDATA[<p>Jennifer, this isn&#8217;t specifically about your new plugin-hack, but I want to thank you for giving such detailed instructions. I had been trying to implement a plugin-hack to create threaded comments and a new comment subject field. But for some reason, it wouldn&#8217;t work!</p>
<p>It turns out that I had forgotten about the subscribe to comments script. Since I didn&#8217;t put the new fields in the processing.tmpl page, they got lost before they were entered in the database.</p>
<p>After I read your instructions here (and after I stopped banging my head on my computer monitor!) I went and added the new fields to processing.tmpl. Now it works like a charm!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.319 seconds -->
