Optin Forms - Version 1.2.9.6

Version Description

( August 22nd, 2019 ) = * Fix for ConvertKit integration

Download this release

Release Info

Developer wpkube
Plugin Icon 128x128 Optin Forms
Version 1.2.9.6
Comparing to
See all releases

Code changes from version 1.2.9.5 to 1.2.9.6

images/support-convertkit-001.png DELETED
Binary file
images/support-convertkit-002.png DELETED
Binary file
images/support-convertkit-003.png DELETED
Binary file
images/support-convertkit-004.png DELETED
Binary file
images/support-convertkit-005.png DELETED
Binary file
images/support-convertkit-2-001.png ADDED
Binary file
images/support-convertkit-2-002.png ADDED
Binary file
images/support-convertkit-2-003.png ADDED
Binary file
images/support-convertkit-2-004.png ADDED
Binary file
images/support-convertkit-2-005.png ADDED
Binary file
includes/functions.php CHANGED
@@ -18,6 +18,7 @@
18
  $optinforms_form_webformid_getresponse = get_option('optinforms_form_webformid_getresponse');
19
  $optinforms_form_name_field_interspire = get_option('optinforms_form_name_field_interspire');
20
  $optinforms_form_id_convertkit = get_option('optinforms_form_id_convertkit');
 
21
  $optinforms_form_success_convertkit = get_option('optinforms_form_success_convertkit');
22
  $optinforms_form_error_convertkit = get_option('optinforms_form_error_convertkit');
23
 
@@ -162,7 +163,7 @@ function optinforms_form_action_appendix() {
162
  }
163
  // add Convertkit action
164
  elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
165
- return "id=\"ck_subscribe_form\" data-remote=\"true\"";
166
  }
167
  }
168
 
@@ -205,7 +206,7 @@ function optinforms_form_action_mailerlite() {
205
 
206
  // Convertkit form action
207
  function optinforms_form_action_convertkit() {
208
- return "https://app.convertkit.com/landing_pages/" . optinforms_form_id_convertkit() . "/subscribe";
209
  }
210
 
211
  // Convertkit success message
@@ -334,6 +335,17 @@ function optinforms_form_id_convertkit() {
334
  return $optinforms_form_id_convertkit;
335
  }
336
 
 
 
 
 
 
 
 
 
 
 
 
337
  // Open our form in a new window?
338
  function optinforms_form_target_blank() {
339
  global $optinforms_form_target;
@@ -376,7 +388,7 @@ function optinforms_get_form_identifiers() {
376
  }
377
  // add Convertkit identifiers
378
  elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
379
- return "<script src=\"https://app.convertkit.com/assets/CKJS4.js?v=21\"></script><input type=\"hidden\" name=\"id\" value=\"" . optinforms_form_id_convertkit() . "\" id=\"landing_page_id\" />
380
  <div class=\"ck_errorArea\"><div id=\"ck_error_msg\" style=\"display:none\"><p>" . optinforms_form_get_error_convertkit() . "</p></div></div>
381
  ";
382
  } elseif ( $optinforms_email_solution == 'optinforms_email_solution_option8' ) {
@@ -416,7 +428,7 @@ function optinforms_get_name_field() {
416
  }
417
  // define Convertkit name field
418
  elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
419
- return "first_name";
420
  // MailerLite name field
421
  } elseif($optinforms_email_solution == 'optinforms_email_solution_option8') {
422
  return "fields[name]";
@@ -455,7 +467,7 @@ function optinforms_get_email_field() {
455
  }
456
  // define Convertkit email field
457
  elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
458
- return "email";
459
  }
460
  // define Mailerlite email field
461
  elseif($optinforms_email_solution == 'optinforms_email_solution_option8') {
@@ -486,7 +498,7 @@ function optinforms_form_exclude_pages() {
486
 
487
  // Decide when our admin notices are loaded
488
  function optinforms_configuration() {
489
- global $optinforms_email_solution, $optinforms_form_list_name_aweber, $optinforms_form_listid_icontact, $optinforms_form_specialid_icontact, $optinforms_form_clientid_icontact, $optinforms_form_action_mailchimp, $optinforms_form_action_mailerlite, $optinforms_form_webformid_getresponse, $optinforms_form_action_madmimi, $optinforms_form_action_interspire, $optinforms_form_id_convertkit;
490
  if(($optinforms_email_solution == 'optinforms_email_solution_option1') && (empty($optinforms_form_list_name_aweber))) {
491
  echo optinforms_configuration_message();
492
  }
18
  $optinforms_form_webformid_getresponse = get_option('optinforms_form_webformid_getresponse');
19
  $optinforms_form_name_field_interspire = get_option('optinforms_form_name_field_interspire');
20
  $optinforms_form_id_convertkit = get_option('optinforms_form_id_convertkit');
21
+ $optinforms_form_user_id_convertkit = get_option('optinforms_form_user_id_convertkit');
22
  $optinforms_form_success_convertkit = get_option('optinforms_form_success_convertkit');
23
  $optinforms_form_error_convertkit = get_option('optinforms_form_error_convertkit');
24
 
163
  }
164
  // add Convertkit action
165
  elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
166
+ return 'data-sv-form="' . optinforms_form_id_convertkit() . '" data-uid="' . optinforms_form_user_id_convertkit() . '" data-version="5" data-options="{&quot;settings&quot;:{&quot;after_subscribe&quot;:{&quot;action&quot;:&quot;message&quot;,&quot;redirect_url&quot;:&quot;&quot;,&quot;success_message&quot;:&quot;Success! Now check your email to confirm your subscription.&quot;},&quot;return_visitor&quot;:{&quot;action&quot;:&quot;show&quot;,&quot;custom_content&quot;:&quot;&quot;},&quot;recaptcha&quot;:{&quot;enabled&quot;:false}}}" min-width="400 500 600 700 800"';
167
  }
168
  }
169
 
206
 
207
  // Convertkit form action
208
  function optinforms_form_action_convertkit() {
209
+ return 'https://app.convertkit.com/forms/' . optinforms_form_id_convertkit() . '/subscriptions';
210
  }
211
 
212
  // Convertkit success message
335
  return $optinforms_form_id_convertkit;
336
  }
337
 
338
+ // converkit user id
339
+ function optinforms_form_user_id_convertkit() {
340
+
341
+ global $optinforms_form_user_id_convertkit;
342
+ if(empty($optinforms_form_user_id_convertkit)) {
343
+ $optinforms_form_user_id_convertkit = "";
344
+ }
345
+ return $optinforms_form_user_id_convertkit;
346
+
347
+ }
348
+
349
  // Open our form in a new window?
350
  function optinforms_form_target_blank() {
351
  global $optinforms_form_target;
388
  }
389
  // add Convertkit identifiers
390
  elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
391
+ return "<script src=\"https://f.convertkit.com/ckjs/ck.5.js\"></script><input type=\"hidden\" name=\"id\" value=\"" . optinforms_form_id_convertkit() . "\" id=\"landing_page_id\" />
392
  <div class=\"ck_errorArea\"><div id=\"ck_error_msg\" style=\"display:none\"><p>" . optinforms_form_get_error_convertkit() . "</p></div></div>
393
  ";
394
  } elseif ( $optinforms_email_solution == 'optinforms_email_solution_option8' ) {
428
  }
429
  // define Convertkit name field
430
  elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
431
+ return "fields[first_name]";
432
  // MailerLite name field
433
  } elseif($optinforms_email_solution == 'optinforms_email_solution_option8') {
434
  return "fields[name]";
467
  }
468
  // define Convertkit email field
469
  elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
470
+ return "email_address";
471
  }
472
  // define Mailerlite email field
473
  elseif($optinforms_email_solution == 'optinforms_email_solution_option8') {
498
 
499
  // Decide when our admin notices are loaded
500
  function optinforms_configuration() {
501
+ global $optinforms_email_solution, $optinforms_form_list_name_aweber, $optinforms_form_listid_icontact, $optinforms_form_specialid_icontact, $optinforms_form_clientid_icontact, $optinforms_form_action_mailchimp, $optinforms_form_action_mailerlite, $optinforms_form_webformid_getresponse, $optinforms_form_action_madmimi, $optinforms_form_action_interspire, $optinforms_form_id_convertkit, $optinforms_form_user_id_convertkit;
502
  if(($optinforms_email_solution == 'optinforms_email_solution_option1') && (empty($optinforms_form_list_name_aweber))) {
503
  echo optinforms_configuration_message();
504
  }
includes/options-email-solution.php CHANGED
@@ -429,17 +429,32 @@
429
  <div class="optinforms-step">
430
  <h4><?php echo __('How to find your form ID', 'optin-forms'); ?></h4>
431
  <p><span class="step">1</span> <?php echo __('Log in to your ConvertKit account', 'optin-forms'); ?></p>
432
- <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-001.png" class="step-image" />
433
- <p><span class="step">2</span> <?php echo __('Click on the name of your form', 'optin-forms'); ?></p>
434
- <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-002.png" class="step-image" />
435
- <p><span class="step">3</span> <?php echo __('Click on Settings', 'optin-forms'); ?></p>
436
- <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-003.png" class="step-image" />
437
  <p><span class="step">4</span> <?php echo __('Click on Embed', 'optin-forms'); ?></p>
438
- <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-004.png" class="step-image" />
439
- <p><span class="step">5</span> <?php echo __('You will see your form ID in the ID attribute', 'optin-forms'); ?></p>
440
- <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-005.png" class="step-image" />
441
  </div><!--optinforms-step-->
442
  </div><!--optinforms-explain-convertkit-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
443
 
444
  <div class="optiongroup">
445
  <div class="optionleft">
429
  <div class="optinforms-step">
430
  <h4><?php echo __('How to find your form ID', 'optin-forms'); ?></h4>
431
  <p><span class="step">1</span> <?php echo __('Log in to your ConvertKit account', 'optin-forms'); ?></p>
432
+ <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-2-001.png" class="step-image" />
433
+ <p><span class="step">2</span> <?php echo __('Click on Landing Pages & Forms', 'optin-forms'); ?></p>
434
+ <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-2-002.png" class="step-image" />
435
+ <p><span class="step">3</span> <?php echo __('Click on the Form you want to embed', 'optin-forms'); ?></p>
436
+ <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-2-003.png" class="step-image" />
437
  <p><span class="step">4</span> <?php echo __('Click on Embed', 'optin-forms'); ?></p>
438
+ <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-2-004.png" class="step-image" />
439
+ <p><span class="step">5</span> <?php echo __('Under HTML you will see your Form ID and User ID under data-form="FORM ID" and data-uid="USER ID"', 'optin-forms'); ?></p>
440
+ <img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-2-005.png" class="step-image" />
441
  </div><!--optinforms-step-->
442
  </div><!--optinforms-explain-convertkit-->
443
+
444
+ <div class="optiongroup">
445
+ <div class="optionleft">
446
+ <label>
447
+ <a onclick="optinforms_explain_convertkit()"><span class="explain">?</span></a>
448
+ </label>
449
+ <label for="optinforms_user_id_convertkit" class="nopointer">
450
+ <?php echo __('User ID', 'optin-forms'); ?> <span class="required">*</span>
451
+ </label>
452
+ </div><!--optionleft-->
453
+ <div class="optionmiddle">
454
+ <input type="text" id="optinforms_form_user_id_convertkit" name="optinforms_form_user_id_convertkit" value="<?php echo optinforms_form_user_id_convertkit(); ?>" />
455
+ </div><!--optionmiddle-->
456
+ <div class="clear"></div>
457
+ </div><!--optiongroup-->
458
 
459
  <div class="optiongroup">
460
  <div class="optionleft">
includes/register-settings.php CHANGED
@@ -43,6 +43,7 @@ function optinforms_register_settings()
43
  register_setting( 'optinforms-settings-group', 'optinforms_form_webformid_getresponse' );
44
  register_setting( 'optinforms-settings-group', 'optinforms_form_name_field_interspire' );
45
  register_setting( 'optinforms-settings-group', 'optinforms_form_id_convertkit' );
 
46
  register_setting( 'optinforms-settings-group', 'optinforms_form_success_convertkit' );
47
  register_setting( 'optinforms-settings-group', 'optinforms_form_error_convertkit' );
48
 
43
  register_setting( 'optinforms-settings-group', 'optinforms_form_webformid_getresponse' );
44
  register_setting( 'optinforms-settings-group', 'optinforms_form_name_field_interspire' );
45
  register_setting( 'optinforms-settings-group', 'optinforms_form_id_convertkit' );
46
+ register_setting( 'optinforms-settings-group', 'optinforms_form_user_id_convertkit' );
47
  register_setting( 'optinforms-settings-group', 'optinforms_form_success_convertkit' );
48
  register_setting( 'optinforms-settings-group', 'optinforms_form_error_convertkit' );
49
 
optin-forms.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Optin Forms
4
  Plugin URI: http://fancythemes.com/plugins/optin-forms/
5
  Description: Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
6
  Author: FancyThemes
7
- Version: 1.2.9.5
8
  Author URI: http://www.fancythemes.com
9
  Text Domain: optin-forms
10
  Domain Path: /languages/
@@ -116,8 +116,8 @@ class Optin_Forms {
116
  */
117
  public function optinforms_scripts() {
118
  wp_enqueue_script('jquery');
119
- wp_enqueue_style('optinforms-stylesheet', plugins_url('/css/optinforms.css', __FILE__ ), array(), '1.2.9.5' );
120
- wp_enqueue_script('placeholder', plugins_url('/js/placeholder.js', __FILE__ ), array(), '1.2.9.5');
121
  if ( optinforms_used_fonts() !== '//fonts.googleapis.com/css?family=' ) {
122
  wp_enqueue_style('optinforms-googleFont', optinforms_used_fonts());
123
  }
4
  Plugin URI: http://fancythemes.com/plugins/optin-forms/
5
  Description: Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
6
  Author: FancyThemes
7
+ Version: 1.2.9.6
8
  Author URI: http://www.fancythemes.com
9
  Text Domain: optin-forms
10
  Domain Path: /languages/
116
  */
117
  public function optinforms_scripts() {
118
  wp_enqueue_script('jquery');
119
+ wp_enqueue_style('optinforms-stylesheet', plugins_url('/css/optinforms.css', __FILE__ ), array(), '1.2.9.6' );
120
+ wp_enqueue_script('placeholder', plugins_url('/js/placeholder.js', __FILE__ ), array(), '1.2.9.6');
121
  if ( optinforms_used_fonts() !== '//fonts.googleapis.com/css?family=' ) {
122
  wp_enqueue_style('optinforms-googleFont', optinforms_used_fonts());
123
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wpkube, FancyThemes
3
  Tags: optin, form, forms, aweber, email subscriber, icontact, mailchimp, getresponse, mad mimi, newsletter, mailchimp forms, mailchimp integrations, mailchimp plugin, getresponse forms, subscribe, aweber forms, after post optin form, after post optin form plugin, lead generation, mobile optin forms, mobile optins, sidebar form, sidebar optin form, wordpress after post optin form, wordpress lead generation, wordpress popups, optin locker, social locker, enter email to download, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, email list, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design, convertkit, convert, kit
4
  Requires at least: 3.2
5
  Tested up to: 5.2
6
- Stable tag: 1.2.9.5
7
 
8
  Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
9
 
@@ -59,6 +59,9 @@ Having trouble with the plugin? Simply post your question to the [support forum]
59
  3. Add your form to your website with a simple mouse-click.
60
 
61
  == Changelog ==
 
 
 
62
  = 1.2.9.5 ( June 20th, 2019 ) =
63
  * Issue with form input placeholders
64
 
3
  Tags: optin, form, forms, aweber, email subscriber, icontact, mailchimp, getresponse, mad mimi, newsletter, mailchimp forms, mailchimp integrations, mailchimp plugin, getresponse forms, subscribe, aweber forms, after post optin form, after post optin form plugin, lead generation, mobile optin forms, mobile optins, sidebar form, sidebar optin form, wordpress after post optin form, wordpress lead generation, wordpress popups, optin locker, social locker, enter email to download, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, email list, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design, convertkit, convert, kit
4
  Requires at least: 3.2
5
  Tested up to: 5.2
6
+ Stable tag: 1.2.9.6
7
 
8
  Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
9
 
59
  3. Add your form to your website with a simple mouse-click.
60
 
61
  == Changelog ==
62
+ = 1.2.9.6 ( August 22nd, 2019 ) =
63
+ * Fix for ConvertKit integration
64
+
65
  = 1.2.9.5 ( June 20th, 2019 ) =
66
  * Issue with form input placeholders
67