Plugin Directory

Changeset 2199235


Ignore:
Timestamp:
11/23/2019 12:50:58 AM (6 years ago)
Author:
rxnlabs
Message:

Updated plugin to support custom Luminate domains.

  • Added support for custom Luminate domains. If your Luminate account uses a custom domain such as https://secure.my-organization.org, the plugin now works for these domains.
  • Output better debugging log to display the exact information that the Luminate API returns.
  • Added instructions to the plugin settings page to contact the plugin author if you are having problems with the plugin.
Location:
integration-for-luminate-and-gravity-forms/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • integration-for-luminate-and-gravity-forms/trunk/ConvioOpenAPI.php

    r1941598 r2199235  
    4545
    4646    /**
     47     * @var bool Use a custom Luminate domain without the Organization's name in the Luminate servlet portion of the API request
     48     * @access public
     49     */
     50    public $is_custom_domain = false;
     51
     52    /**
    4753     * @var string The desired format in which the server response should be returned in. By default, responses
    4854     * will be formatted as PHP objects, but either "xml" or "json" is acceptable.
     
    201207            }
    202208        }
     209
     210        if ( $this->is_custom_domain ) {
     211            return sprintf('https://%s/site/%s', $this->host, $this->__servlet);
     212        }
     213
    203214        return sprintf('https://%s/%s/site/%s', $this->host, $this->short_name, $this->__servlet);
    204215    }
     
    254265
    255266            if ($response == '') {
    256                 $response = sprintf("cURL Error %s: %s\n", curl_errno($curl), curl_error($curl));
     267                $client_response = sprintf("cURL Error %s: %s\n", curl_errno($curl), curl_error($curl));
    257268            }
    258269           
     
    261272
    262273        if ($this->response_format == 'php' || $this->response_format == 'json') {
    263             $response = json_decode($response);
     274            $client_response = json_decode($response);
     275        }
     276
     277        // in case the response returned from the Luminate APU is not a JSON response
     278        if ( empty( $client_response ) ) {
     279            $client_response = $response;
    264280        }
    265281       
    266         return $response;
     282        return $client_response;
    267283    }
    268284   
  • integration-for-luminate-and-gravity-forms/trunk/gravityforms-luminate.php

    r2062559 r2199235  
    44Plugin URI: https://cornershopcreative.com/product/gravity-forms-add-ons/
    55Description: Integrates Gravity Forms with Luminate CRM, allowing form submissions to automatically create/update Constituents, map submissions to surveys (targets Convio Constituents Only and surveys, NOT Alerts)
    6 Version: 1.1.7
     6Version: 1.1.8
    77Author: Cornershop Creative
    88Author URI: https://cornershopcreative.com
  • integration-for-luminate-and-gravity-forms/trunk/readme.txt

    r2191024 r2199235  
    5757== Changelog ==
    5858
     59= 1.1.8 =
     60* Added support for custom Luminate domains. If your Luminate account uses a custom domain such as https://secure.my-organization.org, the plugin now works for these domains.
     61* Output better debugging log to display the exact information that the Luminate API returns.
     62* Added instructions to the plugin settings page to contact the plugin author if you are having problems with the plugin.
     63
    5964= 1.1.7 =
    6065* Plugin now provides better immediate confirmation of valid Luminate API credentials when saving settings.
Note: See TracChangeset for help on using the changeset viewer.