<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>scriptygoddess &#187; MT hacks</title>
	<atom:link href="http://www.scriptygoddess.com/archives/category/movable-type/mt-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Dec 2011 18:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Yearly Comment Leader Script</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/23/yearly-comment-leader-script/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/12/23/yearly-comment-leader-script/#comments</comments>
		<pubDate>Tue, 23 Dec 2003 14:52:42 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/23/yearly-comment-leader-script/</guid>
		<description><![CDATA[Guest authored by<br />
Jenni - <a href="http://www.bloggiebroad.com">bloggiebroad.com</a>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://mt.addiebella.com/blog/archives/000817.php" target="_blank">just implemented</a> the comment leaderboard script available <a href="http://www.scriptygoddess.com/archives/003747.php" target="_blank">here</a>, but I wanted to feature the *yearly* comment leaders as opposed to the monthlies. I tinkered with it and lo and behold, it actually <i>worked</i>!<br />
<span id="more-1163"></span><br />
Replace the <b>bold</b> text with your own paths, e-mail address, author name, and blog id. You can adjust the number of leaders shown as well; the default is ten. You&#039;ll need the connect.php file in order for this script to work &#8212; info is available at <a href="http://www.thegirliematters.com/tips/archives/0301/comments_leader_board_with_php_and_mysql.php" target="_blank">The Girlie Matters</a>.</p>
<h3>&lt;? include (&#034;<b>/PATH/TO/YOUR/FILE/connect.php</b>&#034;);<br />
$leaders = mysql_query(&#034;SELECT comment_email, comment_url, comment_author, COUNT(*) as comment_count FROM mt_comment WHERE (comment_blog_id=<b>1</b>) AND (comment_email !=&#039;<b>E-MAIL ADDRESS YOU USE ON YOUR BLOG</b>&#039; AND comment_author !=&#039;<b>NAME YOU USE ON YOUR BLOG</b>&#039;) AND YEAR(comment_created_on) = YEAR(CURDATE()) GROUP BY comment_author, comment_email ORDER BY comment_count DESC LIMIT <b>10</b>&#034;);<br />
while($row = mysql_fetch_array($leaders)) {<br />
while (list($key,$val) = each($row)) {$$key = $val;}<br />
if (!empty($comment_url)) {<br />
$authorlink = &#034;&lt;a href=&#92;&#034;$comment_url&#92;&#034;&gt;$comment_author&lt;/a&gt;&#034;;<br />
} elseif(!empty($comment_email)) {<br />
$authorlink = &#034;&lt;a href=&#92;&#034;mailto:$comment_email&#92;&#034;&gt;$comment_author&lt;/a&gt;&#034;;<br />
} else {$authorlink = $comment_author;}<br />
echo &#034;$authorlink &#8212; $comment_count comments this year&lt;br /&gt;&#92;n&#034;;<br />
}<br />
?&gt;</h3>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/12/23/yearly-comment-leader-script/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Don&#039;t Be a Spammer!</title>
		<link>http://www.scriptygoddess.com/archives/2003/11/25/dont-be-a-spammer/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/11/25/dont-be-a-spammer/#comments</comments>
		<pubDate>Wed, 26 Nov 2003 01:05:30 +0000</pubDate>
		<dc:creator>Christine</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/11/25/dont-be-a-spammer/</guid>
		<description><![CDATA[Last weekend, I had to deal with almost 4,000 bounce messages that were sent &#034;from&#034; my domain. I blamed it on someone using my domain for the reply to address, but now I wonder if it wasn&#039;t a new version of spamming through MT. &#034;Mail This Entry&#034; used for spam &#8211; &#034;If you are using [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Last weekend, I had to deal with almost 4,000 bounce messages that were sent &#034;from&#034; my domain.  I blamed it on someone using my domain for the reply to address, but now I wonder if it wasn&#039;t a new version of spamming through MT.  <a title="[the girlie matters] tips and tricks: 'mail this entry' used for spam" href="http://www.thegirliematters.com/tips/archives/0311/mail_this_entry_used_for_spam.php">&#034;Mail This Entry&#034; used for spam</a> &#8211; &#034;If you are using Movable Type&#039;s &#034;Mail This Entry&#034; feature on your blog, you are advised to rename your mt-send-entry.cgi file, or remove the feature entirely.  If you are not using the feature on your blog, you still need to either rename the script, disable it by changing the permissions, or remove it from your server altogether.&#034;  Read all about it at <a href="http://www.thegirliematters.com/tips/archives/0311/mail_this_entry_used_for_spam.php">Girlie Matters<a>.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/11/25/dont-be-a-spammer/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Comment Notification Hack for MT-Blacklist</title>
		<link>http://www.scriptygoddess.com/archives/2003/10/15/comment-notification-hack-for-mt-blacklist/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/10/15/comment-notification-hack-for-mt-blacklist/#comments</comments>
		<pubDate>Wed, 15 Oct 2003 19:09:36 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/10/15/comment-notification-hack-for-mt-blacklist/</guid>
		<description><![CDATA[Guest authored by<br />
Shawn Allison - <a href="http://www.shawnallison.com ">shawnallison.com</a>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>On October 13th, the <a href="http://www.jayallen.org/misc/projects/mt-blacklist/">MT-Blacklist plugin</a> was released by Jay Allen. However, I found that the Blacklist.pm conflicts with the Adam Kalsey <a href="http://www.kalsey.com/2002/08/comment_notification_hack/">comment notification Hack</a>. </p>
<p>There is a simple way of fixing this small error if you do not want to receive e-mails of your comments. It worked for me but I can&#039;t guarantee it will work for you. If you try it, make sure you back up the original files you are modifying before attempting. I don&#039;t suggest this to novice MT users.<br />
<span id="more-1146"></span><br />
Open Blacklist.pm to line 2395 and you will see the following:</p>
<h3>MT::Mail->send(&#92;%head, $body);</h3>
<p>Place the following code in its place:</p>
<h3>MT::Mail->send(&#92;%head, $body) unless $author->email eq $comment->email;</h3>
<p>This will act the same as the Adam Kalsey Comment notification Hack as Patricia posted in reply to the original entry posted on the hack.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/10/15/comment-notification-hack-for-mt-blacklist/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>More Meaningful Comment Notifications</title>
		<link>http://www.scriptygoddess.com/archives/2003/09/06/more-meaningful-comment-notifications/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/09/06/more-meaningful-comment-notifications/#comments</comments>
		<pubDate>Sat, 06 Sep 2003 18:48:00 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/09/06/more-meaningful-comment-notifications/</guid>
		<description><![CDATA[Guest Authored by<br />
Promoguy - <a href="http://www.promoguy.net/">www.promoguy.net</a>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I wanted to change how my blog comment notifications looked. Since I only have one blog, I don&#039;t need the first part to tell me which blog the comment is from. I also wanted to do whois lookups on the ipaddresses so I can get more info about the people who are commenting on my site.</p>
<p><span id="more-1126"></span></p>
<p>Here&#039;s what the original email looks like:</p>
<h3>Subj: <b>[PromoGuy dot Net] New Comment Posted to &#039;7 x 14 + 2 = 100 Things<br />
  Aboot Me&#039;<br />
  </b>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
  A new comment has been posted on your blog PromoGuy dot Net, on entry #1489<br />
  (7 x 14 + 2 = 100 Things Aboot Me).<br />
<u>http://www.promoguy.net/archives/001489.php</u><br />
IP Address: 123.45.678.90<br />
Name: Lisa<br />
Email Address: SomeMail@SomeDomain.net<br />
URL: <u>http://www.snarkypants.com</u></p>
<p>Comments:<br />
Hey! Where&#039;s the rest?? You promised! <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Slackerboy!<br />
&#8211; </h3>
<p>After my modifications, my Comment Notifications look like this:</p>
<h3>Subj: <b>[7 x 14 + 2 = 100 Things Aboot Me] by &quot;Lisa&quot; &#8211; PromoGuy dot Net</b><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&quot;Lisa&quot; left a new comment in your blog PromoGuy dot Net, on entry #1489 (7 x<br />
14 + 2 = 100 Things Aboot Me).<br />
<u>http://www.promoguy.net/archives/001489.php</u><br />
IP Address: 123.45.678.90<br />
IP Info: <u>http://www.samspade.org/t/lookat?a=123.45.678.90</u><br />
Name: Lisa<br />
Email Address: SomeMail@SomeDomain.net<br />
URL: <u>http://www.snarkypants.com</u></p>
<p>Comments:<br />
Hey! Where&#039;s the rest?? You promised! <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Slackerboy!<br />
&#8211; </h3>
<p>My changes reflect my preferences, yours may be different. </p>
<p>1. I don&#039;t need to see &quot;New Comment Posted to&quot; in my subject line. It takes<br />
up too much space, and my web mail program won&#039;t show full subject lines, so I<br />
need the important stuff first. Besides, by looking at the Brackets I recognize<br />
that it is a comment notification. </p>
<p>2. I want to know which post got the comment, so I put that first. I don&#039;t<br />
need to know which blog it is from, because I only have one &#8211; so I moved that<br />
part to the end. Plus, I wanted to know Who sent the comment. </p>
<p>3. On heavy comment days, my inbox is nearly bursting. Now when I see a<br />
comments is posted by a certain person, I can go to read that one first.</p>
<p>The only major change in the Body was making the IP Address into a clickable<br />
link to do a WHOIS and TRACEROUTE on SamSpade.com. I added a new line for that.<br />
I also slightly changed the wording on the first sentence. </p>
<p>Here is what I did. Again, once you see the changes I made, you will probably<br />
want to customize it the way you want it to look. <u>Please note: This code was<br />
tested and executed on MoveableType 2.64. </u>I don&#039;t know if it will work on<br />
lower versions, so YMMV.</p>
<p><b>Disclaimer: Do this at your own risk. It should go fine, but you never<br />
know. I won&#039;t be responsible for fixing it if you go and screw it up.</b></p>
<p>First, FTP or otherwise navigate to your MT installation directory and find:<br />
/lib/MT/App/</p>
<p>Now, make a backup copy of Comments.pm (always make backups, yo).</p>
<p>Open up Comments.pm in your favorite text editor (I use<br />
<a href="http://www.araneae.com/screenshots.html">araneae</a>; for simple jobs<br />
like this).</p>
<p>Go to Line 132 or search for &quot;$author-&gt;email&quot; (without the quotes) and you<br />
will be close.</p>
<p>Be sure you are on the line that says &quot;Subject =&gt;&quot; and we are ready to get<br />
jiggy!</p>
<p>Highlight and delete:</p>
<h3>Subject =&gt; &#039;[' . $blog-&gt;name . '] &#039; . $app-&gt;translate(&#039;New Comment Posted to &#92;&#039;[_1]&#92;&#034;, $entry-&gt;title));</h3>
<p>Replace it with:</p>
<h3>Subject =&gt; &#039;[' . $entry-&gt;title . '] &#039; . $app-&gt;translate(&#039;new comment by &#034;[_1]&#034; &#8211; [_2]&#039;, $comment-&gt;author, $blog-&gt;name)<br />
);</h3>
<p>Now if you want to Tweak the Body of the message, scroll down to about Line<br />
146.</p>
<p>I edited the body of the text to lead with the Comment Author&#039;s name. So<br />
change this:</p>
<h3>my $body = $app-&gt;translate(&#039;A new comment has been posted on your blog [_1], on entry #[_2] ([_3]).&#039;, $blog-&gt;name, $entry-&gt;id, $entry-&gt;title);</h3>
<p>To this:</p>
<h3>my $body = $app-&gt;translate(&#039;&#034;[_1]&#034; left a new comment in your blog [_2], on entry #[_3] ([_4]).&#039;, $comment-&gt;author, $blog-&gt;name, $entry-&gt;id, $entry-&gt;title,);</h3>
<p>If you want to investigate their IP address, put your cursor right under</p>
<h3>$app-&gt;translate(&#039;IP Address:&#039;) . &#039; &#039; . $comment-&gt;ip . &quot;&#92;n&quot; .</h3>
<p>and hit enter, making a blank line.</p>
<p>Now copy and paste this:</p>
<h3>$app-&gt;translate(&#039;IP Info: http://www.samspade.org/t/lookat?a=[_1]&#039;, $comment-&gt;ip) . &quot;&#92;n&quot; .</h3>
<p>Save the file, making sure it has the .pm extension. Save it back to the same<br />
directory, overwriting the current Comments.pm. (because you already have a<br />
backup, right?).</p>
<p>Now go leave yourself a comment. See how much more meaningful those Comment<br />
Notifications are? </p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/09/06/more-meaningful-comment-notifications/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Author&#039;s RSS Feed field in comments</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/#comments</comments>
		<pubDate>Fri, 13 Jun 2003 03:27:00 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/</guid>
		<description><![CDATA[A while back Chris had asked about getting an extra field in the comments form. At the time all I could do was figure out a way to get the field emailed to you. But thanks to a few lessons I learned in the last script/MT-hack I wrote &#8211; I&#039;ve figured out how to do [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://www.scriptygoddess.com/archives/003555.php">while back</a> <a href="http://chris.pirillo.com/archives/2003_03.html#004210">Chris</a> had asked about getting an extra field in the comments form. At the time all I could do was figure out a way to get the field emailed to you. But thanks to a few lessons I learned in the last script/MT-hack I wrote &#8211; I&#039;ve figured out how to do it all. So this is part MT-hack and part plugin.</p>
<p>Here&#039;s a summary of what this does:</p>
<p>You add a field in your comments form to collect RSS feed&#039;s from your commenters and then you can display it back in your comments on your site &#8211; just like you do with their blog-URL.</p>
<p>What&#039;s involved:</p>
<p>You&#039;ll be editing any template you use that displays comments or the comment form, and install a plugin (which is as simple as uploading a file to your site) As well, You&#039;ll need to edit two MT files and the mt-database. If you&#039;re not comfortable doing this &#8211; I suggest you set up a test MT install and play with this first.</p>
<p><a href="http://www.scriptygoddess.com/downloads/commentAuthorRSS.zip">Here is the download for the plugin</a>. The tags associated with the plugin will not work on their own &#8211; you&#039;ll need to follow all of the instructions (below).</p>
<p>Some credit notes: A MASSIVELY HUGE THANK YOU to <a href="http://www.milbertus.com/">&#034;Milbertus&#034; (A.) of milbertus.com</a> for writing the plugin for the MTCommentFeed tag (MTCommentPreviewFeed tags still in development at this time) (I wrote the plugin for the MTCommentIfRSS tag. w00t!)<br />
<span id="more-1084"></span><br />
<b>Part One: Edit your comments form</b></p>
<p>In your comments form, add this:</p>
<h3><font color="red"><b>Your RSS Feed: &lt;input type=&#034;text&#034; name=&#034;rssfeed&#034; /&gt;</b></font></h3>
<p>If you have the &#034;remember me&#034; cookies working on this page, and you&#039;d like this field to also be remembered, look for your &#034;remember me&#034; and &#034;forget me&#034; functions (towards the top of your page), and just add the line that I have in red/bold text:</p>
<h3>function rememberMe (f) {<br />
var now = new Date();<br />
fixDate(now);<br />
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);<br />
setCookie(&#039;mtcmtauth&#039;, f.author.value, now, &#034;, HOST, &#034;);<br />
setCookie(&#039;mtcmtmail&#039;, f.email.value, now, &#034;, HOST, &#034;);<br />
setCookie(&#039;mtcmthome&#039;, f.url.value, now, &#034;, HOST, &#034;);<br />
<font color="red"><b>setCookie(&#039;mtcmtrssfeed&#039;, f.rssfeed.value, now, &#034;, HOST, &#034;);</b></font><br />
}<br />
function forgetMe (f) {<br />
deleteCookie(&#039;mtcmtmail&#039;, &#034;, HOST);<br />
deleteCookie(&#039;mtcmthome&#039;, &#034;, HOST);<br />
deleteCookie(&#039;mtcmtauth&#039;, &#034;, HOST);<br />
<font color="red"><b>deleteCookie(&#039;mtcmtrssfeed&#039;, &#034;, HOST);</b></font><br />
f.email.value = &#034;;<br />
f.author.value = &#034;;<br />
f.url.value = &#034;;<br />
<font color="red"><b>f.rssfeed.value =&#034;;</b></font><br />
}</h3>
<p>Now look towards the bottom for the page for the code below and add what I have in red/bold</p>
<h3>&lt;script type=&#034;text/javascript&#034; language=&#034;javascript&#034;&gt;<br />
&lt;!&#8211;<br />
document.comments.email.value = getCookie(&#034;mtcmtmail&#034;);<br />
document.comments.author.value = getCookie(&#034;mtcmtauth&#034;);<br />
document.comments.url.value = getCookie(&#034;mtcmthome&#034;);<br />
<font color="red"><b>document.comments.rssfeed.value = getCookie(&#034;mtcmtrssfeed&#034;);</b></font><br />
//&#8211;&gt;<br />
&lt;/script&gt;</h3>
<p>
<p><strong>Part Two: Getting the field into the MT database.</strong></p>
<p>You will need to run this SQL query. I suggest going into phpMyAdmin (if your<br />
  host provider has this). Click on the SQL tab, and paste the line below in the<br />
  field, and then click go.</p>
<h3>ALTER TABLE mt_comment ADD comment_author_rss VARCHAR( 255 ) ;</h3>
<p>
<p><b>Part Three: Edit Comments.pm</b></p>
<p>This is the part that has to be re-done each time you upgrade (or replace your comments.pm file). Your Comments.pm file should be located in this path: yourMTfolder/lib/MT/App/Comments.pm<br />
Look for this line (probably around line 82):</p>
<h3><i>$comment->author(remove_html(scalar $q->param(&#039;author&#039;)));</i></h3>
<p>and add these lines below it:</p>
<h3><font color="red">my $rssfeed = $q-&gt;param(&#039;rssfeed&#039;) || &#034;;<br />
if ($rssfeed) {<br />
require MT::Util;<br />
if (my $fixed2 = MT::Util::is_valid_url($rssfeed)) {<br />
$rssfeed = $fixed2;<br />
} else {<br />
return $app-&gt;handle_error($app-&gt;translate(<br />
&quot;Invalid URL &#039;[_1]&#039;&quot;, $rssfeed));<br />
}<br />
}<br />
$comment-&gt;author_rss(remove_html($rssfeed));</font></h3>
<p>Look for this line (probably around line 150):</p>
<h3><i>$app->translate(&#039;URL:&#039;) . &#039; &#039; . $comment->url . &#034;&#92;n&#92;n&#034; .</i></h3>
<p>and add this line below it:</p>
<h3><font color="red"><b>$app->translate(&#039;RSS Feed:&#039;) . &#039; &#039; . $comment->rssfeed. &#034;&#92;n&#92;n&#034; .</b></font></h3>
<p>
<p><strong>Part Four: Edit Comment.pm</strong></p>
<p>This will also need to be re-done each time you upgrade (or replace your Comment.pm file). Your Comment.pm file should be located in this path: YourMTFolder/lib/MT/Comment.pm<br />
Look for this line</p>
<h3><em>&#039;id&#039;, &#039;blog_id&#039;, &#039;entry_id&#039;, &#039;author&#039;, &#039;email&#039;, &#039;url&#039;, &#039;text&#039;, &#039;ip&#039;</em></h3>
<p>CHANGE it to (you&#039;re just adding the<strong> &#039;author_rss&#039;,</strong> in there:</p>
<h3> &#039;id&#039;, &#039;blog_id&#039;, &#039;entry_id&#039;, &#039;author&#039;, &#039;email&#039;, &#039;url&#039;, <font color="red"><strong>&#039;author_rss&#039;</strong></font>,<br />
  &#039;text&#039;, &#039;ip&#039;</h3>
<p>
<p><strong>Part Five: Using the Plugin:</strong></p>
<p>Here&#039;s an example of how the tags will work. This site uses this plugin and mt-hack, so you can see how it is displayed.</p>
<h3>&lt;MTCommentIfRSS&gt;<br />
  &lt;a href=&quot;&lt;$MTCommentFeed$&gt;&quot;&gt;My RSS Feed&lt;/a&gt;<br />
  &lt;/MTCommentIfRSS&gt;</h3>
<p>(MTCommentPreviewFeed example coming&#8230;)</p>
<p><strong>Part Six/Addendum: Comment Subscribe modification</strong></p>
<p>If you use &quot;subscribe to comments&quot; script, you&#039;ll also need to edit the processing.tmpl file that came with the script. Add this to the form on that page:</p>
<h3>&lt;input type=&quot;hidden&quot; name=&quot;rssfeed&quot; value=&quot;&lt;?<br />
echo $rssfeed ?&gt;&quot;&gt;</h3>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/06/12/authors-rss-feed-field-in-comments/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Edit this entry &#8211; right now!</title>
		<link>http://www.scriptygoddess.com/archives/2003/05/18/edit-this-entry-right-now/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/05/18/edit-this-entry-right-now/#comments</comments>
		<pubDate>Mon, 19 May 2003 01:45:07 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/05/18/edit-this-entry-right-now/</guid>
		<description><![CDATA[This was an item cooked up by Lynda of digitalwoe.com but her original entry appears to be lost and this hack is so handy, I wanted to make sure it was readily available to anyone who wants it. You need to be using PHP to use this &#8211; just insert the code in your MT [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This was an item cooked up by Lynda of <a href="http://www.digitalwoe.com">digitalwoe.com</a> but her original entry appears to be lost and this hack is so handy, I wanted to make sure it was readily available to anyone who wants it.  You need to be using PHP to use this &#8211; just insert the code in your MT index template after inserting your IP iformation:</p>
<h3>&lt;?<br />
$ip = $REMOTE_ADDR;<br />
if ($ip == &#034;<font color="red">IP #1</font>&#034; || $ip == &#034;<font color="red">IP #2</font>&#034;) {<br />
print &#034;&lt;a href=&#92;&#034;&lt;$MTCGIPath$&gt;mt.cgi?__mode=view&amp;_type=entry&amp;id=&lt;$MTEntryID$&gt;&#038;blog_id=&lt;$MTBlogID$&gt;&#92;&#034; target=&#92;&#034;edit&#92;&#034; title=&#92;&#034;For me, not you&#92;&#034;&gt;[edit]&lt;/a&gt;&#034;;<br />
}<br />
?&gt;</h3>
<p>(replace &#034;IP #1&#034; and &#034;IP #2&#034; with your IP address(s) that you want to be able to edit posts from)</p>
<p><b>Guest authored by:<br />
Donna &#8211; <a href="http://www.deliriouscool.org">deliriouscool.org</a></b></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/05/18/edit-this-entry-right-now/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Converting entry dates to UTC in Movable Type with the PerlScript plugin</title>
		<link>http://www.scriptygoddess.com/archives/2003/05/17/converting-entry-dates-to-utc-in-movable-type-with-the-perlscript-plugin/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/05/17/converting-entry-dates-to-utc-in-movable-type-with-the-perlscript-plugin/#comments</comments>
		<pubDate>Sat, 17 May 2003 19:57:12 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/05/17/converting-entry-dates-to-utc-in-movable-type-with-the-perlscript-plugin/</guid>
		<description><![CDATA[I was recently frustrated by Movable Type&#039;s basic support of time zones. You can select a time zone as a number of hour plus or minus UTC, but there&#039;s no adjustment for Daylight Savings Time, and entry dates and times are saved in whatever localtime was at the time. The default RSS 1.0 template just [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I was recently frustrated by Movable Type&#039;s basic support of time zones. You can select a time zone as a number of hour plus or minus UTC, but there&#039;s no adjustment for Daylight Savings Time, and entry dates and times are saved in whatever localtime was at the time. The default RSS 1.0 template just tacks on the +/- hours, a global setting. If you ware exporting a year&#039;s worth of entries, there&#039;s no way to get the correct time for both summer and winter entries.</p>
<p>I then remembered some perl functions that can convert times from local time to UTC and then to whatever timezone you want. A Unix system can keep track of DST, even from the past, so the new UTC times will be correct. With Brad Choate&#039;s <a href="http://www.bradchoate.com/past/mtperlscript.php">PerlScript</a> plugin, you can put perl code right in your template. With 4 lines of code, I was able to print out a UTC date and time suitable for RSS.</p>
<h3>&lt;dc:date&gt;&lt;MTPerlScript&gt;<br />
use Time::Local;<br />
my $mytime = timelocal(&lt;$MTEntryDate format=<br />
    &#034;(&#039;%S&#039;, &#039;%M&#039;, &#039;%H&#039;, &#039;%e&#039;, &#039;%m&#039;-1, &#039;%Y&#039;-1900)&#034;$&gt;);<br />
my ($sec,$min,$hour,$mday,$mon,$year,<br />
    $wday,$yday,$isdst)=gmtime($mytime);<br />
printf(&#039;%d-%02d-%02dT%02d:%02d:%02dZ&#039;,<br />
    $year+1900,$mon+1,$mday,$hour,$min,$sec);<br />
&lt;/MTPerlScript&gt;&lt;/dc:date&gt;</h3>
<p>A couple of notes. The arguments to timelocal are in quotes, since the values may have a leading 0 that will confuse perl. If your time zone is different from your server, you&#039;ll have to adjust the %H parameter by the difference. Also, in perl months are numbered 0 to 11, and years are numbered from 1900, so we have to adjust accordingly. We then have a Unix timestamp in $mytime, and can obtain the individual components in UTC. I&#039;m using printf for the output since the format for dc:date in RSS is so strict. Each %02d formats the output of an integer to two places padded with a 0 if necessary.</p>
<p>(This code was originally posted <a href="http://www.papascott.de/2003/05/17/2256.php">www.papascott.de/2003/05/17/2256.php</a>)</p>
<p><b>Guest authored by:<br />
Scott Hanson &#8211; <a href="http://www.papascott.de/">papascott.de</a></b></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/05/17/converting-entry-dates-to-utc-in-movable-type-with-the-perlscript-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trackback ping fix</title>
		<link>http://www.scriptygoddess.com/archives/2003/04/27/trackback-ping-fix/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/04/27/trackback-ping-fix/#comments</comments>
		<pubDate>Sun, 27 Apr 2003 18:01:11 +0000</pubDate>
		<dc:creator>Lisa</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/04/27/trackback-ping-fix/</guid>
		<description><![CDATA[Samuel and I were talking the other night. We both use the SimpleComments plugin (combines Comments &#038; Trackbacks in the same area). We&#039;d both noticed that pings don&#039;t show up immediately unless you re-save the entry, so Samuel wrote a patch for it. The patch is written for MT 2.63 and is very easy to [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.alieniloquent.com">Samuel</a> and I were talking the other night. We both use the <a href="http://mt-plugins.org/archives/entry/simplecomments.php">SimpleComments plugin</a> (combines Comments &#038; Trackbacks in the same area).</p>
<p>We&#039;d both noticed that pings don&#039;t show up immediately unless you re-save the entry, so Samuel wrote <a href="http://www.alieniloquent.com/archives/2003/04/22/mtping01patch.rhtml">a patch for it</a>. The patch is written for MT 2.63 and is very easy to install (see his post for instructions).</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/04/27/trackback-ping-fix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>prevent duplicate comments</title>
		<link>http://www.scriptygoddess.com/archives/2003/04/14/prevent-duplicate-comments/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/04/14/prevent-duplicate-comments/#comments</comments>
		<pubDate>Mon, 14 Apr 2003 12:50:35 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/04/14/prevent-duplicate-comments/</guid>
		<description><![CDATA[Here&#039;s an MT hack that will prevent double comment posts. [saw it at Lisa's] (You can see the comment thread in the last post, but that Javascript method of disabling the button will not work &#8211; so this is rather timely!) No related posts. Related posts brought to you by Yet Another Related Posts Plugin.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Here&#039;s an MT hack that will <a href="http://www.nonplus.net/software/mt/AvoidingDuplicateComments.htm">prevent double comment posts</a>.<br />
[saw it at <a href="http://unixgal.techieswithcats.com/archives/002917.php">Lisa</a>'s]</p>
<p>(You can see the comment thread in the last post, but that Javascript method of disabling the button will not work &#8211; so this is rather timely!) <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/04/14/prevent-duplicate-comments/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Comment Leaders and UPDATE statements</title>
		<link>http://www.scriptygoddess.com/archives/2003/03/21/comment-leaders-and-update-statements/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/03/21/comment-leaders-and-update-statements/#comments</comments>
		<pubDate>Fri, 21 Mar 2003 19:53:10 +0000</pubDate>
		<dc:creator>kristine</dc:creator>
				<category><![CDATA[MT hacks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/03/21/comment-leaders-and-update-statements/</guid>
		<description><![CDATA[Brenna released a new version (0.3) of the CommentLeaders plugin and so while I was up last night, I did some tweaking to make my list work a bit better. This tip would also be helpful if you are using the version from this site: Scripts: Show recent comments WITH total comments from that comment [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://emptypages.org/">Brenna</a> released a new version (0.3) of the <a href="http://www.emptypages.org/more/tips/commentleaders.html" target="_blank">CommentLeaders plugin</a> and so while I was up last night, I did some tweaking to make my list work a bit better.  This tip would also be helpful if you are using the version from this site: <a href="http://www.scriptygoddess.com/archives/003360.php">Scripts: Show recent comments WITH total comments from that comment author</a> (which is based on <a href="http://www.thegirliematters.com/tips/archives/0301/comments_leader_board_with_php_and_mysql.php">Comment Leader Board with PHP and MySQL</a>).</p>
<p>See, when you&#039;ve been blogging for as long as me, your blogging friends tend to have changing email addresses over the years and so it makes it hard to tally the top commenters!  And besides, I have blogger and greymatter posts in there, and the GM posts didn&#039;t require email address, so I have a lot of empty posts.  </p>
<p>So I did some UPDATE statements in my MySQL database to make the newest addresses apply to all posts by that author.  It took a little browsing through the database to see which ones needed changing, but I think I&#039;ve got most of it.  I didn&#039;t bother changing any other information about the authors, just the email address for grouping correctly in the plugin output.  </p>
<p>Here&#039;s some examples in case you&#039;d like to do some condensing too&#8230;<br />
<span id="more-1015"></span><br />
I used PHPMyAdmin (available on my <a href="http://blogomania.com">blogomania</a> server) to enter my queries.  You&#039;ll want to get into your MT database within PHPMyAdmin and then browse to your mt_comment database to see which of the following will work for the users you want to condense.  Then when you&#039;ve figured it out, look for a <em>Run SQL query</em> box to paste the code into.  If its successful, it will report back how many lines changed in your database.</p>
<p>When commenter has changed email address:</p>
<h3>UPDATE mt_comment SET comment_email = &#034;newaddress@blog.com&#034; WHERE comment_email = &#034;oldaddress@blog.com&#034;</h3>
<p>When commenter has changed email addresses multiple times:</p>
<h3>UPDATE mt_comment SET comment_email = &#034;newaddress@blog.com&#034; WHERE comment_email = &#034;oldaddress@blog.com&#034; OR comment_email = &#034;olderaddress@blog.com&#034;</h3>
<p>When commenter has multiple email addresses, and is the only commenter with that name in your database (ie, this wouldn&#039;t work for the name Christine, since there are at least 3 Christines in my database)</p>
<h3>UPDATE mt_comment SET comment_email = &#034;newaddress@blog.com&#034; WHERE comment_author = &#034;UniqueName&#034;</h3>
<p>When commenter has multiple email addresses and multiple names that they&#039;ve posted under:</p>
<h3>UPDATE mt_comment SET comment_email = &#034;newaddress@blog.com&#034; WHERE comment_author = &#034;Nickname&#034; OR comment_author=&#034;Fullname&#034;</h3>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/03/21/comment-leaders-and-update-statements/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

