Contact Form 7 Honeypot - Version 1.9

Version Description

Added i18n support, French language pack. Thx chris-kns

Download this release

Release Info

Developer DaoByDesign
Plugin Icon 128x128 Contact Form 7 Honeypot
Version 1.9
Comparing to
See all releases

Code changes from version 1.8 to 1.9

honeypot.php CHANGED
@@ -5,29 +5,37 @@ Plugin URI: http://www.nocean.ca/plugins/honeypot-module-for-contact-form-7-word
5
  Description: Add honeypot anti-spam functionality to the popular Contact Form 7 plugin.
6
  Author: Nocean
7
  Author URI: http://www.nocean.ca
8
- Version: 1.8
9
  Text Domain: contact-form-7-honeypot
10
  Domain Path: /languages
11
  */
12
 
13
  /* Copyright 2015 Ryan McLaughlin (email : hello@nocean.ca)
14
 
15
- This program is free software; you can redistribute it and/or modify
16
- it under the terms of the GNU General Public License as published by
17
- the Free Software Foundation; either version 2 of the License, or
18
- (at your option) any later version.
19
 
20
- This program is distributed in the hope that it will be useful,
21
- but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
- GNU General Public License for more details.
24
 
25
- You should have received a copy of the GNU General Public License
26
- along with this program; if not, write to the Free Software
27
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
 
29
  */
30
 
 
 
 
 
 
 
 
 
31
 
32
  /**
33
  *
@@ -37,27 +45,27 @@ Domain Path: /languages
37
  */
38
  add_action( 'admin_init', 'wpcf7_honeypot_has_parent_plugin' );
39
  function wpcf7_honeypot_has_parent_plugin() {
40
- if ( is_admin() && current_user_can( 'activate_plugins' ) && !is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) {
41
- add_action( 'admin_notices', 'wpcf7_honeypot_nocf7_notice' );
42
 
43
- deactivate_plugins( plugin_basename( __FILE__ ) );
44
 
45
- if ( isset( $_GET['activate'] ) ) {
46
- unset( $_GET['activate'] );
47
- }
48
- }
49
  }
50
 
51
  function wpcf7_honeypot_nocf7_notice() { ?>
52
- <div class="error">
53
- <p>
54
- <?php printf(
55
  __('%s must be installed and activated for the CF7 Honeypot plugin to work', 'contact-form-7-honeypot'),
56
  '<a href="'.admin_url('plugin-install.php?tab=search&s=contact+form+7').'">Contact Form 7</a>'
57
  ); ?>
58
  </p>
59
- </div>
60
- <?php
61
  }
62
 
63
 
@@ -146,9 +154,9 @@ add_action( 'wpcf7_admin_init', 'wpcf7_add_tag_generator_honeypot', 35 );
146
  function wpcf7_add_tag_generator_honeypot() {
147
  if (class_exists('WPCF7_TagGenerator')) {
148
  $tag_generator = WPCF7_TagGenerator::get_instance();
149
- $tag_generator->add( 'honeypot', __( 'Honeypot', 'contact-form-7' ), 'wpcf7_tg_pane_honeypot' );
150
  } else if (function_exists('wpcf7_add_tag_generator')) {
151
- wpcf7_add_tag_generator( 'honeypot', __( 'Honeypot', 'wpcf7' ), 'wpcf7-tg-pane-honeypot', 'wpcf7_tg_pane_honeypot' );
152
  }
153
  }
154
 
@@ -165,7 +173,7 @@ function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
165
  <table class="form-table"><tbody>
166
  <tr>
167
  <th scope="row">
168
- <label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label>
169
  </th>
170
  <td>
171
  <input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /><br>
@@ -175,7 +183,7 @@ function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
175
 
176
  <tr>
177
  <th scope="row">
178
- <label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'ID (optional)', 'contact-form-7' ) ); ?></label>
179
  </th>
180
  <td>
181
  <input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" />
@@ -184,7 +192,7 @@ function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
184
 
185
  <tr>
186
  <th scope="row">
187
- <label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class (optional)', 'contact-form-7' ) ); ?></label>
188
  </th>
189
  <td>
190
  <input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" />
@@ -193,7 +201,7 @@ function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
193
 
194
  <tr>
195
  <th scope="row">
196
- <label for="<?php echo esc_attr( $args['content'] . '-nomessage' ); ?>"><?php echo esc_html( __( 'Don\'t Use Accessibility Message (optional)', 'contact-form-7' ) ); ?></label>
197
  </th>
198
  <td>
199
  <input type="checkbox" name="nomessage:true" id="<?php echo esc_attr( $args['content'] . '-nomessage' ); ?>" class="messagekillvalue option" /><br />
@@ -209,7 +217,7 @@ function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
209
  <input type="text" name="honeypot" class="tag code" readonly="readonly" onfocus="this.select()" />
210
 
211
  <div class="submitbox">
212
- <input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
213
  </div>
214
 
215
  <br class="clear" />
@@ -220,7 +228,7 @@ function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
220
  <table>
221
  <tr>
222
  <td>
223
- <?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br />
224
  <input type="text" name="name" class="tg-name oneline" /><br />
225
  <em><small><?php echo esc_html( __( 'For better security, change "honeypot" to something less bot-recognizable.', 'contact-form-7-honeypot' ) ); ?></small></em>
226
  </td>
@@ -233,17 +241,17 @@ function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
233
 
234
  <tr>
235
  <td>
236
- <?php echo esc_html( __( 'ID (optional)', 'contact-form-7' ) ); ?><br />
237
  <input type="text" name="id" class="idvalue oneline option" />
238
  </td>
239
  <td>
240
- <?php echo esc_html( __( 'Class (optional)', 'contact-form-7' ) ); ?><br />
241
  <input type="text" name="class" class="classvalue oneline option" />
242
  </td>
243
  </tr>
244
  <tr>
245
  <td colspan="2">
246
- <input type="checkbox" name="nomessage:true" id="nomessage" class="messagekillvalue option" /> <label for="nomessage"><?php echo esc_html( __( 'Don\'t Use Accessibility Message (optional)', 'contact-form-7' ) ); ?></label><br />
247
  <em><?php echo __('If checked, the accessibility message will not be generated. <strong>This is not recommended</strong>. If you\'re unsure, leave this unchecked.','contact-form-7-honeypot'); ?></em>
248
  </td>
249
  </tr>
@@ -257,4 +265,4 @@ function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
257
  </form>
258
  </div>
259
  <?php }
260
- }
5
  Description: Add honeypot anti-spam functionality to the popular Contact Form 7 plugin.
6
  Author: Nocean
7
  Author URI: http://www.nocean.ca
8
+ Version: 1.9
9
  Text Domain: contact-form-7-honeypot
10
  Domain Path: /languages
11
  */
12
 
13
  /* Copyright 2015 Ryan McLaughlin (email : hello@nocean.ca)
14
 
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License as published by
17
+ the Free Software Foundation; either version 2 of the License, or
18
+ (at your option) any later version.
19
 
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
 
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
 
29
  */
30
 
31
+ /**
32
+ * Load textdomain
33
+ */
34
+ add_action( 'plugins_loaded', 'wpcf7_honeypot_load_textdomain' );
35
+ function wpcf7_honeypot_load_textdomain() {
36
+ load_plugin_textdomain( 'contact-form-7-honeypot', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
37
+ }
38
+
39
 
40
  /**
41
  *
45
  */
46
  add_action( 'admin_init', 'wpcf7_honeypot_has_parent_plugin' );
47
  function wpcf7_honeypot_has_parent_plugin() {
48
+ if ( is_admin() && current_user_can( 'activate_plugins' ) && !is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) {
49
+ add_action( 'admin_notices', 'wpcf7_honeypot_nocf7_notice' );
50
 
51
+ deactivate_plugins( plugin_basename( __FILE__ ) );
52
 
53
+ if ( isset( $_GET['activate'] ) ) {
54
+ unset( $_GET['activate'] );
55
+ }
56
+ }
57
  }
58
 
59
  function wpcf7_honeypot_nocf7_notice() { ?>
60
+ <div class="error">
61
+ <p>
62
+ <?php printf(
63
  __('%s must be installed and activated for the CF7 Honeypot plugin to work', 'contact-form-7-honeypot'),
64
  '<a href="'.admin_url('plugin-install.php?tab=search&s=contact+form+7').'">Contact Form 7</a>'
65
  ); ?>
66
  </p>
67
+ </div>
68
+ <?php
69
  }
70
 
71
 
154
  function wpcf7_add_tag_generator_honeypot() {
155
  if (class_exists('WPCF7_TagGenerator')) {
156
  $tag_generator = WPCF7_TagGenerator::get_instance();
157
+ $tag_generator->add( 'honeypot', __( 'Honeypot', 'contact-form-7-honeypot' ), 'wpcf7_tg_pane_honeypot' );
158
  } else if (function_exists('wpcf7_add_tag_generator')) {
159
+ wpcf7_add_tag_generator( 'honeypot', __( 'Honeypot', 'contact-form-7-honeypot' ), 'wpcf7-tg-pane-honeypot', 'wpcf7_tg_pane_honeypot' );
160
  }
161
  }
162
 
173
  <table class="form-table"><tbody>
174
  <tr>
175
  <th scope="row">
176
+ <label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7-honeypot' ) ); ?></label>
177
  </th>
178
  <td>
179
  <input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /><br>
183
 
184
  <tr>
185
  <th scope="row">
186
+ <label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'ID (optional)', 'contact-form-7-honeypot' ) ); ?></label>
187
  </th>
188
  <td>
189
  <input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" />
192
 
193
  <tr>
194
  <th scope="row">
195
+ <label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class (optional)', 'contact-form-7-honeypot' ) ); ?></label>
196
  </th>
197
  <td>
198
  <input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" />
201
 
202
  <tr>
203
  <th scope="row">
204
+ <label for="<?php echo esc_attr( $args['content'] . '-nomessage' ); ?>"><?php echo esc_html( __( 'Don\'t Use Accessibility Message (optional)', 'contact-form-7-honeypot' ) ); ?></label>
205
  </th>
206
  <td>
207
  <input type="checkbox" name="nomessage:true" id="<?php echo esc_attr( $args['content'] . '-nomessage' ); ?>" class="messagekillvalue option" /><br />
217
  <input type="text" name="honeypot" class="tag code" readonly="readonly" onfocus="this.select()" />
218
 
219
  <div class="submitbox">
220
+ <input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7-honeypot' ) ); ?>" />
221
  </div>
222
 
223
  <br class="clear" />
228
  <table>
229
  <tr>
230
  <td>
231
+ <?php echo esc_html( __( 'Name', 'contact-form-7-honeypot' ) ); ?><br />
232
  <input type="text" name="name" class="tg-name oneline" /><br />
233
  <em><small><?php echo esc_html( __( 'For better security, change "honeypot" to something less bot-recognizable.', 'contact-form-7-honeypot' ) ); ?></small></em>
234
  </td>
241
 
242
  <tr>
243
  <td>
244
+ <?php echo esc_html( __( 'ID (optional)', 'contact-form-7-honeypot' ) ); ?><br />
245
  <input type="text" name="id" class="idvalue oneline option" />
246
  </td>
247
  <td>
248
+ <?php echo esc_html( __( 'Class (optional)', 'contact-form-7-honeypot' ) ); ?><br />
249
  <input type="text" name="class" class="classvalue oneline option" />
250
  </td>
251
  </tr>
252
  <tr>
253
  <td colspan="2">
254
+ <input type="checkbox" name="nomessage:true" id="nomessage" class="messagekillvalue option" /> <label for="nomessage"><?php echo esc_html( __( 'Don\'t Use Accessibility Message (optional)', 'contact-form-7-honeypot' ) ); ?></label><br />
255
  <em><?php echo __('If checked, the accessibility message will not be generated. <strong>This is not recommended</strong>. If you\'re unsure, leave this unchecked.','contact-form-7-honeypot'); ?></em>
256
  </td>
257
  </tr>
265
  </form>
266
  </div>
267
  <?php }
268
+ }
languages/contact-form-7-honeypot-fr_FR.mo ADDED
Binary file
languages/contact-form-7-honeypot-fr_FR.po ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2016 Contact Form 7 Honeypot
2
+ # This file is distributed under the same license as the Contact Form 7 Honeypot package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Contact Form 7 Honeypot 1.8\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/contact-form-7-"
7
+ "honeypot\n"
8
+ "POT-Creation-Date: 2016-04-09 10:51+0200\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2016-04-09 13:19+0200\n"
13
+ "Language-Team: \n"
14
+ "X-Generator: Poedit 1.8.7\n"
15
+ "Last-Translator: Christophe Perrin <christophe@kaeness.fr>\n"
16
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+ "Language: fr_FR\n"
18
+
19
+ #: honeypot.php:55
20
+ msgid "%s must be installed and activated for the CF7 Honeypot plugin to work"
21
+ msgstr ""
22
+ "%s doit être installé et activé pour que l&rsquo;extension CF7 Honeypot "
23
+ "puisse fonctionner"
24
+
25
+ #: honeypot.php:95
26
+ msgid "Please leave this field empty."
27
+ msgstr "Merci de laisser ce champ vide."
28
+
29
+ #: honeypot.php:149 honeypot.php:151
30
+ msgid "Honeypot"
31
+ msgstr "Honeypot"
32
+
33
+ #: honeypot.php:158
34
+ msgid ""
35
+ "Generate a form-tag for a spam-stopping honeypot field. For more details, "
36
+ "see %s."
37
+ msgstr ""
38
+ "Crée une balise de formulaire pour un champ anti-spam «&nbsp;Pot de "
39
+ "miel&nbsp;». Pour plus de détails, voir %s"
40
+
41
+ #: honeypot.php:159
42
+ msgid "CF7 Honeypot"
43
+ msgstr "CF7 Honeypot"
44
+
45
+ #: honeypot.php:168 honeypot.php:223
46
+ msgid "Name"
47
+ msgstr "Nom"
48
+
49
+ #: honeypot.php:172 honeypot.php:225
50
+ msgid ""
51
+ "For better security, change \"honeypot\" to something less bot-recognizable."
52
+ msgstr ""
53
+ "Pour une meilleure sécurité, modifiez «&nbsp;honeypot&nbsp;» en quelque "
54
+ "chose de moins reconnaissable par les robots."
55
+
56
+ #: honeypot.php:178 honeypot.php:236
57
+ msgid "ID (optional)"
58
+ msgstr "ID (optionnel)"
59
+
60
+ #: honeypot.php:187 honeypot.php:240
61
+ msgid "Class (optional)"
62
+ msgstr "Classe CSS (optionnel)"
63
+
64
+ #: honeypot.php:196 honeypot.php:246
65
+ msgid "Don't Use Accessibility Message (optional)"
66
+ msgstr "Ne pas utiliser le message pour l&rsquo;accessibilité (optionnel)"
67
+
68
+ #: honeypot.php:200 honeypot.php:247
69
+ msgid ""
70
+ "If checked, the accessibility message will not be generated. <strong>This is "
71
+ "not recommended</strong>. If you're unsure, leave this unchecked."
72
+ msgstr ""
73
+ "Si cochée, le message pour l&rsquo;accessibilité ne sera pas généré. "
74
+ "<strong>Ce n&rsquo;est pas recommandé.</strong> Si vous n&rsquo;êtes pas "
75
+ "sûr, ne cochez pas cette case."
76
+
77
+ # 'Insérer la balise' is too long for the button size
78
+ #: honeypot.php:212
79
+ msgid "Insert Tag"
80
+ msgstr "Insérer"
81
+
82
+ #: honeypot.php:256
83
+ msgid "Copy this code and paste it into the form left."
84
+ msgstr "Copiez ce code et collez-le dans le formulaire à gauche."
85
+
86
+ #. Plugin Name of the plugin/theme
87
+ msgid "Contact Form 7 Honeypot"
88
+ msgstr "Contact Form 7 Honeypot"
89
+
90
+ #. Plugin URI of the plugin/theme
91
+ msgid ""
92
+ "http://www.nocean.ca/plugins/honeypot-module-for-contact-form-7-wordpress-"
93
+ "plugin/"
94
+ msgstr ""
95
+ "http://www.nocean.ca/plugins/honeypot-module-for-contact-form-7-wordpress-"
96
+ "plugin/"
97
+
98
+ #. Description of the plugin/theme
99
+ msgid ""
100
+ "Add honeypot anti-spam functionality to the popular Contact Form 7 plugin."
101
+ msgstr ""
102
+ "Ajoute la fonctionnalité anti-spam «&nbsp;Pot de miel&nbsp;» à l&rsquo;"
103
+ "extension Contact Form 7."
104
+
105
+ #. Author of the plugin/theme
106
+ msgid "Nocean"
107
+ msgstr "Nocean"
108
+
109
+ #. Author URI of the plugin/theme
110
+ msgid "http://www.nocean.ca"
111
+ msgstr "http://www.nocean.ca"
readme.txt CHANGED
@@ -1,129 +1,132 @@
1
- === Contact Form 7 Honeypot ===
2
- Tags: honeypot, antispam, captcha, spam, form, forms, contact form 7, contactform7, contact form, cf7, cforms, Contact Forms 7, Contact Forms, contacts
3
- Requires at least: 3.5
4
- Tested up to: 4.5
5
- Stable tag: 1.8
6
- Contributors: DaoByDesign
7
- Donate link: http://www.nocean.ca/buy-us-a-coffee/
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- Contact Form 7 Honeypot - Adds honeypot anti-spam functionality to CF7 forms.
12
-
13
- == Description ==
14
-
15
- This simple addition to the wonderful <a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a> (CF7) plugin adds basic honeypot anti-spam functionality to thwart spambots without the need for an ugly captcha.
16
-
17
- The principle of a honeypot is simple -- <em>bots are stupid</em>. While some spam is hand-delivered, the vast majority is submitted by bots scripted in a specific (wide-scope) way to submit spam to the largest number of form types. In this way they somewhat blindly fill in fields, regardless of whether the field should be filled in or not. This is how a honeypot catches the bot -- it introduces an additional field in the form that if filled out will cause the form not to validate.
18
-
19
- Follow us on [Twitter](https://twitter.com/NoceanCA) and on [Facebook](https://www.facebook.com/nocean.ca/) for updates and news.
20
-
21
- <strong>Support can be found [here](http://wordpress.org/support/plugin/contact-form-7-honeypot).</strong>
22
-
23
- Visit the [Contact Form 7 Honeypot plugin page](http://www.nocean.ca/plugins/honeypot-module-for-contact-form-7-wordpress-plugin/) for additional information or to [buy us a coffee](http://www.nocean.ca/buy-us-a-coffee/) to say thanks.
24
-
25
- = Localization/Translation =
26
- If you'd like to translate this plugin, please [send us your .PO files](mailto:hello@nocean.ca). The plugin's base .POT file is [available here](http://plugins.svn.wordpress.org/contact-form-7-honeypot/trunk/languages/).
27
-
28
- = IMPORTANT NOTES: =
29
- If you are using CF7 3.6+, use the latest version of this plugin. If you are using an older version of CF7, you will need to use [CF7 Honeypot v1.3](http://downloads.wordpress.org/plugin/contact-form-7-honeypot.1.3.zip).
30
-
31
- == Installation ==
32
-
33
- 1. Install using the Wordpress "Add Plugin" feature -- just search for "Contact Form 7 Honeypot".
34
- 1. Confirm that [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) is installed and activated. Then activate this plugin.
35
- 1. Edit a form in Contact Form 7.
36
- 1. Choose "Honeypot" from the CF7 tag generator. <em>Recommended: change the honeypot element's ID.</em>
37
- 1. Insert the generated tag anywhere in your form. The added field uses inline CSS styles to hide the field from your visitors.
38
-
39
- = Installation & Usage Video =
40
- [youtube https://www.youtube.com/watch?v=yD2lBrU0gA0]
41
- For the more visually-minded, here is a [short video showing how to install and use CF7 Honeypot](https://www.youtube.com/watch?v=yD2lBrU0gA0) from the fine folks at RoseApple Media. **Note:** This video was not produced by the CF7 Honeypot developer.
42
-
43
- = Altering the Honeypot Output HTML [ADVANCED] =
44
- While the basic settings should keep most people happy, we've added several filters for you to further customize the honeypot field. The three filters available are:
45
-
46
- * `wpcf7_honeypot_accessibility_message` - Adjusts the default text for the (hidden) accessibility message.
47
- * `wpcf7_honeypot_container_css` - Adjusts the CSS that is applied to the honeypot container to keep it hidden from view.
48
- * `wpcf7_honeypot_html_output` - Adjusts the entire HTML output of the honeypot element.
49
-
50
- For examples of the above, please see this [recipe Gist](https://gist.github.com/nocean/953b1362b63bd3ecf68c).
51
-
52
- == Frequently Asked Questions ==
53
-
54
- = Will this module stop all my contact form spam? =
55
-
56
- * Probably not. But it should reduce it to a level whereby you don't require any additional spam challenges (CAPTCHA, math questions, etc.).
57
-
58
- = Are honeypots better than CAPTCHAs? =
59
-
60
- * This largely depends on the quality of the CAPTCHA. Unfortunately the more difficult a CAPTCHA is to break, the more unfriendly it is to the end user. This honeypot module was created because we don't like CAPTCHAs cluttering up our forms. Our recommendation is to try this module first, and if you find that it doesn't stop enough spam, then employ more challenging anti-spam techniques.
61
-
62
- = Can I modify the HTML this plugin outputs? =
63
-
64
- * Yep! See the **Installation** section for more details and [this Gist](https://gist.github.com/nocean/953b1362b63bd3ecf68c) for examples.
65
-
66
- == Changelog ==
67
- = 1.8 =
68
- Added wpcf7_honeypot_accessibility_message and wpcf7_honeypot_container_css filters, i18n support.
69
-
70
- = 1.7 =
71
- Provides backwards compatibility for pre-CF7 4.2, introduces ability to remove accessibility message.
72
-
73
- = 1.6.4 =
74
- Quick fix release to fix PHP error introduced in 1.6.3.
75
-
76
- = 1.6.3 =
77
- Updates to accommodate changes to the CF7 editor user interface.
78
-
79
- = 1.6.2 =
80
- Small change to accommodate validation changes made in CF7 4.1.
81
-
82
- = 1.6.1 =
83
- Small change to accommodate changes made in CF7 3.9.
84
-
85
- = 1.6 =
86
- Quite a lot of code clean-up. This shouldn't result in any changes to the regular output, but it's worth checking your forms after updating. Also, you'll note that you now have the ability to add a custom CLASS and ID attributes when generating the Honeypot shortcode (in the CF7 form editor).
87
-
88
- = 1.5 =
89
- Added filter hook for greater extensibility. See installation section for more details.
90
-
91
- = 1.4 =
92
- Update to make compatible with WordPress 3.8 and CF7 3.6. Solves problem of unrendered honeypot shortcode appearing on contact forms.
93
-
94
- = 1.3 =
95
- Update to improve outputted HTML for better standards compliance when the same form appears multiple times on the same page.
96
-
97
- = 1.2 =
98
- Small update to add better i18n and WPML compatibility.
99
-
100
- = 1.1 =
101
- Small update for W3C compliance. Thanks [Jeff](http://wordpress.org/support/topic/plugin-contact-form-7-honeypot-not-w3c-compliant)</a>.
102
-
103
- = 1.0.0 =
104
- * Initial release.
105
-
106
- == Upgrade Notice ==
107
- = 1.8 =
108
- Recommended update for all users using CF7 3.6 and above.
109
-
110
- = 1.7 =
111
- Recommended update for all users using CF7 3.6 and above.
112
-
113
- = 1.6.3 =
114
- Must update if running CF7 4.2 or above. If using less than CF7 4.2, use the v1.6.2 of this plugin.
115
-
116
- = 1.6.2 =
117
- Must update if running CF7 4.1 or above. Update also compatible with CF7 3.6 and above. If using less than CF7 3.6, use the v1.3 of this plugin.
118
-
119
- = 1.6.1 =
120
- Must update if running CF7 3.9 or above. Update also compatible with CF7 3.6 and above. If using less than CF7 3.6, use the v1.3 of this plugin.
121
-
122
- = 1.6 =
123
- New custom "class" and "id" attributes. Upgrade recommended if you are using CF7 3.6+, otherwise use v1.3 of this plugin.
124
-
125
- = 1.5 =
126
- Includes "showing shortcode" fix from version 1.4 and also includes new filter hook. Upgrade recommended.
127
-
128
- = 1.4 =
 
 
 
129
  Solves problem of unrendered honeypot shortcode appearing on contact forms. Upgrade immediately.
1
+ === Contact Form 7 Honeypot ===
2
+ Tags: honeypot, antispam, captcha, spam, form, forms, contact form 7, contactform7, contact form, cf7, cforms, Contact Forms 7, Contact Forms, contacts
3
+ Requires at least: 3.5
4
+ Tested up to: 4.5
5
+ Stable tag: 1.9
6
+ Contributors: DaoByDesign
7
+ Donate link: http://www.nocean.ca/buy-us-a-coffee/
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Contact Form 7 Honeypot - Adds honeypot anti-spam functionality to CF7 forms.
12
+
13
+ == Description ==
14
+
15
+ This simple addition to the wonderful <a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a> (CF7) plugin adds basic honeypot anti-spam functionality to thwart spambots without the need for an ugly captcha.
16
+
17
+ The principle of a honeypot is simple -- <em>bots are stupid</em>. While some spam is hand-delivered, the vast majority is submitted by bots scripted in a specific (wide-scope) way to submit spam to the largest number of form types. In this way they somewhat blindly fill in fields, regardless of whether the field should be filled in or not. This is how a honeypot catches the bot -- it introduces an additional field in the form that if filled out will cause the form not to validate.
18
+
19
+ Follow us on [Twitter](https://twitter.com/NoceanCA) and on [Facebook](https://www.facebook.com/nocean.ca/) for updates and news.
20
+
21
+ <strong>Support can be found [here](http://wordpress.org/support/plugin/contact-form-7-honeypot).</strong>
22
+
23
+ Visit the [Contact Form 7 Honeypot plugin page](http://www.nocean.ca/plugins/honeypot-module-for-contact-form-7-wordpress-plugin/) for additional information or to [buy us a coffee](http://www.nocean.ca/buy-us-a-coffee/) to say thanks.
24
+
25
+ = Localization/Translation =
26
+ If you'd like to translate this plugin, please [send us your .PO files](mailto:hello@nocean.ca). The plugin's base .POT file is [available here](http://plugins.svn.wordpress.org/contact-form-7-honeypot/trunk/languages/).
27
+
28
+ = IMPORTANT NOTES: =
29
+ If you are using CF7 3.6+, use the latest version of this plugin. If you are using an older version of CF7, you will need to use [CF7 Honeypot v1.3](http://downloads.wordpress.org/plugin/contact-form-7-honeypot.1.3.zip).
30
+
31
+ == Installation ==
32
+
33
+ 1. Install using the Wordpress "Add Plugin" feature -- just search for "Contact Form 7 Honeypot".
34
+ 1. Confirm that [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) is installed and activated. Then activate this plugin.
35
+ 1. Edit a form in Contact Form 7.
36
+ 1. Choose "Honeypot" from the CF7 tag generator. <em>Recommended: change the honeypot element's ID.</em>
37
+ 1. Insert the generated tag anywhere in your form. The added field uses inline CSS styles to hide the field from your visitors.
38
+
39
+ = Installation & Usage Video =
40
+ [youtube https://www.youtube.com/watch?v=yD2lBrU0gA0]
41
+ For the more visually-minded, here is a [short video showing how to install and use CF7 Honeypot](https://www.youtube.com/watch?v=yD2lBrU0gA0) from the fine folks at RoseApple Media. **Note:** This video was not produced by the CF7 Honeypot developer.
42
+
43
+ = Altering the Honeypot Output HTML [ADVANCED] =
44
+ While the basic settings should keep most people happy, we've added several filters for you to further customize the honeypot field. The three filters available are:
45
+
46
+ * `wpcf7_honeypot_accessibility_message` - Adjusts the default text for the (hidden) accessibility message.
47
+ * `wpcf7_honeypot_container_css` - Adjusts the CSS that is applied to the honeypot container to keep it hidden from view.
48
+ * `wpcf7_honeypot_html_output` - Adjusts the entire HTML output of the honeypot element.
49
+
50
+ For examples of the above, please see this [recipe Gist](https://gist.github.com/nocean/953b1362b63bd3ecf68c).
51
+
52
+ == Frequently Asked Questions ==
53
+
54
+ = Will this module stop all my contact form spam? =
55
+
56
+ * Probably not. But it should reduce it to a level whereby you don't require any additional spam challenges (CAPTCHA, math questions, etc.).
57
+
58
+ = Are honeypots better than CAPTCHAs? =
59
+
60
+ * This largely depends on the quality of the CAPTCHA. Unfortunately the more difficult a CAPTCHA is to break, the more unfriendly it is to the end user. This honeypot module was created because we don't like CAPTCHAs cluttering up our forms. Our recommendation is to try this module first, and if you find that it doesn't stop enough spam, then employ more challenging anti-spam techniques.
61
+
62
+ = Can I modify the HTML this plugin outputs? =
63
+
64
+ * Yep! See the **Installation** section for more details and [this Gist](https://gist.github.com/nocean/953b1362b63bd3ecf68c) for examples.
65
+
66
+ == Changelog ==
67
+ = 1.9 =
68
+ Added i18n support, French language pack. Thx chris-kns
69
+
70
+ = 1.8 =
71
+ Added wpcf7_honeypot_accessibility_message and wpcf7_honeypot_container_css filters, i18n support.
72
+
73
+ = 1.7 =
74
+ Provides backwards compatibility for pre-CF7 4.2, introduces ability to remove accessibility message.
75
+
76
+ = 1.6.4 =
77
+ Quick fix release to fix PHP error introduced in 1.6.3.
78
+
79
+ = 1.6.3 =
80
+ Updates to accommodate changes to the CF7 editor user interface.
81
+
82
+ = 1.6.2 =
83
+ Small change to accommodate validation changes made in CF7 4.1.
84
+
85
+ = 1.6.1 =
86
+ Small change to accommodate changes made in CF7 3.9.
87
+
88
+ = 1.6 =
89
+ Quite a lot of code clean-up. This shouldn't result in any changes to the regular output, but it's worth checking your forms after updating. Also, you'll note that you now have the ability to add a custom CLASS and ID attributes when generating the Honeypot shortcode (in the CF7 form editor).
90
+
91
+ = 1.5 =
92
+ Added filter hook for greater extensibility. See installation section for more details.
93
+
94
+ = 1.4 =
95
+ Update to make compatible with WordPress 3.8 and CF7 3.6. Solves problem of unrendered honeypot shortcode appearing on contact forms.
96
+
97
+ = 1.3 =
98
+ Update to improve outputted HTML for better standards compliance when the same form appears multiple times on the same page.
99
+
100
+ = 1.2 =
101
+ Small update to add better i18n and WPML compatibility.
102
+
103
+ = 1.1 =
104
+ Small update for W3C compliance. Thanks [Jeff](http://wordpress.org/support/topic/plugin-contact-form-7-honeypot-not-w3c-compliant)</a>.
105
+
106
+ = 1.0.0 =
107
+ * Initial release.
108
+
109
+ == Upgrade Notice ==
110
+ = 1.8 =
111
+ Recommended update for all users using CF7 3.6 and above.
112
+
113
+ = 1.7 =
114
+ Recommended update for all users using CF7 3.6 and above.
115
+
116
+ = 1.6.3 =
117
+ Must update if running CF7 4.2 or above. If using less than CF7 4.2, use the v1.6.2 of this plugin.
118
+
119
+ = 1.6.2 =
120
+ Must update if running CF7 4.1 or above. Update also compatible with CF7 3.6 and above. If using less than CF7 3.6, use the v1.3 of this plugin.
121
+
122
+ = 1.6.1 =
123
+ Must update if running CF7 3.9 or above. Update also compatible with CF7 3.6 and above. If using less than CF7 3.6, use the v1.3 of this plugin.
124
+
125
+ = 1.6 =
126
+ New custom "class" and "id" attributes. Upgrade recommended if you are using CF7 3.6+, otherwise use v1.3 of this plugin.
127
+
128
+ = 1.5 =
129
+ Includes "showing shortcode" fix from version 1.4 and also includes new filter hook. Upgrade recommended.
130
+
131
+ = 1.4 =
132
  Solves problem of unrendered honeypot shortcode appearing on contact forms. Upgrade immediately.