Plugin Directory

Changeset 2827978


Ignore:
Timestamp:
12/02/2022 10:53:52 PM (3 years ago)
Author:
Oyova
Message:

Test For WordPress 6.1.1. Fix Warning

Location:
integrate-sharpspring-and-gravity-forms
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • integrate-sharpspring-and-gravity-forms/tags/1.0.4/class-integrate-sharpspring-and-gravity-forms.php

    r2530005 r2827978  
    428428        $lead_post   = $this->sharpspring_post( $params, 'createLeads');
    429429        $lead_post   = json_decode($lead_post['body'], true);
    430         $lead_error  = $lead_post['result']['creates'][0]['error']['code'];
    431 
    432         // Check to see if the lead is created already, if so grab the ID.
    433         if( $lead_error == '301' ) {
    434             $lead_params    = array( 'where' => array( 'emailAddress' => $params['emailAddress'] ) );
    435             $lead_results   = $this->sharpspring_post( $lead_params, 'getLeads');
    436             $lead_results   = json_decode($lead_results['body'], true);
    437             $lead_id        = $lead_results['result']['lead'][0]['id'];
    438 
    439             // If lead already exists, update the lead's information
    440             $lead_updated   = $this->sharpspring_post( $params, 'updateLeads' );
     430
     431        if( isset( $lead_post['result']['creates'][0]['error']['code'] ) ) {
     432            $lead_error = $lead_post['result']['creates'][0]['error']['code'];
     433
     434            if( $lead_error == '301' ) {
     435                $lead_params    = array( 'where' => array( 'emailAddress' => $params['emailAddress'] ) );
     436                $lead_results   = $this->sharpspring_post( $lead_params, 'getLeads');
     437                $lead_results   = json_decode($lead_results['body'], true);
     438                $lead_id        = $lead_results['result']['lead'][0]['id'];
     439   
     440                // If lead already exists, update the lead's information
     441                $lead_updated   = $this->sharpspring_post( $params, 'updateLeads' );
     442            }
    441443        } else {
    442             $lead_id        = $lead_post['result']['creates'][0]['id'];
     444            // Check to see if the lead is created already, if so grab the ID.
     445            $lead_id = $lead_post['result']['creates'][0]['id'];
    443446        }
    444447
  • integrate-sharpspring-and-gravity-forms/tags/1.0.4/integrate-sharpspring-and-gravity-forms.php

    r2530006 r2827978  
    33    Plugin Name: Integrate SharpSpring and Gravity Forms
    44    Description: Integrates Gravity Forms with SharpSpring, allowing form submissions to be automatically sent to your SharpSpring account.
    5     Version: 1.0.3
     5    Version: 1.0.4
    66    Author: Oyova
    77    Author URI: https://www.oyova.com
    88 */
    99
    10 define('INTEGRATE_SHARPSPRING_AND_GRAVITY_FORMS', '1.0');
     10define('INTEGRATE_SHARPSPRING_AND_GRAVITY_FORMS', '1.0.4');
    1111
    1212add_action('gform_loaded', array('ISGF_GF_Simple_Feed_AddOn_Bootstrap', 'load'), 5);
  • integrate-sharpspring-and-gravity-forms/tags/1.0.4/js/form_settings.js

    r2396277 r2827978  
    11jQuery(function() {
    2     var $customFieldCheckbox = jQuery('.customfield-checkbox').prop('checked'),
    3         $customFields        = jQuery('#gaddon-setting-row-mappedFieldsCustom, #_gform_setting_mappedFieldsCustom_container');
     2    var $customFieldCheckbox = $('.customfield-checkbox').prop('checked'),
     3        $customFields        = $('#gaddon-setting-row-mappedFieldsCustom, #_gform_setting_mappedFieldsCustom_container');
    44
    55    // If checkbox is checked show custom fields
  • integrate-sharpspring-and-gravity-forms/tags/1.0.4/readme.txt

    r2530005 r2827978  
    44Tags: Gravity Forms, CRM, SharpSpring
    55Requires at least: 5.4
    6 Tested up to: 5.7
    7 Stable tag: 5.7
     6Tested up to: 6.1
     7Stable tag: 1.0.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1515## Intelligent Integration
    1616
    17 Connect your forms with Sharp Spring and push your lead data into your lists. Capture new leads from any form on your site, they will automatically be added to your contact manager as a lead. Have one form connect to multiple lists and capture different data using multiple feeds on one form.
     17Connect your forms with SharpSpring and push your lead data into your lists. Capture new leads from any form on your site, they will automatically be added to your contact manager as a lead. Have one form connect to multiple lists and capture different data using multiple feeds on one form.
    1818
    1919## Custom Fields
    2020
    21 Capture more data than the basics. Create custom fields in Sharp Spring and easily map them to any field from your form. That data will then be mapped to your new lead.
     21Capture more data than the basics. Create custom fields in SharpSpring and easily map them to any field from your form. That data will then be mapped to your new lead.
    2222
    2323## Conditional Logic
     
    2727## Integrate SharpSpring and Gravity Forms Setup:
    2828
    29 * Go To Forms -> Settings -> SharpSpring -> Add API settings ( These can be found in SharSpring: Sharpsring Settings -> Sharpspring API -> API Settings )
    30 * Go to Forms -> Select any Form -> Settings -> SharpSspring -> Create feed ( Create One )
     29* Go To Forms -> Settings -> SharpSpring -> Add API settings ( These can be found in SharpSpring: SharpSpring Settings -> Sharppring API -> API Settings )
     30* Go to Forms -> Select any Form -> Settings -> SharpSpring -> Create feed ( Create One )
    3131* Feed Settings -> Create feed name -> Choose a list -> Map form fields -> Update settings
    3232
     
    3838
    3939== Changelog ==
     40
     41= 1.0.4 =
     42*Release Date - 2 December 2022*
     43
     44* Dev - Increment tested value: 6.1.
     45* Corrected readme typographical errors.
     46* Dev - Corrected null offset warning.
    4047
    4148= 1.0.3 =
  • integrate-sharpspring-and-gravity-forms/trunk/class-integrate-sharpspring-and-gravity-forms.php

    r2530005 r2827978  
    428428        $lead_post   = $this->sharpspring_post( $params, 'createLeads');
    429429        $lead_post   = json_decode($lead_post['body'], true);
    430         $lead_error  = $lead_post['result']['creates'][0]['error']['code'];
    431 
    432         // Check to see if the lead is created already, if so grab the ID.
    433         if( $lead_error == '301' ) {
    434             $lead_params    = array( 'where' => array( 'emailAddress' => $params['emailAddress'] ) );
    435             $lead_results   = $this->sharpspring_post( $lead_params, 'getLeads');
    436             $lead_results   = json_decode($lead_results['body'], true);
    437             $lead_id        = $lead_results['result']['lead'][0]['id'];
    438 
    439             // If lead already exists, update the lead's information
    440             $lead_updated   = $this->sharpspring_post( $params, 'updateLeads' );
     430
     431        if( isset( $lead_post['result']['creates'][0]['error']['code'] ) ) {
     432            $lead_error = $lead_post['result']['creates'][0]['error']['code'];
     433
     434            if( $lead_error == '301' ) {
     435                $lead_params    = array( 'where' => array( 'emailAddress' => $params['emailAddress'] ) );
     436                $lead_results   = $this->sharpspring_post( $lead_params, 'getLeads');
     437                $lead_results   = json_decode($lead_results['body'], true);
     438                $lead_id        = $lead_results['result']['lead'][0]['id'];
     439   
     440                // If lead already exists, update the lead's information
     441                $lead_updated   = $this->sharpspring_post( $params, 'updateLeads' );
     442            }
    441443        } else {
    442             $lead_id        = $lead_post['result']['creates'][0]['id'];
     444            // Check to see if the lead is created already, if so grab the ID.
     445            $lead_id = $lead_post['result']['creates'][0]['id'];
    443446        }
    444447
  • integrate-sharpspring-and-gravity-forms/trunk/integrate-sharpspring-and-gravity-forms.php

    r2530006 r2827978  
    33    Plugin Name: Integrate SharpSpring and Gravity Forms
    44    Description: Integrates Gravity Forms with SharpSpring, allowing form submissions to be automatically sent to your SharpSpring account.
    5     Version: 1.0.3
     5    Version: 1.0.4
    66    Author: Oyova
    77    Author URI: https://www.oyova.com
    88 */
    99
    10 define('INTEGRATE_SHARPSPRING_AND_GRAVITY_FORMS', '1.0');
     10define('INTEGRATE_SHARPSPRING_AND_GRAVITY_FORMS', '1.0.4');
    1111
    1212add_action('gform_loaded', array('ISGF_GF_Simple_Feed_AddOn_Bootstrap', 'load'), 5);
  • integrate-sharpspring-and-gravity-forms/trunk/js/form_settings.js

    r2396277 r2827978  
    11jQuery(function() {
    2     var $customFieldCheckbox = jQuery('.customfield-checkbox').prop('checked'),
    3         $customFields        = jQuery('#gaddon-setting-row-mappedFieldsCustom, #_gform_setting_mappedFieldsCustom_container');
     2    var $customFieldCheckbox = $('.customfield-checkbox').prop('checked'),
     3        $customFields        = $('#gaddon-setting-row-mappedFieldsCustom, #_gform_setting_mappedFieldsCustom_container');
    44
    55    // If checkbox is checked show custom fields
  • integrate-sharpspring-and-gravity-forms/trunk/readme.txt

    r2530005 r2827978  
    44Tags: Gravity Forms, CRM, SharpSpring
    55Requires at least: 5.4
    6 Tested up to: 5.7
    7 Stable tag: 5.7
     6Tested up to: 6.1
     7Stable tag: 1.0.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1515## Intelligent Integration
    1616
    17 Connect your forms with Sharp Spring and push your lead data into your lists. Capture new leads from any form on your site, they will automatically be added to your contact manager as a lead. Have one form connect to multiple lists and capture different data using multiple feeds on one form.
     17Connect your forms with SharpSpring and push your lead data into your lists. Capture new leads from any form on your site, they will automatically be added to your contact manager as a lead. Have one form connect to multiple lists and capture different data using multiple feeds on one form.
    1818
    1919## Custom Fields
    2020
    21 Capture more data than the basics. Create custom fields in Sharp Spring and easily map them to any field from your form. That data will then be mapped to your new lead.
     21Capture more data than the basics. Create custom fields in SharpSpring and easily map them to any field from your form. That data will then be mapped to your new lead.
    2222
    2323## Conditional Logic
     
    2727## Integrate SharpSpring and Gravity Forms Setup:
    2828
    29 * Go To Forms -> Settings -> SharpSpring -> Add API settings ( These can be found in SharSpring: Sharpsring Settings -> Sharpspring API -> API Settings )
    30 * Go to Forms -> Select any Form -> Settings -> SharpSspring -> Create feed ( Create One )
     29* Go To Forms -> Settings -> SharpSpring -> Add API settings ( These can be found in SharpSpring: SharpSpring Settings -> Sharppring API -> API Settings )
     30* Go to Forms -> Select any Form -> Settings -> SharpSpring -> Create feed ( Create One )
    3131* Feed Settings -> Create feed name -> Choose a list -> Map form fields -> Update settings
    3232
     
    3838
    3939== Changelog ==
     40
     41= 1.0.4 =
     42*Release Date - 2 December 2022*
     43
     44* Dev - Increment tested value: 6.1.
     45* Corrected readme typographical errors.
     46* Dev - Corrected null offset warning.
    4047
    4148= 1.0.3 =
Note: See TracChangeset for help on using the changeset viewer.