<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>zenphoto forums Tag: akismet</title>
<link>http://www.zenphoto.org/support/</link>
<description>zenphoto forums Tag: akismet</description>
<language>en</language>
<pubDate>Tue, 18 Jun 2013 05:46:01 +0000</pubDate>

<item>
<title>David Rayden on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-72142</link>
<pubDate>Sun, 30 Sep 2012 01:53:04 +0000</pubDate>
<dc:creator>David Rayden</dc:creator>
<guid isPermaLink="false">72142@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I tried to comment with the 'viagra' comment and it got through.&#60;/p&#62;
&#60;p&#62;I installed your plugin (Thank you for this) because I am getting spam despite the captcha.&#60;/p&#62;
&#60;p&#62;I'm using hte same key as another sub-domain and the plugin recognised it as valid.&#60;/p&#62;
&#60;p&#62;Any ideas as to why it's not working? (My ISP uses php 5.2.17)&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;David.
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-72119</link>
<pubDate>Sat, 29 Sep 2012 14:00:57 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">72119@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;hi&#60;/p&#62;
&#60;p&#62;The 1.2.0 release of akismet filter plugin is published.&#60;/p&#62;
&#60;p&#62;Improvements of this release:&#60;br /&#62;
 - Migration on release 0.5 of Akismet PHP5 Class from Alex Potsides&#60;br /&#62;
 - Increase the timeout of akismet (hack of Akismet PHP5 Class)&#60;br /&#62;
 - If Akismet API key is invalid or if there is a timeout from akismet server&#60;br /&#62;
    - Comments are automatically moderated&#60;br /&#62;
    - Actions on comments (marked as spam/approved in comments list) are done on Zenphoto even if the returns are not sent to Akismet&#60;/p&#62;
&#60;p&#62;Infos and download here:&#60;br /&#62;
&#60;a href=&#34;http://www.vincentbourganel.fr/news/akismet-spam-filter-for-Zenphoto&#34; rel=&#34;nofollow&#34;&#62;http://www.vincentbourganel.fr/news/akismet-spam-filter-for-Zenphoto&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;@ acrylain &#38;amp; sbillard : no update is nedeed in plugin section (the actual link to my website is correct).
&#60;/p&#62;</description>
</item>
<item>
<title>Laurent on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-71762</link>
<pubDate>Tue, 25 Sep 2012 12:48:41 +0000</pubDate>
<dc:creator>Laurent</dc:creator>
<guid isPermaLink="false">71762@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
At this time all works great for me. I have no error in the debug log section.&#60;/p&#62;
&#60;p&#62;I'll look for time to time.&#60;/p&#62;
&#60;p&#62;Thanks a lot&#60;br /&#62;
Laurent
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-71654</link>
<pubDate>Mon, 24 Sep 2012 01:26:11 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">71654@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;thanks !&#60;/p&#62;
&#60;p&#62;there is a new RC to download :&#60;br /&#62;
&#60;a href=&#34;http://www.vincentbourganel.fr/data/akismet_php5%201.2.0.RC2.zip&#34; rel=&#34;nofollow&#34;&#62;http://www.vincentbourganel.fr/data/akismet_php5%201.2.0.RC2.zip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I need to know if someone have some&#60;br /&#62;
&#60;code&#62;====&#38;gt; $akismet-&#38;gt;Exception : ...&#60;/code&#62;&#60;br /&#62;
in debug log (admin of zenphoto)&#60;/p&#62;
&#60;p&#62;follow install instructions in install.txt
&#60;/p&#62;</description>
</item>
<item>
<title>Laurent on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-71604</link>
<pubDate>Sun, 23 Sep 2012 09:52:09 +0000</pubDate>
<dc:creator>Laurent</dc:creator>
<guid isPermaLink="false">71604@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Ok Vincent, i'll test it since i have quite the same trouble ! &#60;/p&#62;
&#60;p&#62;Cdlt,&#60;br /&#62;
Laurent
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-71563</link>
<pubDate>Sat, 22 Sep 2012 12:38:08 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">71563@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;hi&#60;/p&#62;
&#60;p&#62;Sometimes, I have some SPAM on my website and I notice that there is a time-out from akismet server (maybe server is too busy).&#60;/p&#62;
&#60;p&#62;I made some improvements on my plugin : if Akismet API key is invalid or akismet doesn't give a response to request, comments are moderated.&#60;/p&#62;
&#60;p&#62;before publish this new version, I need some tests :&#60;br /&#62;
you can download a beta version here :&#60;br /&#62;
&#60;a href=&#34;http://www.vincentbourganel.fr/data/akismet_php5%201.2.0.RC.zip&#34; rel=&#34;nofollow&#34;&#62;http://www.vincentbourganel.fr/data/akismet_php5%201.2.0.RC.zip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;thanks in advance to beta users.&#60;br /&#62;
please report any bugs or any troubles on forum.
&#60;/p&#62;</description>
</item>
<item>
<title>Laurent on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-59322</link>
<pubDate>Wed, 07 Dec 2011 13:40:28 +0000</pubDate>
<dc:creator>Laurent</dc:creator>
<guid isPermaLink="false">59322@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Ok, Thanks you. It's for the test on the 1.4.2 Beta release of ZP.&#60;/p&#62;
&#60;p&#62;Laurent
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-59279</link>
<pubDate>Tue, 06 Dec 2011 14:54:04 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59279@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;be carrefull :&#60;br /&#62;
- 1.0.0 : intial release for zenphoto =&#38;lt; 1.4.1.6&#60;br /&#62;
- 1.1.0 : with improvements described above, for zenphoto &#38;gt;= 1.4.2 (beta included)&#60;/p&#62;
&#60;p&#62;HervÃ© Queyranne (who helps to on release  1.1.0) gives a patch on zenphoto 1.4.1.5/1.4.1.6 to use the new release of Akismet (but it's a hack of zenphoto : do that at your own risks) :&#60;br /&#62;
follow the link : &#60;a href=&#34;http://www.queyranne.ch/site/news/aksimet-ver-1.1&#34; rel=&#34;nofollow&#34;&#62;http://www.queyranne.ch/site/news/aksimet-ver-1.1&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-59278</link>
<pubDate>Tue, 06 Dec 2011 14:46:04 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59278@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;hi,&#60;/p&#62;
&#60;p&#62;you can check if the plugin works on your website by sending a comment with &#34;viagra-test-123&#34; as the author.&#60;br /&#62;
Akismet always detect the comment as spam.&#60;/p&#62;
&#60;p&#62;maybe you could read&#60;br /&#62;
&#60;a href=&#34;http://akismet.com/how/&#34; rel=&#34;nofollow&#34;&#62;http://akismet.com/how/&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://akismet.com/support/&#34; rel=&#34;nofollow&#34;&#62;http://akismet.com/support/&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://akismet.com/development/api/#comment-check&#34; rel=&#34;nofollow&#34;&#62;http://akismet.com/development/api/#comment-check&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;information :&#60;br /&#62;
- with 1.0.0, the akismet key is not checked by the plugin  : if the key is invalid you have a fatal error when you send a comment.&#60;br /&#62;
- with 1.1.0, the akismet key is checked by the plugin in the admin tabs, so this issue is fixed. &#60;/p&#62;
&#60;p&#62;according to me, captcha is not necessary on comment if you use Akismet.&#60;/p&#62;
&#60;p&#62;and in my case, I had maybe 20 spam a day before, and now, I have maybe 1 spam a week.&#60;br /&#62;
so it seems to work :-)
&#60;/p&#62;</description>
</item>
<item>
<title>Laurent on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-59277</link>
<pubDate>Tue, 06 Dec 2011 12:45:39 +0000</pubDate>
<dc:creator>Laurent</dc:creator>
<guid isPermaLink="false">59277@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Hi Vincent,&#60;br /&#62;
Thanks for this plugin.&#60;br /&#62;
However, How can i check that the plugin is working ?&#60;br /&#62;
My catpha is sitll live with the akismet working ... Is the correct way to use this ?&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Laurent.&#60;/p&#62;
&#60;p&#62;== In French, it's more accurate for me ==&#60;br /&#62;
Salut Vincent,&#60;br /&#62;
Merci pour ce plugin.&#60;br /&#62;
Cependant, comment Ãªtre sur que celui-ci soit fonctionnel ? Le Captcha est-il toujours nÃ©cessaire et/ou compatible avec aksimet ?&#60;br /&#62;
Un petit Tuto ;)&#60;br /&#62;
Merci beaucoup pour ton implication.&#60;/p&#62;
&#60;p&#62;Laurent
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-59235</link>
<pubDate>Mon, 05 Dec 2011 01:09:14 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">59235@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Thanks for taking it over, very appreciated. I have updated the plugin entry.
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793&amp;page=2#post-59226</link>
<pubDate>Sun, 04 Dec 2011 14:26:22 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59226@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;hi&#60;/p&#62;
&#60;p&#62;to make it more convenient for you, I will host my plugin akismet_php5 on my website.&#60;/p&#62;
&#60;p&#62;there is 2 releases of the plugin :&#60;br /&#62;
1.0.0 : intial release for zenphoto =&#38;lt; 1.4.1.6&#60;br /&#62;
1.1.0 : with improvements described above, for zenphoto &#38;gt;= 1.4.2 (beta included)&#60;/p&#62;
&#60;p&#62;You can find a news here: &#60;a href=&#34;http://www.vincentbourganel.fr/news/akismet-spam-filter-for-Zenphoto&#34; rel=&#34;nofollow&#34;&#62;http://www.vincentbourganel.fr/news/akismet-spam-filter-for-Zenphoto&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Can you change the link on the page &#60;a href=&#34;http://www.zenphoto.org/news/spamfilter-akismet_php5&#34; rel=&#34;nofollow&#34;&#62;http://www.zenphoto.org/news/spamfilter-akismet_php5&#60;/a&#62; ?&#60;/p&#62;
&#60;p&#62;As said in my news, please report bugs and feedback on the Zenphoto forum and I will try to fix as soon as possible.
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59212</link>
<pubDate>Sun, 04 Dec 2011 00:24:25 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">59212@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Great. You also could release it as a beta so people interessted could try it before 1.4.2 so possible bugs are sorted out.
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59202</link>
<pubDate>Sat, 03 Dec 2011 12:41:10 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59202@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;thanks !&#60;/p&#62;
&#60;p&#62;the new release of the plugin is ready.&#60;br /&#62;
improvement :&#60;br /&#62;
- vadidate the provided akismet key in the admin&#60;br /&#62;
- send feedback to Akismet and signal a false negative (no detected SPAM by akismet) / false positive. &#60;/p&#62;
&#60;p&#62;I have to do some testing and I will give it to the community when the 1.4.2 release of Zenphoto will be published.
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59198</link>
<pubDate>Sat, 03 Dec 2011 10:16:05 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">59198@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;I guess a wrong key is actually an error. We have serveral predefined class for styling you can use:&#60;br /&#62;
.errorbox, .warningbox and .notebox. The latter is the orange box we often use to highlight. We have also one for &#34;successes&#34; .messagebox which is used on successful saves for example.
&#60;/p&#62;</description>
</item>
<item>
<title>sbillard on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59197</link>
<pubDate>Sat, 03 Dec 2011 09:52:44 +0000</pubDate>
<dc:creator>sbillard</dc:creator>
<guid isPermaLink="false">59197@http://www.zenphoto.org/support/</guid>
<description>&#60;pre&#62;&#60;code&#62;function getOptionsSupported() {
		if (getOption(&#38;#39;Akismet_key&#38;#39;) &#38;amp;&#38;amp; $this-&#38;gt;isValidKey()) {
			$msg = &#38;#39;&#38;#39;;
		} else {
			$msg = Gettext(&#38;#39;You need to provide a valid Akismet key&#38;#39;);
		}
		return array(
			gettext(&#38;#39;Akismet key&#38;#39;) =&#38;gt; array(&#38;#39;key&#38;#39; =&#38;gt; &#38;#39;Akismet_key&#38;#39;, &#38;#39;type&#38;#39; =&#38;gt; 0, &#38;#39;desc&#38;#39; =&#38;gt; gettext(&#38;#39;Proper operation requires an Akismet API key obtained by signing up for a &#38;lt;a href=&#38;quot;http://akismet.com/&#38;quot;&#38;gt;Akismet&#38;lt;/a&#38;gt; account.&#38;#39;).$msg),
			gettext(&#38;#39;Forgiving&#38;#39;) =&#38;gt; array(&#38;#39;key&#38;#39; =&#38;gt; &#38;#39;Forgiving&#38;#39;, &#38;#39;type&#38;#39; =&#38;gt; 1, &#38;#39;desc&#38;#39; =&#38;gt; gettext(&#38;#39;Mark suspected SPAM for moderation rather than as SPAM&#38;#39;))
		);
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Here is a simple example based on your plugin. Of course the text of the message could be better, and maybe also styled as a notice.
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59193</link>
<pubDate>Sat, 03 Dec 2011 09:04:20 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">59193@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Within getSupportedOptions() call your method and add the text about failure if it fails to the option text itself for example.
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59189</link>
<pubDate>Sat, 03 Dec 2011 08:34:15 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59189@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;thanks sbillard, but could you give me an example how to add code in getSupportedOptions() ?&#60;/p&#62;
&#60;p&#62;fyi, I have a new methoe of SpamFilter :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function isValidKey() {
		$zp_galerieUrl = FULLWEBPATH;	// Set the webpath for the Akismet server
		$zp_akismetKey = getOption(&#38;#39;Akismet_key&#38;#39;);

		$akismet = new Akismet($zp_galerieUrl, $zp_akismetKey);

		if($akismet-&#38;gt;isKeyValid()) {
			return true;
		} else {
			return false;
		}
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;how can I do to call this method on validation ?&#60;br /&#62;
how can I add a specific message on zenphoto admin : 'your Akismet key is empty or invalid' if the function returns false ?
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59155</link>
<pubDate>Fri, 02 Dec 2011 08:51:00 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">59155@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;True, why easy if possible complicated...;-)
&#60;/p&#62;</description>
</item>
<item>
<title>sbillard on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59154</link>
<pubDate>Fri, 02 Dec 2011 08:42:34 +0000</pubDate>
<dc:creator>sbillard</dc:creator>
<guid isPermaLink="false">59154@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;You do not actually have to change the option type. Just add code in the getSupportedOptions() method to check the validity of the key. If it is not valid (and probably also not empty) add the message to the option description.
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59142</link>
<pubDate>Fri, 02 Dec 2011 05:15:08 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">59142@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;You would actually need a filter that is called on saving plugin options. Not sure we have one at the moment, but sbillard will know it for sure.&#60;/p&#62;
&#60;p&#62;Edit: Is probably possible without a filter. Use the OPTION_TYPE_CUSTOM and create a check with in  handleOption(). It would then work like 1. Save the key 2. on page reload this function gets that value and checks it. Then you can put out a warning right with the text field.
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59140</link>
<pubDate>Fri, 02 Dec 2011 04:29:40 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59140@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;hi&#60;/p&#62;
&#60;p&#62;It seems to work with [8548] :&#60;br /&#62;
when I disapprove or approve a comment, the filter is registreted and the new function of my plugin is called.&#60;/p&#62;
&#60;p&#62;Thanks !&#60;/p&#62;
&#60;p&#62;I have another question : I wish to verify the akismet key when the options of the plugin are saved.&#60;/p&#62;
&#60;p&#62;There is a method of akismet to do that.&#60;br /&#62;
I suppose I have to do the same thing I have done for submit false positives/negatives SPAM : triggered a new function on &#34;save&#34; action on admin/options/comment, but I don't know which filter I could use.&#60;/p&#62;
&#60;p&#62;could you help me ?
&#60;/p&#62;</description>
</item>
<item>
<title>sbillard on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59090</link>
<pubDate>Wed, 30 Nov 2011 17:01:22 +0000</pubDate>
<dc:creator>sbillard</dc:creator>
<guid isPermaLink="false">59090@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;It is probably not needed. Just thought maybe the comment script might someday want to use it. All that is really needed for the filters to be register is for the script to be loaded by the require_once.
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59085</link>
<pubDate>Wed, 30 Nov 2011 14:21:10 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59085@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;It seems we have the same idea :-)&#60;br /&#62;
I will have a look as soon as possible&#60;/p&#62;
&#60;p&#62;just a question : what is the need to add  &#34;$spamfilter = new SpamFilter();&#34; in the code above ?&#60;/p&#62;
&#60;p&#62;I was thinking the 1st part was necessary.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;21	if (!(false === ($requirePath = getPlugin(&#38;#39;spamfilters/&#38;#39;.getOption(&#38;#39;spam_filter&#38;#39;).&#38;#39;.php&#38;#39;)))) {
22	    require_once($requirePath);
23	    $spamfilter = new SpamFilter();
24	}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>sbillard on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59084</link>
<pubDate>Wed, 30 Nov 2011 13:56:00 +0000</pubDate>
<dc:creator>sbillard</dc:creator>
<guid isPermaLink="false">59084@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;I think maybe I have a solution. Please try the nightly Beta [8548] admin-comments.php will now load the spam filter. This should make your above code work unchanged.&#60;/p&#62;
&#60;p&#62;Let us know. If it does not work we will have some more digging to do.
&#60;/p&#62;</description>
</item>
<item>
<title>sbillard on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59078</link>
<pubDate>Wed, 30 Nov 2011 13:11:29 +0000</pubDate>
<dc:creator>sbillard</dc:creator>
<guid isPermaLink="false">59078@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;You are supposed to be able to attach class methods to filters, but I do not know if anyone has ever really done that. &#60;/p&#62;
&#60;p&#62;Also, it seems that because the spam filters do not follow the normal filter implementation there is an issue of the filter not getting loaded. &#60;/p&#62;
&#60;p&#62;A work-around would be to create a new plugin that contains the filtering code. It would have to do the &#34;require_once&#34; on the spam filter to get it loaded. Otherwise your code could pretty much stay as above.&#60;/p&#62;
&#60;p&#62;`require_once(SERVERPATH.'/'.USER_PLUGIN_FOLDER.'/spamfilters/akismet_php5.php');&#60;br /&#62;
zp_register_filter('comment_disapprove', 'submitSpam');&#60;/p&#62;
&#60;p&#62;function submitSpam($comment) {&#60;br /&#62;
	[...]&#60;br /&#62;
	$spamfilter = new SpamFilter();&#60;br /&#62;
	$spamfilter-&#38;gt;feedbackMessage($author, $email, $website, $body, false);&#60;br /&#62;
	return $comment;&#60;br /&#62;
}'&#60;/p&#62;
&#60;p&#62;Really what is needed is to recast the spam filters into normal plugins. But that is a 1.4.3 issue. Still, I think we will do that, so be on notice that the akismit filter will probably need to be change then.&#60;/p&#62;
&#60;p&#62;I will look further to see if some other method will work. I will keep you posted.
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59069</link>
<pubDate>Wed, 30 Nov 2011 10:45:03 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">59069@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;I will pass answering to sbillard, he surely can help better.
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59063</link>
<pubDate>Wed, 30 Nov 2011 09:29:17 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59063@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;not sure it is the only problem.&#60;/p&#62;
&#60;p&#62;with DEBUG_FILTERS, I can see :&#60;br /&#62;
- the function submitSpam is only registred when I navigate on admin/options/comment.&#60;/p&#62;
&#60;p&#62;- wathever I do, the test if ( !isset($_zp_filters[$hook]) ) on function zp_apply_filter is false, so my function is not triggered.&#60;/p&#62;
&#60;p&#62;I really need some help on that subject
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59051</link>
<pubDate>Wed, 30 Nov 2011 04:13:52 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">59051@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Probably you need the class object. As said I am not familiar with the spam(comment) stuff.&#60;/p&#62;
&#60;p&#62;There are several debugLog functions for that within /zp-core/functions.php.
&#60;/p&#62;</description>
</item>
<item>
<title>vincent3569 on "new akismet plugin with php5 classes"</title>
<link>http://www.zenphoto.org/support/topic.php?id=9793#post-59050</link>
<pubDate>Wed, 30 Nov 2011 03:48:08 +0000</pubDate>
<dc:creator>vincent3569</dc:creator>
<guid isPermaLink="false">59050@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;ok, I have found and I have set DEBUG_PLUGINS and DEBUG_FILTERS to true in global-definitions.&#60;/p&#62;
&#60;p&#62;I can't see a call of the hook 'comment_disapprove' when I choose a comment as a Spam.&#60;/p&#62;
&#60;p&#62;I can see the registration, only if I go to admin/options/comment.&#60;/p&#62;
&#60;p&#62;could you help me ?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
