<?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: Record MTSearch terms</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Jan 2012 01:21:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Promo</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8084</link>
		<dc:creator>Promo</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8084</guid>
		<description>Odd that it works for some folks and not for others. I wonder what the secret is?</description>
		<content:encoded><![CDATA[<p>Odd that it works for some folks and not for others. I wonder what the secret is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8085</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8085</guid>
		<description>&lt;i&gt;&lt;a href=&quot;http://www.google.com&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;here&lt;/b&gt; &lt;/a&gt;&lt;/i&gt;
</description>
		<content:encoded><![CDATA[<p><i><a href="http://www.google.com" target="_blank"><b>here</b> </a></i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8083</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8083</guid>
		<description>I took the liberty of extending the hack a little.

I added display of the date, supression of logging blank searches, and an error exit if the log file can&#039;t be written to.

Here&#039;s my version:

# Log the search request

# Ideally the two variables that follow would be in the mt-search.cfg file and read from there
# But I don&#039;t know how to do that
# But the rest of the hack is written to allow for that future enhancement

my $uselog = 1; # 1 = YES; 0 = NO
my $logfile = &quot;/full/path/to/log/file&quot;;

# Only write to log if configured to do so
if ($uselog eq &#039;1&#039;) {
# Only write to log is search string is not null
if ($searchstr ne &quot;&quot;) {
# Open the log file or display error and stop
open (LOG, &quot;&amp;gt&amp;gt$logfile&quot;) or die &quot;Can not open file $logfile: $!&quot;;
# Get the system date
my $date = `date`;
# Remove the carriage return from the date string
chop($date); 
# Write the data to the file
print LOG &quot;$date&quot;;
print LOG &quot; - &quot;;
print LOG &quot;$searchstr&#092;n&quot;;
# Close the log file
close (LOG);
}
}

# End of logging hack

I posted this on Graham&#039;s site too, but thought I&#039;d put it here, since this is what led me to the hack originally.</description>
		<content:encoded><![CDATA[<p>I took the liberty of extending the hack a little.</p>
<p>I added display of the date, supression of logging blank searches, and an error exit if the log file can&#039;t be written to.</p>
<p>Here&#039;s my version:</p>
<p># Log the search request</p>
<p># Ideally the two variables that follow would be in the mt-search.cfg file and read from there<br />
# But I don&#039;t know how to do that<br />
# But the rest of the hack is written to allow for that future enhancement</p>
<p>my $uselog = 1; # 1 = YES; 0 = NO<br />
my $logfile = &#034;/full/path/to/log/file&#034;;</p>
<p># Only write to log if configured to do so<br />
if ($uselog eq &#039;1&#039;) {<br />
# Only write to log is search string is not null<br />
if ($searchstr ne &#034;&#034;) {<br />
# Open the log file or display error and stop<br />
open (LOG, &#034;&#038;gt&#038;gt$logfile&#034;) or die &#034;Can not open file $logfile: $!&#034;;<br />
# Get the system date<br />
my $date = `date`;<br />
# Remove the carriage return from the date string<br />
chop($date);<br />
# Write the data to the file<br />
print LOG &#034;$date&#034;;<br />
print LOG &#034; &#8211; &#034;;<br />
print LOG &#034;$searchstr&#92;n&#034;;<br />
# Close the log file<br />
close (LOG);<br />
}<br />
}</p>
<p># End of logging hack</p>
<p>I posted this on Graham&#039;s site too, but thought I&#039;d put it here, since this is what led me to the hack originally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robyn</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8081</link>
		<dc:creator>robyn</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8081</guid>
		<description>I&#039;m not so sure Christine -- at Promo&#039;s suggestion I just tried it on Todd&#039;s blog which still uses the DB method, and unless I just did it horribly wrong, it still gave the same Internal Server Error it gave me using mySQL.</description>
		<content:encoded><![CDATA[<p>I&#039;m not so sure Christine &#8212; at Promo&#039;s suggestion I just tried it on Todd&#039;s blog which still uses the DB method, and unless I just did it horribly wrong, it still gave the same Internal Server Error it gave me using mySQL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kristine</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8082</link>
		<dc:creator>kristine</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8082</guid>
		<description>I wanted to play with this, but decided to wait until sometime later this month because MT2.5 will have the MT search integrated into it.  :)</description>
		<content:encoded><![CDATA[<p>I wanted to play with this, but decided to wait until sometime later this month because MT2.5 will have the MT search integrated into it.  <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robyn</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8079</link>
		<dc:creator>robyn</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8079</guid>
		<description>I didn&#039;t get it to work either -- I wonder if it&#039;s either a mySQL or Blogomania/HM thing?</description>
		<content:encoded><![CDATA[<p>I didn&#039;t get it to work either &#8212; I wonder if it&#039;s either a mySQL or Blogomania/HM thing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christine</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8080</link>
		<dc:creator>Christine</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8080</guid>
		<description>More than likely a MySQL/mt-search issue rather than a server issue.  Has anyone contacted the original author to see if he has a fix for the MySQL version?</description>
		<content:encoded><![CDATA[<p>More than likely a MySQL/mt-search issue rather than a server issue.  Has anyone contacted the original author to see if he has a fix for the MySQL version?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8078</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8078</guid>
		<description>Just stopping by.  Lovely site!</description>
		<content:encoded><![CDATA[<p>Just stopping by.  Lovely site!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/comment-page-1/#comment-8077</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/09/11/record-mtsearch-terms/#comment-8077</guid>
		<description>Promo (by the way, you need to update you &quot;nickname&quot; so you get credit for your posts...)

you asked me if we posted a link to this, my bad - apparently &lt;a href=&quot;http://www.scriptygoddess.com/archives/001220.php&quot; target=&quot;_blank&quot;&gt;we did&lt;/a&gt; (although, funny it didn&#039;t come up when I did a search for &quot;search&quot; ???!!!)</description>
		<content:encoded><![CDATA[<p>Promo (by the way, you need to update you &#034;nickname&#034; so you get credit for your posts&#8230;)</p>
<p>you asked me if we posted a link to this, my bad &#8211; apparently <a href="http://www.scriptygoddess.com/archives/001220.php" target="_blank">we did</a> (although, funny it didn&#039;t come up when I did a search for &#034;search&#034; ???!!!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

