<?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: User Editable Comments</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/</link>
	<description></description>
	<pubDate>Sun, 20 Jul 2008 13:49:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: leduntitled</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-15320</link>
		<dc:creator>leduntitled</dc:creator>
		<pubDate>Sun, 13 Feb 2005 21:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-15320</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Editable Comments&lt;/strong&gt;
Thanks to Mark Jaquith and his script found at scriptygoddess, you will now be able to edit your comments for...</description>
		<content:encoded><![CDATA[<trackback /><strong>Editable Comments</strong><br />
Thanks to Mark Jaquith and his script found at scriptygoddess, you will now be able to edit your comments for&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-12462</link>
		<dc:creator>jason</dc:creator>
		<pubDate>Sat, 28 Aug 2004 20:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-12462</guid>
		<description>Very cool</description>
		<content:encoded><![CDATA[<p>Very cool</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blinger</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11231</link>
		<dc:creator>Blinger</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11231</guid>
		<description>This looks really great, when I get some time I will add it on the weekend. I have one regular commenter who emails me asking to make corrections to his comments.</description>
		<content:encoded><![CDATA[<p>This looks really great, when I get some time I will add it on the weekend. I have one regular commenter who emails me asking to make corrections to his comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11232</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11232</guid>
		<description>Fantastic! I've been longing to provide this facility for ages. :)

There's a slight problem with the script, in that it only works if the Blog ID equals 1. You need to alter editcomments.php in order to get it working if you have multiple blogs.

Find the line that says:

$query = "SELECT comment_entry_id, comment_text FROM " . $my_mt_prefix . "comment WHERE comment_id='$query_comment_id' AND comment_email='$query_email_address' AND comment_ip='$query_ip_address' AND $query_time - UNIX_TIMESTAMP(comment_created_on) - 60 

and change it to:

$query = "SELECT &lt;strong&gt;comment_blog_id,&lt;/strong&gt; comment_entry_id, comment_text FROM " . $my_mt_prefix . "comment WHERE comment_id='$query_comment_id' AND comment_email='$query_email_address' AND comment_ip='$query_ip_address' AND $query_time - UNIX_TIMESTAMP(comment_created_on) - 60 

Then find the line that says:

header ("Location:  " . $my_rebuild_cgi . "?mode=entry&#038;blog_id=1&#038;entry_id=" . $row2['comment_entry_id']);

and change it to:

header ("Location:  " . $my_rebuild_cgi . "?mode=entry&#038;blog_id=&lt;strong&gt;" . $row2['comment_blog_id'] . "&lt;/strong&gt;&#038;entry_id=" . $row2['comment_entry_id']);

I think those are the only changes that need to be made.</description>
		<content:encoded><![CDATA[<p>Fantastic! I&#8217;ve been longing to provide this facility for ages. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
There&#8217;s a slight problem with the script, in that it only works if the Blog ID equals 1. You need to alter editcomments.php in order to get it working if you have multiple blogs.</p>
<p>Find the line that says:</p>
<p>$query = &#8220;SELECT comment_entry_id, comment_text FROM &#8221; . $my_mt_prefix . &#8220;comment WHERE comment_id=&#8217;$query_comment_id&#8217; AND comment_email=&#8217;$query_email_address&#8217; AND comment_ip=&#8217;$query_ip_address&#8217; AND $query_time - UNIX_TIMESTAMP(comment_created_on) - 60 </p>
<p>and change it to:</p>
<p>$query = &#8220;SELECT <strong>comment_blog_id,</strong> comment_entry_id, comment_text FROM &#8221; . $my_mt_prefix . &#8220;comment WHERE comment_id=&#8217;$query_comment_id&#8217; AND comment_email=&#8217;$query_email_address&#8217; AND comment_ip=&#8217;$query_ip_address&#8217; AND $query_time - UNIX_TIMESTAMP(comment_created_on) - 60 </p>
<p>Then find the line that says:</p>
<p>header (&#8221;Location:  &#8221; . $my_rebuild_cgi . &#8220;?mode=entry&#038;blog_id=1&#038;entry_id=&#8221; . $row2['comment_entry_id']);</p>
<p>and change it to:</p>
<p>header (&#8221;Location:  &#8221; . $my_rebuild_cgi . &#8220;?mode=entry&#038;blog_id=<strong>&#8221; . $row2['comment_blog_id'] . &#8220;</strong>&#038;entry_id=&#8221; . $row2['comment_entry_id']);</p>
<p>I think those are the only changes that need to be made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11233</link>
		<dc:creator>Mark J</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11233</guid>
		<description>Good catch, David, and a proper solution.  I'll put that into the next version.

Right now I've got another "bug" I'm working on.  The cgi that rebuilds only rebuilds the files directly associated with the entry.  So while the individual entry archive and monthly archive will be rebuilt, the main index template won't... so people who have JavaScript expandable comments on their front page won't see any edits until someone leaves a proper comment and forces a rebuild.

The solution is obviously to have the CGI rebuild the main index as well, but I have to account for different possible names for the main index template... so the best solution might be to just have it rebuild all index templates that are marked to be rebuild.  That's what happens on a normal comment submission anyway.</description>
		<content:encoded><![CDATA[<p>Good catch, David, and a proper solution.  I&#8217;ll put that into the next version.</p>
<p>Right now I&#8217;ve got another &#8220;bug&#8221; I&#8217;m working on.  The cgi that rebuilds only rebuilds the files directly associated with the entry.  So while the individual entry archive and monthly archive will be rebuilt, the main index template won&#8217;t&#8230; so people who have JavaScript expandable comments on their front page won&#8217;t see any edits until someone leaves a proper comment and forces a rebuild.</p>
<p>The solution is obviously to have the CGI rebuild the main index as well, but I have to account for different possible names for the main index template&#8230; so the best solution might be to just have it rebuild all index templates that are marked to be rebuild.  That&#8217;s what happens on a normal comment submission anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11234</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11234</guid>
		<description>Noooo I wanted to implement this but it doens't work on mine, my ip is dynamic :-@</description>
		<content:encoded><![CDATA[<p>Noooo I wanted to implement this but it doens&#8217;t work on mine, my ip is dynamic :-@</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11235</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11235</guid>
		<description>It should be change such that it checks maybe just the first bit of the IP rather than the whole thing because looking at my commentors on my blog a lot of people have dynamic IP or their Ip changes</description>
		<content:encoded><![CDATA[<p>It should be change such that it checks maybe just the first bit of the IP rather than the whole thing because looking at my commentors on my blog a lot of people have dynamic IP or their Ip changes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11236</link>
		<dc:creator>Mark J</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11236</guid>
		<description>Your ISP gives you a dynamic IP?  That's nothing unusual.  Very few people have static IPs.

This script isn't intended to allow them to edit their comments for the rest of eternity.  The default setting is 30 minutes.

Their IP address isn't going to change in 30 minutes unless they force it to change.</description>
		<content:encoded><![CDATA[<p>Your ISP gives you a dynamic IP?  That&#8217;s nothing unusual.  Very few people have static IPs.</p>
<p>This script isn&#8217;t intended to allow them to edit their comments for the rest of eternity.  The default setting is 30 minutes.</p>
<p>Their IP address isn&#8217;t going to change in 30 minutes unless they force it to change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11237</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11237</guid>
		<description>Well mine does :-S, but I was able to test out the script before that happened :S</description>
		<content:encoded><![CDATA[<p>Well mine does :-S, but I was able to test out the script before that happened :S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11238</link>
		<dc:creator>Mark J</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/user-editable-comments/#comment-11238</guid>
		<description>&lt;b&gt;Updated to v0.5!&lt;/b&gt;

1. David's fix was implemented, for blog_ids other than "1".
2. All index templates set to rebuild are rebuilt, so comments displayed on those pages are updated.
3. &#60;numberofupdates x&#62; is removed before the comment is shown to the user on subsequent edits (for those who are limited commenters to a set number of edits).

For people who were using v0.4 (should be everyone... builds before that weren't really public), all you have to do to upgrade is drop in the new copies of &lt;i&gt;editcomments.php&lt;/i&gt; and &lt;i&gt;mt-rebuild-entry.cgi&lt;/i&gt;, and then reset the permissions on &lt;i&gt;mt-rebuild-entry.cgi&lt;/i&gt;

Keep those bug reports, feature requests, and comments coming...</description>
		<content:encoded><![CDATA[<p><b>Updated to v0.5!</b></p>
<p>1. David&#8217;s fix was implemented, for blog_ids other than &#8220;1&#8243;.<br />
2. All index templates set to rebuild are rebuilt, so comments displayed on those pages are updated.<br />
3. &lt;numberofupdates x&gt; is removed before the comment is shown to the user on subsequent edits (for those who are limited commenters to a set number of edits).</p>
<p>For people who were using v0.4 (should be everyone&#8230; builds before that weren&#8217;t really public), all you have to do to upgrade is drop in the new copies of <i>editcomments.php</i> and <i>mt-rebuild-entry.cgi</i>, and then reset the permissions on <i>mt-rebuild-entry.cgi</i></p>
<p>Keep those bug reports, feature requests, and comments coming&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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