Skip to content

Commit 17683b3

Browse files
author
Gravity Forms
committed
Updates to 4.0.0
1 parent 6533829 commit 17683b3

34 files changed

+6170
-0
lines changed

aweber.php

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?php
2+
3+
// don't load directly
4+
if ( ! defined( 'ABSPATH' ) ) {
5+
die();
6+
}
7+
8+
/*
9+
Plugin Name: Gravity Forms AWeber Add-On
10+
Plugin URI: https://gravityforms.com
11+
Description: Integrates Gravity Forms with AWeber, allowing form submissions to be automatically sent to your AWeber account.
12+
Version: 4.0.0
13+
Author: Gravity Forms
14+
Author URI: https://gravityforms.com
15+
License: GPL-2.0+
16+
Text Domain: gravityformsaweber
17+
Domain Path: /languages
18+
19+
------------------------------------------------------------------------
20+
Copyright 2009-2023 Rocketgenius, Inc.
21+
22+
This program is free software; you can redistribute it and/or modify
23+
it under the terms of the GNU General Public License as published by
24+
the Free Software Foundation; either version 2 of the License, or
25+
(at your option) any later version.
26+
27+
This program is distributed in the hope that it will be useful,
28+
but WITHOUT ANY WARRANTY; without even the implied warranty of
29+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30+
GNU General Public License for more details.
31+
32+
You should have received a copy of the GNU General Public License
33+
along with this program; if not, write to the Free Software
34+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35+
*/
36+
37+
/**
38+
* Current version of AWeber Add-On.
39+
*/
40+
define( 'GF_AWEBER_VERSION', '4.0.0' );
41+
42+
// If Gravity Forms is loaded, bootstrap the AWeber Add-On.
43+
add_action( 'gform_loaded', array( 'GF_AWeber_Bootstrap', 'load' ), 5 );
44+
45+
/**
46+
* Class GF_AWeber_Bootstrap
47+
*
48+
* Handles the loading of the AWeber Add-On and registers it with the Add-On Framework.
49+
*/
50+
class GF_AWeber_Bootstrap {
51+
52+
/**
53+
* If the Add-On Framework exists, load AWeber Add-On.
54+
*
55+
* @access public
56+
* @static
57+
*/
58+
public static function load() {
59+
60+
if ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {
61+
return;
62+
}
63+
64+
require_once( 'class-gf-aweber.php' );
65+
66+
GFAddOn::register( 'GFAWeber' );
67+
68+
}
69+
70+
}
71+
72+
/**
73+
* Returns an instance of the GFAWeber class.
74+
*
75+
* @see GFAWeber::get_instance()
76+
*
77+
* @return GFAWeber
78+
*/
79+
function gf_aweber() {
80+
return GFAWeber::get_instance();
81+
}

change_log.txt

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
### 4.0.0 | 2023-08-17
2+
- Updated the add-on to connect using OAuth 2.0.
3+
- Updated to use the AWeber REST API instead of the AWeber PHP SDK, which will be removed in a future release.
4+
- Fixed an issue where connecting to AWeber fails.
5+
6+
### 3.0 | 2023-04-19
7+
- Added support for async (background) feed processing to improve form submission performance.
8+
- Fixed an issue which causes deleted lists to throw a fatal error when editing a feed.
9+
10+
11+
### 2.11 | 2020-09-21
12+
- Added support for Gravity Forms 2.5.
13+
- Fixed an issue where the contact is not created if there are blank tags.
14+
15+
16+
### 2.10 | 2020-03-11
17+
- Added translations for Hebrew, Hindi, Japanese, and Turkish.
18+
- Fixed PHP 7.4 notices which occur when saving the settings for the first time.
19+
20+
### 2.9 | 2019-08-07
21+
- Added security enhancements.
22+
23+
24+
### 2.8 | 2018-11-02
25+
- Added the filter *gform_aweber_app_id* enabling the app id used to authorize the add-on with AWeber to be overridden.
26+
- Added support for tags.
27+
28+
29+
### 2.7 | 2018-04-02
30+
- Added security enhancements.
31+
- Added License GPL to plugin header.
32+
- Updated Plugin URI and Author URI to https.
33+
34+
35+
### 2.6 | 2017-10-26
36+
- Updated API library to support PHP 7.
37+
38+
39+
### 2.5 | 2017-04-28
40+
- Added security enhancements.
41+
- Added translations.
42+
43+
44+
### 2.4.2 | 2016-11-30
45+
- Fixed strings for translations.
46+
47+
48+
### 2.4.1 | 2016-09-02
49+
- Added the hook [gform_aweber_post_subscriber_created](https://docs.gravityforms.com/gform_aweber_post_subscriber_created/)
50+
51+
52+
### 2.4 | 2016-07-29
53+
- Updated to support feed duplication with Gravity Forms 1.9.15+.
54+
- Updated the choices for the Email Address field to only list email and hidden type form fields.
55+
- Fixed an issue with custom fields returned by the AWeber API which don't have labels.
56+
- Fixed fatal error which could occur during feed processing if the configured account ID for the feed becomes invalid.
57+
- Fixed fatal error which could occur if the configured account ID for the feed becomes invalid.
58+
59+
60+
### 2.3 | 2015-08-07
61+
- Added form and field specific versions of the gform_aweber_field_value filter.
62+
- Updated minimum Gravity Forms version to 1.9.3.
63+
- Updated feed processing to use GFAddOn::get_field_value(), if available, when retrieving mapped field values.
64+
- Updated 'Opt-In Condition' setting label to 'Conditional Logic'.
65+
- Fixed an issue with the feed list page if the AWeber auth code was not valid.
66+
- Fixed an issue with the upgrade routine which caused it run even if a pre-framework version hadn't been installed.
67+
68+
69+
### 2.2 | 2015-04-20
70+
- Added hook to allow args to be changed before sending submission to AWeber.
71+
*add_filter('gform_aweber_args_pre_subscribe', 'add_ip', 10, 4);
72+
function add_ip( $args, $form, $entry, $feed ){
73+
$args['ip_address'] = $entry['ip'];
74+
return $args;
75+
}*
76+
- Added support for the middle name input when preparing Name field values.
77+
- Updated how Address field values are prepared to also support Gravity Forms 1.9 method for getting country code.
78+
- Updated logging statements.
79+
- Fixed a low severity security vulnerability in the admin area which could be exploited by authenticated users with form administration permissions.
80+
- Fixed issues when upgrading causing feeds not to get created.
81+
82+
83+
### 2.1 | 2014-11-21
84+
- Fixed error when creating new feeds.
85+
86+
87+
### 2.0 | 2014-11-19
88+
- Added integration with Add-On Framework.
89+
- Added text domain/path to header.
90+
- Added the gform_aweber_field_value filter so the field value can be modified before sending to AWeber.
91+
- Updated required version of Gravity Forms to 1.8.17.
92+
- Updated POT file.
93+
- Updated to not process entries marked as spam.
94+
- Fixed an issue where non-string field values would cause the AWeber create subscriber process to fail.
95+
96+
97+
### 1.4 | 2013-03-05
98+
- Added PayPal integration to subscribe user to AWeber only when payment is received.
99+
- Updated the AJAX Url to resolve conflicts with sites running over HTTPS.
100+
- Fixed issue where spaces after closing php tag caused problems with WP 3.5 release.
101+
102+
103+
### 1.3 | 2012-06-27
104+
- Added logging support.
105+
- Added new conditional logic options (greater than, less than, contains starts with, ends with) and support for other conditional fields
106+
- Fixed notices.
107+
- Fixed issue with API throwing errors on some PHP installations.
108+
109+
110+
### 1.2 | 2012-03-12
111+
- Fixed issue with Full Name field not being sent to AWeber when mapped to custom fields.
112+
113+
114+
### 1.1 | 2012-01-18
115+
- Updated PHP API and using it to subscribe users instead of relying on email
116+
- Added support for field mapping
117+
- Added hook to allow custom Ad Tracking text to be assigned to the subscriber
118+
*add_filter("gform_aweber_ad_tracking", "aweber_ad_tracking", 10, 4); //site wide ad tracking*
119+
OR
120+
*add_filter("gform_aweber_ad_tracking_20", "aweber_ad_tracking", 10, 4); //form specific ad tracking
121+
function aweber_ad_tracking($ad_tracking, $entry, $form, $feed){
122+
return "Custom Ad Tracking";
123+
}*
124+
125+
<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>

0 commit comments

Comments
 (0)