<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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>Support Forum - Topic: Avia Feedback Box: need to moderate comments</title>
		<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments</link>
		<description>Support Forum - Topic: Avia Feedback Box: need to moderate comments</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 21:06:06 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/avia-feedback-box-need-to-moderate-comments" rel="self" type="application/rss+xml" />

		<item>
			<title>camthor on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19821</link>
			<pubDate>Wed, 25 May 2011 08:29:16 +0000</pubDate>
			<dc:creator>camthor</dc:creator>
			<guid isPermaLink="false">19821@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;One more little change for those who like to improve the handling of spam:&#60;br /&#62;
Using the WP function to check for spam. (applying the blacklists)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;#39;comment_author_IP&#38;#39; =&#38;gt; $this-&#38;gt;user-&#38;gt;ip_adress,
					  &#38;#39;comment_approved&#38;#39; =&#38;gt; &#38;#39;0&#38;#39;
					); 

 if (!check_comment($post[&#38;#39;author&#38;#39;], $post[&#38;#39;comment_author_email&#38;#39;], &#38;#39;&#38;#39;, $post[&#38;#39;comment_content&#38;#39;], $post[&#38;#39;comment_author_IP&#38;#39;], &#38;#39;&#38;#39;, &#38;#39;comment&#38;#39;)) $post[&#38;#39;comment_approved&#38;#39;] = &#38;#39;spam&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Notification only if comment is not classified as spam:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($post[&#38;#39;comment_approved&#38;#39;] != &#38;#39;spam&#38;#39;) wp_notify_postauthor( $this-&#38;gt;addedCommentID, &#38;#39;comment&#38;#39; );&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>camthor on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19757</link>
			<pubDate>Tue, 24 May 2011 16:37:23 +0000</pubDate>
			<dc:creator>camthor</dc:creator>
			<guid isPermaLink="false">19757@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;OK, one more: I needed to receive a notification for every new comment. So I added:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;wp_notify_postauthor( $this-&#38;gt;addedCommentID, &#38;#39;comment&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;before the following&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;}
else
{&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;(after the place where the code above was added, around line 315).&#60;br /&#62;
Maybe some folks find that useful too.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>camthor on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19748</link>
			<pubDate>Tue, 24 May 2011 14:00:04 +0000</pubDate>
			<dc:creator>camthor</dc:creator>
			<guid isPermaLink="false">19748@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank you very much, that did the trick! :-)&#60;br /&#62;
The new comments now show up in the backend where the admin needs to approve.&#60;br /&#62;
I will probably still have to find a way how to show a message to that person who submitted the comment, something like &#34;Thank you, we have received your comment.&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kriesi on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19744</link>
			<pubDate>Tue, 24 May 2011 13:39:24 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">19744@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;ah ok, than this was a misunderstanding. if the new feedback is set to draft everything is working as intended. As I said, making the comments behave like set in the global settings is a good idea but was never implemented. So we just neeed to deal with those comments?&#60;/p&#62;
&#60;p&#62;I think I found a quick and dirty solution :)&#60;br /&#62;
Comments are added via wp_insert_comment: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_insert_comment&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_insert_comment&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;open index.php in your plugin folder and search at line 302 for :&#60;/p&#62;
&#60;pre&#62;
	$post = array(
	  'comment_post_ID'=&#38;gt; $id,
	  'comment_author' =&#38;gt; $_POST['avia_comment_name'],
	  'comment_content' =&#38;gt; wpautop(wptexturize($_POST['avia_comment_message'])),
	  'comment_author_email' =&#38;gt; $_POST['avia_comment_mail'],
	  'comment_author_IP' =&#38;gt; $this-&#38;gt;user-&#38;gt;ip_adress
	); 

and change it to

	$post = array(
	  'comment_post_ID'=&#38;gt; $id,
	  'comment_author' =&#38;gt; $_POST['avia_comment_name'],
	  'comment_content' =&#38;gt; wpautop(wptexturize($_POST['avia_comment_message'])),
	  'comment_author_email' =&#38;gt; $_POST['avia_comment_mail'],
	  'comment_author_IP' =&#38;gt; $this-&#38;gt;user-&#38;gt;ip_adress,
          'comment_approved' =&#38;gt; 0
	); 
&#60;/pre&#62;
&#60;p&#62;There is no documentation about this on the wordpress function but i guess setting the comment_approved to either 0 or -1 should work
&#60;/p&#62;</description>
		</item>
		<item>
			<title>camthor on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19725</link>
			<pubDate>Tue, 24 May 2011 10:17:03 +0000</pubDate>
			<dc:creator>camthor</dc:creator>
			<guid isPermaLink="false">19725@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks - I sent you a message via contact form. Do you mean that this problem is specific to our website? You cannot reproduce it?&#60;br /&#62;
New feedback arrives as &#34;draft&#34;, that is working correctly. But then the comments are published immediately - that is a problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kriesi on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19721</link>
			<pubDate>Tue, 24 May 2011 10:00:35 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">19721@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey! yould you send me your login details so I can take a look myself? When publishing new feedback the draft function should definitley work. I will have a look if its easy to implement the global comment settings as well but wont make a promise here :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>camthor on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19686</link>
			<pubDate>Mon, 23 May 2011 14:05:11 +0000</pubDate>
			<dc:creator>camthor</dc:creator>
			<guid isPermaLink="false">19686@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I just noticed that Kriesi was last time online one week ago: &#60;a href=&#34;http://www.kriesi.at/support/profile/Kriesi&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/support/profile/Kriesi&#60;/a&#62; ...&#60;br /&#62;
Where would the reply appear - here in the forum? Or is there any bug tracking system?&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>camthor on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19679</link>
			<pubDate>Mon, 23 May 2011 09:21:55 +0000</pubDate>
			<dc:creator>camthor</dc:creator>
			<guid isPermaLink="false">19679@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank you for the fast reaction!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19387</link>
			<pubDate>Wed, 18 May 2011 13:41:50 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">19387@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
I'll report it to Kriesi
&#60;/p&#62;</description>
		</item>
		<item>
			<title>camthor on "Avia Feedback Box: need to moderate comments"</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-need-to-moderate-comments#post-19374</link>
			<pubDate>Wed, 18 May 2011 13:08:44 +0000</pubDate>
			<dc:creator>camthor</dc:creator>
			<guid isPermaLink="false">19374@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I noticed that comments added to existing feature requests are immediately online, and this despite the fact that according to the settings new submissions first get the status &#34;draft&#34; assigned. It also does not to respect the general WP discussion settings, which say that every first comment of a user and all comments with links and certain bad words in them need to be approved before going online.&#60;br /&#62;
Can you please tell me what to do so that these comments will not be published without approval? Otherwise anyone can just publish whatever crap on my website and I don't even receive a notification.&#60;br /&#62;
Thanks a lot&#60;br /&#62;
Chris
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
