Changeset 2888656
- Timestamp:
- 03/28/2023 07:01:15 PM (3 years ago)
- Location:
- gravity-forms-email-blacklist
- Files:
-
- 2 added
- 1 deleted
- 12 edited
- 1 copied
-
assets/banner-1544x500.png (added)
-
assets/banner-772x250.png (added)
-
assets/icon-128x128.png (modified) (previous)
-
assets/icon-256x256.png (modified) (previous)
-
assets/icon.svg (deleted)
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (modified) (previous)
-
assets/screenshot-4.png (modified) (previous)
-
tags/2.5.3 (copied) (copied from gravity-forms-email-blacklist/trunk)
-
tags/2.5.3/gf-emailblacklist.php (modified) (3 diffs)
-
tags/2.5.3/includes/class-gfemailblacklist.php (modified) (5 diffs)
-
tags/2.5.3/readme.txt (modified) (4 diffs)
-
trunk/gf-emailblacklist.php (modified) (3 diffs)
-
trunk/includes/class-gfemailblacklist.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gravity-forms-email-blacklist/tags/2.5.3/gf-emailblacklist.php
r2792102 r2888656 4 4 * Plugin URI: https://wordpress.org/plugins/gravity-forms-email-blacklist/ 5 5 * Description: This plugin adds the ability to set a blacklist of domains on the email field in gravity forms. 6 * Version: 2.5. 27 * Author: hallme8 * Author URI: https:// github.com/hallme/gravityforms-emailblacklist6 * Version: 2.5.3 7 * Author: CrossPeak Software 8 * Author URI: https://www.crosspeaksoftware.com/ 9 9 * Text Domain: gravity-forms-email-blacklist 10 10 * Domain Path: /languages … … 18 18 19 19 /** 20 * Gravity Forms Bootstrap class to l aod the Add-On library and new class.20 * Gravity Forms Bootstrap class to load the Add-On library and new class. 21 21 */ 22 22 class GFEmailBlacklist_Bootstrap { … … 38 38 * Init the class. 39 39 * 40 * @return object Retur en the instance of the Add-On class.40 * @return object Return the instance of the Add-On class. 41 41 */ 42 42 function gf_email_blacklist_addon() { -
gravity-forms-email-blacklist/tags/2.5.3/includes/class-gfemailblacklist.php
r2792102 r2888656 17 17 class GFEmailBlacklist extends GFAddOn { 18 18 19 protected $_version = '2.5. 1';19 protected $_version = '2.5.3'; 20 20 protected $_min_gravityforms_version = '1.9'; 21 21 protected $_slug = 'gf_email_blacklist'; 22 protected $_path = 'gravity formsemailblacklist/gf_email_blacklist.php';22 protected $_path = 'gravity-forms-email-blacklist/gf_emailblacklist.php'; 23 23 protected $_full_path = __FILE__; 24 protected $_title = ' This plugin adds the ability to set a blacklist of domains on the email field in gravity forms.';24 protected $_title = 'Gravity Forms Email Blacklist'; 25 25 protected $_short_title = 'Email Blacklist'; 26 26 … … 65 65 return array( 66 66 array( 67 'title' => 'Default Settings', 68 'fields' => array( 67 'title' => __( 'Email Blacklist Global Settings', 'gravity-forms-email-blacklist' ), 68 'description' => __( 'Use Email Blacklist to secure your forms. If a blacklisted email is used in any email field, the form will error on submission. You can also globally define a list of blacklisted emails and/or domains and a custom validation message if a blacklisted email is submitted. These settings can be overridden on individual email fields in the advanced settings. <a href="https://www.crosspeaksoftware.com/downloads/gravity-forms-email-blacklist/" target="_blank">View Documentation</a>', 'gravity-forms-email-blacklist' ), 69 'fields' => array( 69 70 array( 70 'label' => __( ' Email Blacklist', 'gravity-forms-email-blacklist' ),71 'label' => __( 'Global Blacklisted Emails', 'gravity-forms-email-blacklist' ), 71 72 'type' => 'text', 72 73 'name' => 'default_emailblacklist', 73 'tooltip' => __( 'Please enter a comma separated list of domains you would like to block from submitting their email. These setting can be overwritten on a per field basis', 'gravity-forms-email-blacklist'),74 'tooltip' => __( 'Please enter a comma separated list of blacklisted domains (ex. hotmail.com), email addresses (ex. [email protected]), and/or include the wildcard notation to block top-level domains (ex. *.com). This setting can be overridden on individual email fields in the advanced settings.', 'gravity-forms-email-blacklist' ), 74 75 'class' => 'medium', 75 76 ), 76 77 array( 77 'label' => __( ' ErrorMessage', 'gravity-forms-email-blacklist' ),78 'label' => __( 'Global Validation Message', 'gravity-forms-email-blacklist' ), 78 79 'type' => 'text', 79 80 'name' => 'default_emailblacklist_error_msg', 80 'tooltip' => __( 'Please enter the validation message you would like to appear if a blacklisted email is entered. These setting can be overwritten on a per field basis', 'gravity-forms-email-blacklist' ),81 'tooltip' => __( 'Please enter a default error message if a blacklisted email is submitted. This setting can be overridden on individual email fields in the advanced settings.', 'gravity-forms-email-blacklist' ), 81 82 'class' => 'medium', 82 83 ), … … 109 110 <li class="email_blacklist_setting field_setting"> 110 111 <label for="field_email_blacklist"> 111 <?php esc_html_e( 'Blacklisted Emails' ); ?>112 <?php esc_html_e( 'Blacklisted Emails', 'gravity-forms-email-blacklist' ); ?> 112 113 <?php gform_tooltip( 'form_field_email_blacklist' ); ?> 113 114 </label> … … 117 118 <li class="email_blacklist_validation field_setting"> 118 119 <label for="field_email_blacklist_validation"> 119 <?php esc_html_e( 'Blacklisted Emails Validation Message' ); ?>120 <?php esc_html_e( 'Blacklisted Emails Validation Message', 'gravity-forms-email-blacklist' ); ?> 120 121 <?php gform_tooltip( 'form_field_email_blacklist_validation' ); ?> 121 122 </label> … … 133 134 */ 134 135 public function gf_emailblacklist_field_tooltips( $tooltips ) { 135 $tooltips['form_field_email_blacklist'] = __( "Please enter a comma separated list of domains you would like to block from submitting. Enter 'none' if you would like to override the default blacklist settings.", 'gravity-forms-email-blacklist' );136 $tooltips['form_field_email_blacklist_validation'] = __( 'Please enter the validation message you would like to appear if a blacklisted email is entered.', 'gravity-forms-email-blacklist' );136 $tooltips['form_field_email_blacklist'] = __( "Please enter a comma separated list of blacklisted domains, (ex. hotmail.com), email addresses (ex. [email protected]), and/or include the wildcard notation to block top-level domains (ex. *.com). This will override the globally defined blacklisted emails setting. Enter 'none' to bypass the global setting and allow all email addresses.", 'gravity-forms-email-blacklist' ); 137 $tooltips['form_field_email_blacklist_validation'] = __( 'Please enter an error message if a blacklisted email is submitted. This will override the globally defined error message.', 'gravity-forms-email-blacklist' ); 137 138 return $tooltips; 138 139 } -
gravity-forms-email-blacklist/tags/2.5.3/readme.txt
r2792102 r2888656 1 1 ==== Gravity Forms Email Blacklist ==== 2 Contributors: hallme, timbhowe, matt-h-1, Matt Thomas2 Contributors: crosspeak, hallme, timbhowe, matt-h-1, Matt Thomas 3 3 Donate link: N/A 4 4 Tags: gravity forms, gravity form, forms, gravity, form, email blacklist, block email, blacklist 5 5 Requires at least: 3.8 6 Tested up to: 6. 0.17 Stable tag: 2.5. 26 Tested up to: 6.1.1 7 Stable tag: 2.5.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 === Description === 14 14 15 Email Blacklist Add-on for Gravity Forms was built to help block submissions from users with generic or competitors email addresses. Prevent the user form viewing the form's Confirmation or Notifications and remove nonqualified leads from being collected.15 The Email Blacklist Add-on for Gravity Forms was built to help block submissions from users with generic or competitors email addresses. Prevent the user from processing the form and stop non-qualified leads from being collected. 16 16 17 This plugin allows site admins to create a list of emails, domains and/or top level domains that if used in an [email input field](https://docs.gravityforms.com/email/) on a Gravity Form will cause a validation error and block the submission. A default email blacklist and validation message can be created to use across all forms. These default settings can be overridden on a per email inputfield basis.17 This plugin allows site admins to create a list of domains that if used in an email field on a Gravity Form it will cause a validation error and block the submission. A default email blacklist and validation message can be created to use across all email fields. These default settings can be overridden on a per email field basis. 18 18 19 Default settings can be added in the 'Forms' > 'Settings' > 'Email Blacklist'. To add settings to an individual email input field just add one to the form and got to the input fields'Advanced Settings' tab.19 Global settings can be added on 'Forms' > 'Settings' > 'Email Blacklist'. To add settings to an individual email field, select the field and navigate to the 'Advanced Settings' tab. 20 20 21 This plugin works by blocking either individual email addresses (exmple: [email protected]), email address domains (exmple: google.com), and/or, email address top-level domains (exmple: *.com). 21 This plugin works by blocking either individual email addresses (ex. [email protected]), email address domains (ex. gmail.com), and/or email address top-level domains (ex. *.com). 22 23 Feel free to contribute on [github](https://github.com/crosspeaksoftware/gravity-forms-email-blacklist). 22 24 23 25 === Installation === 24 26 25 1. Search for and install the 'Gravity Forms Email Blacklist' OR Upload `gravity forms-emailblacklist` to the `/wp-content/plugins/` directory.27 1. Search for and install the 'Gravity Forms Email Blacklist' OR Upload `gravity-forms-email-blacklist` to the `/wp-content/plugins/` directory. 26 28 2. Activate the plugin through the 'Plugins' menu in WordPress. 27 3. Navigate f orm the Dashboard to the 'Forms' > 'Settings' > 'Email Blacklist' to make sure it is installed.29 3. Navigate from the Dashboard to the 'Forms' > 'Settings' > 'Email Blacklist' to make sure it is installed. 28 30 29 31 === Screenshots === 30 32 31 1. G eneralSettings32 2. FormSettings33 3. FormSettings Updated34 4. Form Error33 1. Global Plugin Settings 34 2. Email Field Settings 35 3. Email Field Settings Updated 36 4. Form Validation Error 35 37 36 38 === Instructions === 37 39 38 == G eneral Blacklist Settings ==39 Once set up these settingwill be used on all email input fields across all the Gravity Forms used on the site. They can be overridden by the individual email blacklist settings below.40 == Global Blacklist Settings == 41 Once set up, these settings will be used on all email input fields across all the Gravity Forms used on the site. They can be overridden by the individual email blacklist settings below. 40 42 41 43 1. Once Logged into your site navigate to 'Forms' > 'Settings' > 'Email Blacklist' 42 2. Enter the email addresses (exmple: [email protected]), email address domains (exmple: gmail.com), and/or, email address top-level domains (exmple: *.com) separated by commas into the 'Email Balcklist" field.43 3. Enter the validation message you would like displayed to a user that try and use a blacklisted email when submitting a form into the 'Error Message' field.44 2. In the 'Global Blacklisted Emails' input enter a comma separated list of blacklisted domains (ie. hotmail.com), email addresses (ie. [email protected]), and/or include the wildcard notation to block top-level domains (ie. *.com). This setting can be overridden on individual email fields in the advanced settings. 45 3. In the 'Global Validation Message' input enter a default error message if a blacklisted email is submitted. This setting can be overridden on individual email fields in the advanced settings. 44 46 4. Click the 'Update Settings' button to save the settings. 45 47 46 48 == Individual Email Input Blacklist Settings == 47 Once set up these setting will be used on this form only and in place of the general blacklist settings above. 49 Once set up these settings will be used on this form only and in place of the global blacklist settings above. 50 48 51 1. Once Logged into your site navigate to the Gravity Form you would like to update. 49 2. Add or update an existing Email input filed on the form.50 3. Go to the 'Advance Settings' tab for the Emailinput.51 4. Enter the email addresses (exmple: [email protected]), email address domains (exmple: gmail.com), and/or, email address top-level domains (exmple: *.com) separated by commas into the 'Email Balcklist" field. If you enter a space this will override the general blacklist and allow all email address to be submitted.52 5. Enter the validation message you would like displayed to a user that try and use a blacklisted email when submitting a form into the 'Error Message' field.53 6. Click the ' Update' button to save the settings.52 2. Add or update an existing email input field on the form. 53 3. Go to the 'Advanced Settings' tab for the 'Blacklisted Emails' input. 54 4. In the 'Blacklisted Emails' input enter a comma separated list of blacklisted domains (ie. hotmail.com), email addresses (ie. [email protected]), and/or include the wildcard notation to block top-level domains (ie. *.com). This will override the globally defined blacklisted emails setting. Enter 'none' to bypass the global setting and allow all email addresses. 55 5. In the 'Blacklisted Emails Validation Message' input enter an error message if a blacklisted email is submitted. This will override the globally defined error message. 56 6. Click the 'Save Form' button to save the settings. 54 57 55 58 === Additional Resources === … … 59 62 60 63 === Changelog === 64 65 = 2.5.3 = 66 * Updated labels and descriptions throughout the admin settings to improve clarity. 61 67 62 68 = 2.5.2 = … … 96 102 * Added 'gf_emailblacklist_clean' function to make comparison case insensitive. Thanks to @ractoon, @rscoates. 97 103 * Updated function to work with both email domains and specific emails. 98 * Ran 'class-gfemailblacklist.php' through [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer/wiki) with [WordPress Cod eing Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki).99 * Moved class to '/in lcudes/class-gfemailblacklist.php' file.100 * Added placeholder text to fi leds104 * Ran 'class-gfemailblacklist.php' through [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer/wiki) with [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki). 105 * Moved class to '/includes/class-gfemailblacklist.php' file. 106 * Added placeholder text to fields 101 107 * Updated code comments. 102 108 * Updated plugin file name. -
gravity-forms-email-blacklist/trunk/gf-emailblacklist.php
r2792102 r2888656 4 4 * Plugin URI: https://wordpress.org/plugins/gravity-forms-email-blacklist/ 5 5 * Description: This plugin adds the ability to set a blacklist of domains on the email field in gravity forms. 6 * Version: 2.5. 27 * Author: hallme8 * Author URI: https:// github.com/hallme/gravityforms-emailblacklist6 * Version: 2.5.3 7 * Author: CrossPeak Software 8 * Author URI: https://www.crosspeaksoftware.com/ 9 9 * Text Domain: gravity-forms-email-blacklist 10 10 * Domain Path: /languages … … 18 18 19 19 /** 20 * Gravity Forms Bootstrap class to l aod the Add-On library and new class.20 * Gravity Forms Bootstrap class to load the Add-On library and new class. 21 21 */ 22 22 class GFEmailBlacklist_Bootstrap { … … 38 38 * Init the class. 39 39 * 40 * @return object Retur en the instance of the Add-On class.40 * @return object Return the instance of the Add-On class. 41 41 */ 42 42 function gf_email_blacklist_addon() { -
gravity-forms-email-blacklist/trunk/includes/class-gfemailblacklist.php
r2792102 r2888656 17 17 class GFEmailBlacklist extends GFAddOn { 18 18 19 protected $_version = '2.5. 1';19 protected $_version = '2.5.3'; 20 20 protected $_min_gravityforms_version = '1.9'; 21 21 protected $_slug = 'gf_email_blacklist'; 22 protected $_path = 'gravity formsemailblacklist/gf_email_blacklist.php';22 protected $_path = 'gravity-forms-email-blacklist/gf_emailblacklist.php'; 23 23 protected $_full_path = __FILE__; 24 protected $_title = ' This plugin adds the ability to set a blacklist of domains on the email field in gravity forms.';24 protected $_title = 'Gravity Forms Email Blacklist'; 25 25 protected $_short_title = 'Email Blacklist'; 26 26 … … 65 65 return array( 66 66 array( 67 'title' => 'Default Settings', 68 'fields' => array( 67 'title' => __( 'Email Blacklist Global Settings', 'gravity-forms-email-blacklist' ), 68 'description' => __( 'Use Email Blacklist to secure your forms. If a blacklisted email is used in any email field, the form will error on submission. You can also globally define a list of blacklisted emails and/or domains and a custom validation message if a blacklisted email is submitted. These settings can be overridden on individual email fields in the advanced settings. <a href="https://www.crosspeaksoftware.com/downloads/gravity-forms-email-blacklist/" target="_blank">View Documentation</a>', 'gravity-forms-email-blacklist' ), 69 'fields' => array( 69 70 array( 70 'label' => __( ' Email Blacklist', 'gravity-forms-email-blacklist' ),71 'label' => __( 'Global Blacklisted Emails', 'gravity-forms-email-blacklist' ), 71 72 'type' => 'text', 72 73 'name' => 'default_emailblacklist', 73 'tooltip' => __( 'Please enter a comma separated list of domains you would like to block from submitting their email. These setting can be overwritten on a per field basis', 'gravity-forms-email-blacklist'),74 'tooltip' => __( 'Please enter a comma separated list of blacklisted domains (ex. hotmail.com), email addresses (ex. [email protected]), and/or include the wildcard notation to block top-level domains (ex. *.com). This setting can be overridden on individual email fields in the advanced settings.', 'gravity-forms-email-blacklist' ), 74 75 'class' => 'medium', 75 76 ), 76 77 array( 77 'label' => __( ' ErrorMessage', 'gravity-forms-email-blacklist' ),78 'label' => __( 'Global Validation Message', 'gravity-forms-email-blacklist' ), 78 79 'type' => 'text', 79 80 'name' => 'default_emailblacklist_error_msg', 80 'tooltip' => __( 'Please enter the validation message you would like to appear if a blacklisted email is entered. These setting can be overwritten on a per field basis', 'gravity-forms-email-blacklist' ),81 'tooltip' => __( 'Please enter a default error message if a blacklisted email is submitted. This setting can be overridden on individual email fields in the advanced settings.', 'gravity-forms-email-blacklist' ), 81 82 'class' => 'medium', 82 83 ), … … 109 110 <li class="email_blacklist_setting field_setting"> 110 111 <label for="field_email_blacklist"> 111 <?php esc_html_e( 'Blacklisted Emails' ); ?>112 <?php esc_html_e( 'Blacklisted Emails', 'gravity-forms-email-blacklist' ); ?> 112 113 <?php gform_tooltip( 'form_field_email_blacklist' ); ?> 113 114 </label> … … 117 118 <li class="email_blacklist_validation field_setting"> 118 119 <label for="field_email_blacklist_validation"> 119 <?php esc_html_e( 'Blacklisted Emails Validation Message' ); ?>120 <?php esc_html_e( 'Blacklisted Emails Validation Message', 'gravity-forms-email-blacklist' ); ?> 120 121 <?php gform_tooltip( 'form_field_email_blacklist_validation' ); ?> 121 122 </label> … … 133 134 */ 134 135 public function gf_emailblacklist_field_tooltips( $tooltips ) { 135 $tooltips['form_field_email_blacklist'] = __( "Please enter a comma separated list of domains you would like to block from submitting. Enter 'none' if you would like to override the default blacklist settings.", 'gravity-forms-email-blacklist' );136 $tooltips['form_field_email_blacklist_validation'] = __( 'Please enter the validation message you would like to appear if a blacklisted email is entered.', 'gravity-forms-email-blacklist' );136 $tooltips['form_field_email_blacklist'] = __( "Please enter a comma separated list of blacklisted domains, (ex. hotmail.com), email addresses (ex. [email protected]), and/or include the wildcard notation to block top-level domains (ex. *.com). This will override the globally defined blacklisted emails setting. Enter 'none' to bypass the global setting and allow all email addresses.", 'gravity-forms-email-blacklist' ); 137 $tooltips['form_field_email_blacklist_validation'] = __( 'Please enter an error message if a blacklisted email is submitted. This will override the globally defined error message.', 'gravity-forms-email-blacklist' ); 137 138 return $tooltips; 138 139 } -
gravity-forms-email-blacklist/trunk/readme.txt
r2792102 r2888656 1 1 ==== Gravity Forms Email Blacklist ==== 2 Contributors: hallme, timbhowe, matt-h-1, Matt Thomas2 Contributors: crosspeak, hallme, timbhowe, matt-h-1, Matt Thomas 3 3 Donate link: N/A 4 4 Tags: gravity forms, gravity form, forms, gravity, form, email blacklist, block email, blacklist 5 5 Requires at least: 3.8 6 Tested up to: 6. 0.17 Stable tag: 2.5. 26 Tested up to: 6.1.1 7 Stable tag: 2.5.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 === Description === 14 14 15 Email Blacklist Add-on for Gravity Forms was built to help block submissions from users with generic or competitors email addresses. Prevent the user form viewing the form's Confirmation or Notifications and remove nonqualified leads from being collected.15 The Email Blacklist Add-on for Gravity Forms was built to help block submissions from users with generic or competitors email addresses. Prevent the user from processing the form and stop non-qualified leads from being collected. 16 16 17 This plugin allows site admins to create a list of emails, domains and/or top level domains that if used in an [email input field](https://docs.gravityforms.com/email/) on a Gravity Form will cause a validation error and block the submission. A default email blacklist and validation message can be created to use across all forms. These default settings can be overridden on a per email inputfield basis.17 This plugin allows site admins to create a list of domains that if used in an email field on a Gravity Form it will cause a validation error and block the submission. A default email blacklist and validation message can be created to use across all email fields. These default settings can be overridden on a per email field basis. 18 18 19 Default settings can be added in the 'Forms' > 'Settings' > 'Email Blacklist'. To add settings to an individual email input field just add one to the form and got to the input fields'Advanced Settings' tab.19 Global settings can be added on 'Forms' > 'Settings' > 'Email Blacklist'. To add settings to an individual email field, select the field and navigate to the 'Advanced Settings' tab. 20 20 21 This plugin works by blocking either individual email addresses (exmple: [email protected]), email address domains (exmple: google.com), and/or, email address top-level domains (exmple: *.com). 21 This plugin works by blocking either individual email addresses (ex. [email protected]), email address domains (ex. gmail.com), and/or email address top-level domains (ex. *.com). 22 23 Feel free to contribute on [github](https://github.com/crosspeaksoftware/gravity-forms-email-blacklist). 22 24 23 25 === Installation === 24 26 25 1. Search for and install the 'Gravity Forms Email Blacklist' OR Upload `gravity forms-emailblacklist` to the `/wp-content/plugins/` directory.27 1. Search for and install the 'Gravity Forms Email Blacklist' OR Upload `gravity-forms-email-blacklist` to the `/wp-content/plugins/` directory. 26 28 2. Activate the plugin through the 'Plugins' menu in WordPress. 27 3. Navigate f orm the Dashboard to the 'Forms' > 'Settings' > 'Email Blacklist' to make sure it is installed.29 3. Navigate from the Dashboard to the 'Forms' > 'Settings' > 'Email Blacklist' to make sure it is installed. 28 30 29 31 === Screenshots === 30 32 31 1. G eneralSettings32 2. FormSettings33 3. FormSettings Updated34 4. Form Error33 1. Global Plugin Settings 34 2. Email Field Settings 35 3. Email Field Settings Updated 36 4. Form Validation Error 35 37 36 38 === Instructions === 37 39 38 == G eneral Blacklist Settings ==39 Once set up these settingwill be used on all email input fields across all the Gravity Forms used on the site. They can be overridden by the individual email blacklist settings below.40 == Global Blacklist Settings == 41 Once set up, these settings will be used on all email input fields across all the Gravity Forms used on the site. They can be overridden by the individual email blacklist settings below. 40 42 41 43 1. Once Logged into your site navigate to 'Forms' > 'Settings' > 'Email Blacklist' 42 2. Enter the email addresses (exmple: [email protected]), email address domains (exmple: gmail.com), and/or, email address top-level domains (exmple: *.com) separated by commas into the 'Email Balcklist" field.43 3. Enter the validation message you would like displayed to a user that try and use a blacklisted email when submitting a form into the 'Error Message' field.44 2. In the 'Global Blacklisted Emails' input enter a comma separated list of blacklisted domains (ie. hotmail.com), email addresses (ie. [email protected]), and/or include the wildcard notation to block top-level domains (ie. *.com). This setting can be overridden on individual email fields in the advanced settings. 45 3. In the 'Global Validation Message' input enter a default error message if a blacklisted email is submitted. This setting can be overridden on individual email fields in the advanced settings. 44 46 4. Click the 'Update Settings' button to save the settings. 45 47 46 48 == Individual Email Input Blacklist Settings == 47 Once set up these setting will be used on this form only and in place of the general blacklist settings above. 49 Once set up these settings will be used on this form only and in place of the global blacklist settings above. 50 48 51 1. Once Logged into your site navigate to the Gravity Form you would like to update. 49 2. Add or update an existing Email input filed on the form.50 3. Go to the 'Advance Settings' tab for the Emailinput.51 4. Enter the email addresses (exmple: [email protected]), email address domains (exmple: gmail.com), and/or, email address top-level domains (exmple: *.com) separated by commas into the 'Email Balcklist" field. If you enter a space this will override the general blacklist and allow all email address to be submitted.52 5. Enter the validation message you would like displayed to a user that try and use a blacklisted email when submitting a form into the 'Error Message' field.53 6. Click the ' Update' button to save the settings.52 2. Add or update an existing email input field on the form. 53 3. Go to the 'Advanced Settings' tab for the 'Blacklisted Emails' input. 54 4. In the 'Blacklisted Emails' input enter a comma separated list of blacklisted domains (ie. hotmail.com), email addresses (ie. [email protected]), and/or include the wildcard notation to block top-level domains (ie. *.com). This will override the globally defined blacklisted emails setting. Enter 'none' to bypass the global setting and allow all email addresses. 55 5. In the 'Blacklisted Emails Validation Message' input enter an error message if a blacklisted email is submitted. This will override the globally defined error message. 56 6. Click the 'Save Form' button to save the settings. 54 57 55 58 === Additional Resources === … … 59 62 60 63 === Changelog === 64 65 = 2.5.3 = 66 * Updated labels and descriptions throughout the admin settings to improve clarity. 61 67 62 68 = 2.5.2 = … … 96 102 * Added 'gf_emailblacklist_clean' function to make comparison case insensitive. Thanks to @ractoon, @rscoates. 97 103 * Updated function to work with both email domains and specific emails. 98 * Ran 'class-gfemailblacklist.php' through [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer/wiki) with [WordPress Cod eing Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki).99 * Moved class to '/in lcudes/class-gfemailblacklist.php' file.100 * Added placeholder text to fi leds104 * Ran 'class-gfemailblacklist.php' through [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer/wiki) with [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki). 105 * Moved class to '/includes/class-gfemailblacklist.php' file. 106 * Added placeholder text to fields 101 107 * Updated code comments. 102 108 * Updated plugin file name.
Note: See TracChangeset
for help on using the changeset viewer.