Version Description
- Fixes an issue that prevented some forms from submitting and redirecting
- Disables JavaScript for WPCF7 completely
Download this release
Release Info
Developer | rnevius |
Plugin | Contact Form 7 – Success Page Redirects |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- cf7-success-page-redirects.php +9 -2
- readme.txt +23 -2
cf7-success-page-redirects.php
CHANGED
@@ -2,12 +2,11 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Contact Form 7 - Success Page Redirects
|
4 |
* Description: An add-on for Contact Form 7 that provides a straightforward method to redirect visitors to success pages or thank you pages.
|
5 |
-
* Version: 1.1.
|
6 |
* Author: Ryan Nevius
|
7 |
* Author URI: http://www.ryannevius.com
|
8 |
* License: GPLv3
|
9 |
*/
|
10 |
-
|
11 |
/**
|
12 |
* Verify that CF7 is active.
|
13 |
*/
|
@@ -15,9 +14,17 @@ function cf7_success_page_admin_notice() {
|
|
15 |
if ( !is_plugin_active('contact-form-7/wp-contact-form-7.php') ) {
|
16 |
echo '<div class="error"><p>Contact Form 7 is not activated. The Contact Form 7 Plugin must be installed and activated before you can use Success Page Redirects.</p></div>';
|
17 |
}
|
|
|
|
|
|
|
18 |
}
|
19 |
add_action( 'admin_notices', 'cf7_success_page_admin_notice' );
|
20 |
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
/**
|
23 |
* Adds a box to the main column on the form edit page.
|
2 |
/**
|
3 |
* Plugin Name: Contact Form 7 - Success Page Redirects
|
4 |
* Description: An add-on for Contact Form 7 that provides a straightforward method to redirect visitors to success pages or thank you pages.
|
5 |
+
* Version: 1.1.1
|
6 |
* Author: Ryan Nevius
|
7 |
* Author URI: http://www.ryannevius.com
|
8 |
* License: GPLv3
|
9 |
*/
|
|
|
10 |
/**
|
11 |
* Verify that CF7 is active.
|
12 |
*/
|
14 |
if ( !is_plugin_active('contact-form-7/wp-contact-form-7.php') ) {
|
15 |
echo '<div class="error"><p>Contact Form 7 is not activated. The Contact Form 7 Plugin must be installed and activated before you can use Success Page Redirects.</p></div>';
|
16 |
}
|
17 |
+
// if ( (int)preg_replace('/[.]/', '', get_plugin_data( plugins_url() . '/contact-form-7/wp-contact-form-7.php', false, false)['Version']) < 394 ) {
|
18 |
+
// echo '<div class="error"><p><strong>Warning: </strong>Contact Form 7 - Success Page Redirects requires that you have the latest version of Contact Form 7 installed. Please upgrade now.</p></div>';
|
19 |
+
// }
|
20 |
}
|
21 |
add_action( 'admin_notices', 'cf7_success_page_admin_notice' );
|
22 |
|
23 |
+
/**
|
24 |
+
* Disable Contacr Form 7 JavaScript completely
|
25 |
+
*/
|
26 |
+
add_filter( 'wpcf7_load_js', '__return_false' );
|
27 |
+
|
28 |
|
29 |
/**
|
30 |
* Adds a box to the main column on the form edit page.
|
readme.txt
CHANGED
@@ -13,13 +13,15 @@ An add-on for Contact Form 7 that provides a straightforward method to redirect
|
|
13 |
|
14 |
An add-on for Contact Form 7 (CF7) that provides a straightforward method to redirect visitors to success pages or thank you pages, if their messages are successfully delivered. If no message is sent, or if there is an error with the form, the user will not be redirected.
|
15 |
|
|
|
|
|
16 |
== Installation ==
|
17 |
|
18 |
1. Unzip the downloaded plugin archive.
|
19 |
1. Upload the inner 'contact-form-7-success-page-redirects' directory to the '/wp-content/plugins/' directory on your web server.
|
20 |
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
21 |
|
22 |
-
Please note that [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) must be installed and activated in order for this plugin to be functional.
|
23 |
|
24 |
== Frequently Asked Questions ==
|
25 |
|
@@ -27,6 +29,25 @@ Please note that [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
|
|
27 |
|
28 |
If you have a feature suggestion, I'd love to hear about it. Feel free to leave a message on the "Support" tab of the plugin page, and I'll follow up as soon as possible.
|
29 |
|
|
|
|
|
|
|
|
|
|
|
30 |
== Screenshots ==
|
31 |
|
32 |
-
1. The plugin will add a "Redirect to:" dropdown that contains all of your existing pages as options. This is set on each of the "Edit Contact Form" pages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
An add-on for Contact Form 7 (CF7) that provides a straightforward method to redirect visitors to success pages or thank you pages, if their messages are successfully delivered. If no message is sent, or if there is an error with the form, the user will not be redirected.
|
15 |
|
16 |
+
**NOTE:** This plugin requires Contact Form 7 version 3.9 or later.
|
17 |
+
|
18 |
== Installation ==
|
19 |
|
20 |
1. Unzip the downloaded plugin archive.
|
21 |
1. Upload the inner 'contact-form-7-success-page-redirects' directory to the '/wp-content/plugins/' directory on your web server.
|
22 |
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
23 |
|
24 |
+
Please note that [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) (version 3.9 or later) must be installed and activated in order for this plugin to be functional.
|
25 |
|
26 |
== Frequently Asked Questions ==
|
27 |
|
29 |
|
30 |
If you have a feature suggestion, I'd love to hear about it. Feel free to leave a message on the "Support" tab of the plugin page, and I'll follow up as soon as possible.
|
31 |
|
32 |
+
= Why are my forms no longer using Ajax, when I install this plugin? =
|
33 |
+
|
34 |
+
In order to ensure that all forms are submitted properly, and that users can be redirected to success pages from some of your forms, I have had to disable Contact Form 7's JavaScript for all forms. This means that you won't be able to use Ajax to submit forms. In future updates, I hope to change this functionality, so that Ajax is only disabled for the forms that have a redirect page defined. Please note that disabling CF7's JavaScript does not affect your forms' ability to send messages properly.
|
35 |
+
|
36 |
+
|
37 |
== Screenshots ==
|
38 |
|
39 |
+
1. The plugin will add a "Redirect to:" dropdown that contains all of your existing pages as options. This is set on each of the "Edit Contact Form" pages.
|
40 |
+
|
41 |
+
== Changelog ==
|
42 |
+
|
43 |
+
= 1.1.1 =
|
44 |
+
* Fixes an issue that prevented some forms from submitting and redirecting
|
45 |
+
* Disables JavaScript for WPCF7 completely
|
46 |
+
|
47 |
+
= 1.1.0 =
|
48 |
+
* Initial version
|
49 |
+
|
50 |
+
== Upgrade Notice ==
|
51 |
+
|
52 |
+
= 1.1.1 =
|
53 |
+
This version fixes an issue that prevented some forms from submitting. Please upgrade to ensure all CF7 messages are sent.
|