Skip to content

Commit

Permalink
Updates to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravity Forms committed Apr 19, 2024
1 parent 6533829 commit 17683b3
Show file tree
Hide file tree
Showing 34 changed files with 6,170 additions and 0 deletions.
81 changes: 81 additions & 0 deletions aweber.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?php

// don't load directly
if ( ! defined( 'ABSPATH' ) ) {
die();
}

/*
Plugin Name: Gravity Forms AWeber Add-On
Plugin URI: https://gravityforms.com
Description: Integrates Gravity Forms with AWeber, allowing form submissions to be automatically sent to your AWeber account.
Version: 4.0.0
Author: Gravity Forms
Author URI: https://gravityforms.com
License: GPL-2.0+
Text Domain: gravityformsaweber
Domain Path: /languages
------------------------------------------------------------------------
Copyright 2009-2023 Rocketgenius, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

/**
* Current version of AWeber Add-On.
*/
define( 'GF_AWEBER_VERSION', '4.0.0' );

// If Gravity Forms is loaded, bootstrap the AWeber Add-On.
add_action( 'gform_loaded', array( 'GF_AWeber_Bootstrap', 'load' ), 5 );

/**
* Class GF_AWeber_Bootstrap
*
* Handles the loading of the AWeber Add-On and registers it with the Add-On Framework.
*/
class GF_AWeber_Bootstrap {

/**
* If the Add-On Framework exists, load AWeber Add-On.
*
* @access public
* @static
*/
public static function load() {

if ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {
return;
}

require_once( 'class-gf-aweber.php' );

GFAddOn::register( 'GFAWeber' );

}

}

/**
* Returns an instance of the GFAWeber class.
*
* @see GFAWeber::get_instance()
*
* @return GFAWeber
*/
function gf_aweber() {
return GFAWeber::get_instance();
}
125 changes: 125 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
### 4.0.0 | 2023-08-17
- Updated the add-on to connect using OAuth 2.0.
- Updated to use the AWeber REST API instead of the AWeber PHP SDK, which will be removed in a future release.
- Fixed an issue where connecting to AWeber fails.

### 3.0 | 2023-04-19
- Added support for async (background) feed processing to improve form submission performance.
- Fixed an issue which causes deleted lists to throw a fatal error when editing a feed.


### 2.11 | 2020-09-21
- Added support for Gravity Forms 2.5.
- Fixed an issue where the contact is not created if there are blank tags.


### 2.10 | 2020-03-11
- Added translations for Hebrew, Hindi, Japanese, and Turkish.
- Fixed PHP 7.4 notices which occur when saving the settings for the first time.

### 2.9 | 2019-08-07
- Added security enhancements.


### 2.8 | 2018-11-02
- Added the filter *gform_aweber_app_id* enabling the app id used to authorize the add-on with AWeber to be overridden.
- Added support for tags.


### 2.7 | 2018-04-02
- Added security enhancements.
- Added License GPL to plugin header.
- Updated Plugin URI and Author URI to https.


### 2.6 | 2017-10-26
- Updated API library to support PHP 7.


### 2.5 | 2017-04-28
- Added security enhancements.
- Added translations.


### 2.4.2 | 2016-11-30
- Fixed strings for translations.


### 2.4.1 | 2016-09-02
- Added the hook [gform_aweber_post_subscriber_created](https://docs.gravityforms.com/gform_aweber_post_subscriber_created/)


### 2.4 | 2016-07-29
- Updated to support feed duplication with Gravity Forms 1.9.15+.
- Updated the choices for the Email Address field to only list email and hidden type form fields.
- Fixed an issue with custom fields returned by the AWeber API which don't have labels.
- Fixed fatal error which could occur during feed processing if the configured account ID for the feed becomes invalid.
- Fixed fatal error which could occur if the configured account ID for the feed becomes invalid.


### 2.3 | 2015-08-07
- Added form and field specific versions of the gform_aweber_field_value filter.
- Updated minimum Gravity Forms version to 1.9.3.
- Updated feed processing to use GFAddOn::get_field_value(), if available, when retrieving mapped field values.
- Updated 'Opt-In Condition' setting label to 'Conditional Logic'.
- Fixed an issue with the feed list page if the AWeber auth code was not valid.
- Fixed an issue with the upgrade routine which caused it run even if a pre-framework version hadn't been installed.


### 2.2 | 2015-04-20
- Added hook to allow args to be changed before sending submission to AWeber.
*add_filter('gform_aweber_args_pre_subscribe', 'add_ip', 10, 4);
function add_ip( $args, $form, $entry, $feed ){
$args['ip_address'] = $entry['ip'];
return $args;
}*
- Added support for the middle name input when preparing Name field values.
- Updated how Address field values are prepared to also support Gravity Forms 1.9 method for getting country code.
- Updated logging statements.
- Fixed a low severity security vulnerability in the admin area which could be exploited by authenticated users with form administration permissions.
- Fixed issues when upgrading causing feeds not to get created.


### 2.1 | 2014-11-21
- Fixed error when creating new feeds.


### 2.0 | 2014-11-19
- Added integration with Add-On Framework.
- Added text domain/path to header.
- Added the gform_aweber_field_value filter so the field value can be modified before sending to AWeber.
- Updated required version of Gravity Forms to 1.8.17.
- Updated POT file.
- Updated to not process entries marked as spam.
- Fixed an issue where non-string field values would cause the AWeber create subscriber process to fail.


### 1.4 | 2013-03-05
- Added PayPal integration to subscribe user to AWeber only when payment is received.
- Updated the AJAX Url to resolve conflicts with sites running over HTTPS.
- Fixed issue where spaces after closing php tag caused problems with WP 3.5 release.


### 1.3 | 2012-06-27
- Added logging support.
- Added new conditional logic options (greater than, less than, contains starts with, ends with) and support for other conditional fields
- Fixed notices.
- Fixed issue with API throwing errors on some PHP installations.


### 1.2 | 2012-03-12
- Fixed issue with Full Name field not being sent to AWeber when mapped to custom fields.


### 1.1 | 2012-01-18
- Updated PHP API and using it to subscribe users instead of relying on email
- Added support for field mapping
- Added hook to allow custom Ad Tracking text to be assigned to the subscriber
*add_filter("gform_aweber_ad_tracking", "aweber_ad_tracking", 10, 4); //site wide ad tracking*
OR
*add_filter("gform_aweber_ad_tracking_20", "aweber_ad_tracking", 10, 4); //form specific ad tracking
function aweber_ad_tracking($ad_tracking, $entry, $form, $feed){
return "Custom Ad Tracking";
}*

<div class="alert_yellow pad_20">IMPORTANT: $_collectionMap property in api/aweber.php line 82 has been made public to resolve errors on some PHP installations. When updating API, make sure to re-apply change.</div>
Loading

0 comments on commit 17683b3

Please sign in to comment.