![]() |
|
new akismet plugin with php5 classes - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: new akismet plugin with php5 classes (/thread-9096.html) |
new akismet plugin with php5 classes - vincent3569 - 2011-12-02 hi It seems to work with [8548] : Thanks ! I have another question : I wish to verify the akismet key when the options of the plugin are saved. There is a method of akismet to do that. could you help me ? new akismet plugin with php5 classes - acrylian - 2011-12-02 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. 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. new akismet plugin with php5 classes - sbillard - 2011-12-02 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. new akismet plugin with php5 classes - acrylian - 2011-12-02 True, why easy if possible complicated...;-) new akismet plugin with php5 classes - vincent3569 - 2011-12-03 thanks sbillard, but could you give me an example how to add code in getSupportedOptions() ? fyi, I have a new methoe of SpamFilter :
` new akismet plugin with php5 classes - acrylian - 2011-12-03 Within getSupportedOptions() call your method and add the text about failure if it fails to the option text itself for example. new akismet plugin with php5 classes - sbillard - 2011-12-03
new akismet plugin with php5 classes - acrylian - 2011-12-03 I guess a wrong key is actually an error. We have serveral predefined class for styling you can use: new akismet plugin with php5 classes - vincent3569 - 2011-12-03 thanks ! the new release of the plugin is ready.
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. new akismet plugin with php5 classes - acrylian - 2011-12-04 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. new akismet plugin with php5 classes - vincent3569 - 2011-12-04 hi to make it more convenient for you, I will host my plugin akismet_php5 on my website. there is 2 releases of the plugin : You can find a news here: http://www.vincentbourganel.fr/news/akismet-spam-filter-for-Zenphoto Can you change the link on the page http://www.zenphoto.org/news/spamfilter-akismet_php5 ? As said in my news, please report bugs and feedback on the Zenphoto forum and I will try to fix as soon as possible. new akismet plugin with php5 classes - acrylian - 2011-12-05 Thanks for taking it over, very appreciated. I have updated the plugin entry. new akismet plugin with php5 classes - Laurent - 2011-12-06 Hi Vincent, Thanks == In French, it's more accurate for me == Laurent new akismet plugin with php5 classes - vincent3569 - 2011-12-06 hi, you can check if the plugin works on your website by sending a comment with "viagra-test-123" as the author. maybe you could read information :
according to me, captcha is not necessary on comment if you use Akismet. and in my case, I had maybe 20 spam a day before, and now, I have maybe 1 spam a week. new akismet plugin with php5 classes - vincent3569 - 2011-12-06 be carrefull :
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) : new akismet plugin with php5 classes - Laurent - 2011-12-07 Ok, Thanks you. It's for the test on the 1.4.2 Beta release of ZP. Laurent new akismet plugin with php5 classes - vincent3569 - 2012-09-22 hi 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). 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. before publish this new version, I need some tests : thanks in advance to beta users. new akismet plugin with php5 classes - Laurent - 2012-09-23 Ok Vincent, i'll test it since i have quite the same trouble ! Cdlt, new akismet plugin with php5 classes - vincent3569 - 2012-09-24 thanks ! there is a new RC to download : I need to know if someone have some follow install instructions in install.txt new akismet plugin with php5 classes - Laurent - 2012-09-25 Hi, I'll look for time to time. Thanks a lot |