<?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: WordPress Plugin: Mark as Read</title>
	<atom:link href="http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/</link>
	<description>PHP, CSS, xhtml, javascript / jquery tutorials</description>
	<lastBuildDate>Wed, 10 Mar 2010 23:38:06 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Костоправ</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-5929</link>
		<dc:creator>Костоправ</dc:creator>
		<pubDate>Tue, 26 Jan 2010 15:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-5929</guid>
		<description>Ну ничего себе, каждый ваш пост просто шедевр мировой литературы=)</description>
		<content:encoded><![CDATA[<p>Ну ничего себе, каждый ваш пост просто шедевр мировой литературы=)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-3111</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 17 Oct 2009 14:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-3111</guid>
		<description>Very useful, thanks</description>
		<content:encoded><![CDATA[<p>Very useful, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hopefullytammy</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-2013</link>
		<dc:creator>hopefullytammy</dc:creator>
		<pubDate>Thu, 13 Aug 2009 19:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-2013</guid>
		<description>OK, in mark-as-read.php, I changed this line:
add_action(&quot;comment_post&quot;, &quot;comment_not_read&quot;);

to this:
add_action(&quot;comment_post&quot;, &quot;comment_not_read&quot;, 10, 2);

And that gets rid of the error message. (this fix was based on http://wordpress.org/support/topic/298291)

However, I noticed that unapproved comments still show up as &quot;unread&quot; even though they are not live on the site.

Maybe my change caused that? Or (more likely) it was like that before?</description>
		<content:encoded><![CDATA[<p>OK, in mark-as-read.php, I changed this line:<br />
add_action(&#8220;comment_post&#8221;, &#8220;comment_not_read&#8221;);</p>
<p>to this:<br />
add_action(&#8220;comment_post&#8221;, &#8220;comment_not_read&#8221;, 10, 2);</p>
<p>And that gets rid of the error message. (this fix was based on <a href="http://wordpress.org/support/topic/298291)" rel="nofollow">http://wordpress.org/support/topic/298291)</a></p>
<p>However, I noticed that unapproved comments still show up as &#8220;unread&#8221; even though they are not live on the site.</p>
<p>Maybe my change caused that? Or (more likely) it was like that before?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hopefullytammy</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-2008</link>
		<dc:creator>hopefullytammy</dc:creator>
		<pubDate>Thu, 13 Aug 2009 14:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-2008</guid>
		<description>Hi Gaya,

I think your plugin might be incompatible with the current version of WordPress? Or am I doing something wrong? I did a fresh install of WP 2.8.2 (latest as of today) but I keep getting these errors:

Warning: Missing argument 2 for comment_not_read() in /home/mysite/public_html/wp/wp-content/plugins/mark-as-read/storage.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp/wp-content/plugins/mark-as-read/storage.php:31) in /home/mysite/public_html/wp/wp-includes/pluggable.php on line 865

I get this error regardless of whether or not  is pasted into the theme.

Looking at the code in storage.php, the offending variable seems to be $approved:

	//insert the post that has not been read with COMMENT type, will be fired after a comment post
	function comment_not_read($comment_id, $approved) {
		$comment = get_comment($comment_id); 	
		
		insert_not_read($comment-&gt;comment_post_ID, &quot;comment&quot;);
	}

Let me know if you have any ideas on this. Thank you!</description>
		<content:encoded><![CDATA[<p>Hi Gaya,</p>
<p>I think your plugin might be incompatible with the current version of WordPress? Or am I doing something wrong? I did a fresh install of WP 2.8.2 (latest as of today) but I keep getting these errors:</p>
<p>Warning: Missing argument 2 for comment_not_read() in /home/mysite/public_html/wp/wp-content/plugins/mark-as-read/storage.php on line 31</p>
<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/mysite/public_html/wp/wp-content/plugins/mark-as-read/storage.php:31) in /home/mysite/public_html/wp/wp-includes/pluggable.php on line 865</p>
<p>I get this error regardless of whether or not  is pasted into the theme.</p>
<p>Looking at the code in storage.php, the offending variable seems to be $approved:</p>
<p>	//insert the post that has not been read with COMMENT type, will be fired after a comment post<br />
	function comment_not_read($comment_id, $approved) {<br />
		$comment = get_comment($comment_id); 	</p>
<p>		insert_not_read($comment-&gt;comment_post_ID, &#8220;comment&#8221;);<br />
	}</p>
<p>Let me know if you have any ideas on this. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alloy</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-1348</link>
		<dc:creator>Alloy</dc:creator>
		<pubDate>Wed, 17 Jun 2009 01:20:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-1348</guid>
		<description>Hi,, My bro... I Like your blog. Great design..!! :-)</description>
		<content:encoded><![CDATA[<p>Hi,, My bro&#8230; I Like your blog. Great design..!! :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaya</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-1305</link>
		<dc:creator>Gaya</dc:creator>
		<pubDate>Thu, 11 Jun 2009 15:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-1305</guid>
		<description>@Miriam: good thinking! that might be something for the future ;)

@baron: Thanks!</description>
		<content:encoded><![CDATA[<p>@Miriam: good thinking! that might be something for the future ;)</p>
<p>@baron: Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: baron</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-1303</link>
		<dc:creator>baron</dc:creator>
		<pubDate>Thu, 11 Jun 2009 15:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-1303</guid>
		<description>Works great, thank you</description>
		<content:encoded><![CDATA[<p>Works great, thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miriam</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-1302</link>
		<dc:creator>Miriam</dc:creator>
		<pubDate>Thu, 11 Jun 2009 15:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-1302</guid>
		<description>Does this work for changes made on Pages too?</description>
		<content:encoded><![CDATA[<p>Does this work for changes made on Pages too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; WordPress Plugin: Mark as Read - Gaya Design Wordpress Plugins: Just another WordPress weblog</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-1294</link>
		<dc:creator>&#187; WordPress Plugin: Mark as Read - Gaya Design Wordpress Plugins: Just another WordPress weblog</dc:creator>
		<pubDate>Tue, 09 Jun 2009 22:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-1294</guid>
		<description>[...] View post: WordPress Plugin: Mark as Read - Gaya Design [...]</description>
		<content:encoded><![CDATA[<p>[...] View post: WordPress Plugin: Mark as Read &#8211; Gaya Design [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaya</title>
		<link>http://www.gayadesign.com/general/wordpress-plugin-mark-as-read/comment-page-1/#comment-1293</link>
		<dc:creator>Gaya</dc:creator>
		<pubDate>Tue, 09 Jun 2009 19:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.gayadesign.com/?p=395#comment-1293</guid>
		<description>Thanks Kawsar! Hope you can put it to great use.</description>
		<content:encoded><![CDATA[<p>Thanks Kawsar! Hope you can put it to great use.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
