Plugin Directory

Changeset 1879333


Ignore:
Timestamp:
05/22/2018 04:45:02 PM (8 years ago)
Author:
Infusionsoft
Message:

Releasing version 1.0.5

Location:
infusionsoft-official-opt-in-forms
Files:
518 added
4 edited

Legend:

Unmodified
Added
Removed
  • infusionsoft-official-opt-in-forms/trunk/changelog.txt

    r1658970 r1879333  
     1version 1.0.5
     2- Plugin now complies with the General Data Protection Regulation (GDPR) (EU).
     3- Fixed issue where duplicating or split testing an opt-in only displays the newest version of the form in the Infusionsoft Campaign Builder.
     4
    15version 1.0.4
    26- Fixes contact 7 forms plugin conflict
  • infusionsoft-official-opt-in-forms/trunk/includes/classes/integrations/class.infusionsoft-infusionsoft.php

    r1658970 r1879333  
    100100            $infusion_app = new InfusionsoftWordPressSDK();
    101101            $infusion_app->cfgCon( $app_id, $api_key, 'throw' );
     102            $contact_details = array(
     103                'FirstName' => $name,
     104                'LastName'  => $last_name,
     105                'Email'     => $email,
     106                'OriginIp'  => $_SERVER['REMOTE_ADDR'],
     107            );
     108            $new_contact_id  = $infusion_app->addWithDupCheck( $contact_details, $checkType = 'Email' );
     109            $infusion_app->optIn( $contact_details['Email'] );
     110
     111            $response = $infusion_app->achieveWordPressGoal( $new_contact_id, str_replace( ".", "", $optin_uniqid ) );
     112            if ( $response ) {
     113                //contact added
     114                $error_message = 'success';
     115            } else {
     116                //update contact if no $response
     117                $contact_id      = $this->get_contact_id( $infusion_app, $email );
     118                $updated_contact = $this->update_contact( $infusion_app, $contact_details, $contact_id );
     119                if ( $updated_contact ) {
     120                    $error_message = 'success';
     121                }
     122            }
    102123        } catch ( InfusionsoftWordPressSDKException $e ) {
    103             $error_message = $e->getMessage();
    104         }
    105 
    106 
    107         $contact_details = array(
    108             'FirstName' => $name,
    109             'LastName'  => $last_name,
    110             'Email'     => $email,
    111         );
    112         $new_contact_id  = $infusion_app->addWithDupCheck( $contact_details, $checkType = 'Email' );
    113         $infusion_app->optIn( $contact_details['Email'] );
    114 
    115         $response = $infusion_app->achieveWordPressGoal( $new_contact_id, str_replace( ".", "", $optin_uniqid ) );
    116         if ( $response ) {
    117             //contact added
    118             $error_message = 'success';
    119         } else {
    120             //update contact if no $response
    121             $contact_id      = $this->get_contact_id( $infusion_app, $email );
    122             $updated_contact = $this->update_contact( $infusion_app, $contact_details, $contact_id );
    123             if ( $updated_contact ) {
    124                 $error_message = 'success';
    125             }
    126         }
     124            if ($e->getCode() === 16) {
     125                $error_message = "The email provided has exercised the right to be forgotten. Please provide a different email.";
     126            } else {
     127                $error_message = $e->getMessage();
     128            }
     129        }
    127130
    128131        return $error_message;
  • infusionsoft-official-opt-in-forms/trunk/infusionsoft.php

    r1658970 r1879333  
    33 * Plugin Name: Infusionsoft Official Opt-in Forms
    44 * Plugin URI: https://www.infusionsoft.com
    5  * Version: 1.0.4
     5 * Version: 1.0.5
    66 * Description: Infusionsoft Official Opt-in Forms
    77 * Author: Infusionsoft
     
    3030
    3131class INF_Infusionsoft extends INF_Dashboard {
    32     var $plugin_version = '1.0.0';
     32    var $plugin_version = '1.0.5';
    3333    var $db_version = '1.0';
    3434    var $_options_pagename = 'inf_infusionsoft_options';
     
    21902190            $options_array                               = INF_Infusionsoft::get_infusionsoft_options();
    21912191            $new_option[ $new_optin_id ]                 = $options_array[ $duplicate_optin_id ];
     2192            $new_option[ $new_optin_id ]['optin_id']     = uniqid( '', true );
    21922193            $new_option[ $new_optin_id ]['optin_name']   = $new_option[ $new_optin_id ]['optin_name'] . $suffix;
    21932194            $new_option[ $new_optin_id ]['optin_status'] = 'active';
  • infusionsoft-official-opt-in-forms/trunk/readme.txt

    r1658970 r1879333  
    33Tags: infusionsoft, infusionsoft api, infusionsoft wordpress, wp popup, wordpress popup plugin, wordpress subscription plugin, responsive opt-in subscription plugin, free optinmonster alternative, list builder, sumome alternative, how to increase email list, email form, scroll box, newsletter, inbound marketing, mailing list, landing page, light box, email list building, subscribers, subscription
    44Requires at least: 3.5
    5 Tested up to: 4.7
    6 Stable tag: 1.0.4
     5Tested up to: 4.9.6
     6Stable tag: 1.0.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8080
    8181== Changelog ==
     82= 1.0.5 =
     83* Plugin now complies with the General Data Protection Regulation (GDPR) (EU).
     84* Fixed issue where duplicating or split testing an opt-in only displays the newest version of the form in the Infusionsoft Campaign Builder.
     85
    8286= 1.0.4 =
    8387* Fixes Contact 7 Forms Conflict
     
    105109
    106110== Upgrade Notice ==
     111= 1.0.5 =
     112Version 1.0.5 has been released to meet the requirements of the General Data Protection Regulation (GDPR) (EU).
     113
    107114= 1.0.4 =
    108115Fixes Contact 7 Forms Conflict
Note: See TracChangeset for help on using the changeset viewer.