Contact Form 7 Honeypot - Version 1.2

Version Description

Small update to add better i18n and WPML compatibility.

Download this release

Release Info

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

Code changes from version 1.1 to 1.2

Files changed (2) hide show
  1. honeypot.php +6 -6
  2. readme.txt +4 -1
honeypot.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.daobydesign.com/free-plugins/honeypot-module-for-contact-
5
  Description: Add honeypot functionality to the popular Contact Form 7 plugin.
6
  Author: Dao By Design
7
  Author URI: http://www.daobydesign.com
8
- Version: 1.1
9
  */
10
 
11
  /* Copyright 2013 Dao By Design (email : info@daobydesign.com)
@@ -42,9 +42,9 @@ function wpcf7_honeypot_loader() {
42
  function cfhiddenfieldserror() {
43
  $out = '<div class="error" id="messages"><p>';
44
  if(file_exists(WP_PLUGIN_DIR.'/contact-form-7/wp-contact-form-7.php')) {
45
- $out .= 'The Contact Form 7 is installed, but <strong>you must activate Contact Form 7</strong> below for the Honeypot Module to work.';
46
  } else {
47
- $out .= 'The Contact Form 7 plugin must be installed for the Honeypot Module to work. <a href="'.admin_url('plugin-install.php?tab=plugin-information&plugin=contact-form-7&from=plugins&TB_iframe=true&width=600&height=550').'" class="thickbox" title="Contact Form 7">Install Now.</a>';
48
  }
49
  $out .= '</p></div>';
50
  echo $out;
@@ -74,7 +74,7 @@ function wpcf7_honeypot_shortcode_handler( $tag ) {
74
  if ( is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) )
75
  $validation_error = $wpcf7_contact_form->validation_error( $name );
76
 
77
- $html = '<label for="email-wpcf7-hp"><small>Leave this field empty.</small></label>
78
  <input class="wpcf7-text" type="text" name="email-wpcf7-hp" id="email-wpcf7-hp" value="" size="40" tabindex="3" />';
79
 
80
 
@@ -122,11 +122,11 @@ function wpcf7_tg_pane_honeypot( &$contact_form ) { ?>
122
  <tr><td>
123
  <?php echo esc_html( __( 'Name', 'wpcf7' ) ); ?>
124
  <br /><input type="text" name="name" class="tg-name oneline" />
125
- <br /><em><small><?php echo esc_html( __( 'For better security, change "honeypot" to something less bot-recognizable.', 'wpcf7' ) ); ?></small></em>
126
  </td><td></td></tr>
127
  </table>
128
 
129
- <div class="tg-tag"><?php echo esc_html( __( "Copy this code and paste it into the form left.", 'wpcf7' ) ); ?><br /><input type="text" name="honeypot" class="tag" readonly="readonly" onfocus="this.select()" /></div>
130
  </form>
131
  </div>
132
 
5
  Description: Add honeypot functionality to the popular Contact Form 7 plugin.
6
  Author: Dao By Design
7
  Author URI: http://www.daobydesign.com
8
+ Version: 1.2
9
  */
10
 
11
  /* Copyright 2013 Dao By Design (email : info@daobydesign.com)
42
  function cfhiddenfieldserror() {
43
  $out = '<div class="error" id="messages"><p>';
44
  if(file_exists(WP_PLUGIN_DIR.'/contact-form-7/wp-contact-form-7.php')) {
45
+ $out .= __('The Contact Form 7 is installed, but <strong>you must activate Contact Form 7</strong> below for the Honeypot Module to work.','wpcf7_honeypot');
46
  } else {
47
+ $out .= __('The Contact Form 7 plugin must be installed for the Honeypot Module to work. <a href="'.admin_url('plugin-install.php?tab=plugin-information&plugin=contact-form-7&from=plugins&TB_iframe=true&width=600&height=550').'" class="thickbox" title="Contact Form 7">Install Now.</a>', 'wpcf7_honeypot');
48
  }
49
  $out .= '</p></div>';
50
  echo $out;
74
  if ( is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) )
75
  $validation_error = $wpcf7_contact_form->validation_error( $name );
76
 
77
+ $html = '<label for="email-wpcf7-hp"><small>'.__('Leave this field empty.','wpcf7_honeypot').'</small></label>
78
  <input class="wpcf7-text" type="text" name="email-wpcf7-hp" id="email-wpcf7-hp" value="" size="40" tabindex="3" />';
79
 
80
 
122
  <tr><td>
123
  <?php echo esc_html( __( 'Name', 'wpcf7' ) ); ?>
124
  <br /><input type="text" name="name" class="tg-name oneline" />
125
+ <br /><em><small><?php echo esc_html( __( 'For better security, change "honeypot" to something less bot-recognizable.', 'wpcf7_honeypot' ) ); ?></small></em>
126
  </td><td></td></tr>
127
  </table>
128
 
129
+ <div class="tg-tag"><?php echo esc_html( __( "Copy this code and paste it into the form left.", 'wpcf7_honeypot' ) ); ?><br /><input type="text" name="honeypot" class="tag" readonly="readonly" onfocus="this.select()" /></div>
130
  </form>
131
  </div>
132
 
readme.txt CHANGED
@@ -1,7 +1,7 @@
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: 2.8
4
- Tested up to: 3.5
5
  Stable tag: trunk
6
  Contributors: DaoByDesign
7
  Donate link: http://www.daobydesign.com/buy-us-a-coffee/
@@ -42,6 +42,9 @@ Visit the <a href="http://www.daobydesign.com/free-plugins/honeypot-module-for-c
42
 
43
  == Changelog ==
44
 
 
 
 
45
  = 1.1 =
46
  Small update for W3C compliance. Thanks <a href="http://wordpress.org/support/topic/plugin-contact-form-7-honeypot-not-w3c-compliant">Jeff</a>.
47
 
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: 2.8
4
+ Tested up to: 3.6.1
5
  Stable tag: trunk
6
  Contributors: DaoByDesign
7
  Donate link: http://www.daobydesign.com/buy-us-a-coffee/
42
 
43
  == Changelog ==
44
 
45
+ = 1.2 =
46
+ Small update to add better i18n and WPML compatibility.
47
+
48
  = 1.1 =
49
  Small update for W3C compliance. Thanks <a href="http://wordpress.org/support/topic/plugin-contact-form-7-honeypot-not-w3c-compliant">Jeff</a>.
50