Changeset 1911220
- Timestamp:
- 07/18/2018 09:29:22 PM (8 years ago)
- Location:
- pinpointe-form-integration/trunk
- Files:
-
- 3 edited
-
includes/pinpointe-service.class.php (modified) (2 diffs)
-
pinpointe-signup-form.php (modified) (7 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pinpointe-form-integration/trunk/includes/pinpointe-service.class.php
r1558838 r1911220 298 298 */ 299 299 public function lists_subscribe($id, $email, $merge_vars = array(), $email_type = 'html', 300 $add_to_autoresponders = false, $update_existing = false, $tagid ) {300 $add_to_autoresponders = false, $update_existing = false, $tagid, $send_confirmation) { 301 301 if(!is_string($email)) { 302 302 $email = $email['email']; … … 310 310 'tag' => $tagid 311 311 ); 312 313 if ($send_confirmation) { 314 $data['confirmed'] = 'no'; 315 $data['send_confirmation'] = 'true'; 316 } 312 317 313 318 if($add_to_autoresponders) { -
pinpointe-form-integration/trunk/pinpointe-signup-form.php
r1558854 r1911220 5 5 * Plugin URI: https://help.pinpointe.com/support/solutions/articles/5000664320-wordpress-plugin-download 6 6 * Description: Add Pinpointe forms to your WordPress site 7 * Version: 1. 2.07 * Version: 1.3.0 8 8 * Author: Pinpointe 9 9 * Author URI: http://www.pinpointe.com/ 10 10 * Requires at least: 3.5 11 * Tested up to: 4. 711 * Tested up to: 4.9 12 12 * 13 13 * Text Domain: pinpointe … … 569 569 'form_condition_value_post_categories' => __('<p>List of post categories to check current post against.</p>', 'pinpointe'), 570 570 'form_condition_value_url' => __('<p>URL fragment to search in the URL of the page.</p>', 'pinpointe'), 571 'pinpointe_forms_send_confirmation' => __('<p>Whether or not to send a confirmation email to subscribers when they submit a subscription form. If selected, subscriptions will be recorded, but subscribers will be marked as Unconfirmed until they receive and choose to confirm their subscription via email.</p>', 'pinpointe'), 571 572 ); 572 573 … … 924 925 <td><input type="text" id="pinpointe_forms_redirect_url_<?php echo $form_key; ?>" name="pinpointe_options[forms][<?php echo $form_key; ?>][redirect_url]" value="<?php echo $form['redirect_url']; ?>" class="pinpointe-field pinpointe_forms_redirect_url"></td> 925 926 </tr> 927 <tr valign="top"> 928 <th scope="row"><?php _e('Send confirmation email', 'pinpointe'); ?></th> 929 <td> 930 <?php 931 echo '<input type="checkbox" id="pinpointe_forms_send_confirmation_' . $form_key . '" name="pinpointe_options[forms][' . $form_key . '][send_confirmation]" class="pinpointe-field pinpointe_forms_send_confirmation" ' . ($form['send_confirmation'] ? "checked" : '') . '>'; 932 ?> 933 </td> 934 </tr> 926 935 </tbody></table> 927 936 … … 1260 1269 $new_forms[$form_number]['redirect_url'] = (isset($form['redirect_url']) && !empty($form['redirect_url'])) ? $form['redirect_url']: ''; 1261 1270 1271 // Send Confirmation 1272 $new_forms[$form_number]['send_confirmation'] = (isset($form['send_confirmation']) && !empty($form['send_confirmation'])) ? $form['send_confirmation']: ''; 1273 1262 1274 // List 1263 1275 $new_forms[$form_number]['list'] = (isset($form['list_field']) && !empty($form['list_field'])) ? $form['list_field']: ''; … … 2646 2658 * @return mixed 2647 2659 */ 2648 public function subscribe($list_id, $email, $groups, $custom_fields, $is_backend = false, $tag_id = 0 )2660 public function subscribe($list_id, $email, $groups, $custom_fields, $is_backend = false, $tag_id = 0, $send_confirmation = false) 2649 2661 { 2650 2662 // Load Pinpointe … … 2701 2713 'html', 2702 2714 $this->opt['pinpointe_add_to_autoresponders'], 2703 false, 2704 $tag_id 2715 $this->opt['pinpointe_update_existing'], 2716 $tag_id, 2717 $send_confirmation 2705 2718 ); 2706 2719 … … 3037 3050 3038 3051 // Subscribe user 3039 $subscribe_result = $this->subscribe($form['list'], $email, $subscribe_groups, $custom_fields, false, $form['tag'] );3052 $subscribe_result = $this->subscribe($form['list'], $email, $subscribe_groups, $custom_fields, false, $form['tag'], $form['send_confirmation']); 3040 3053 3041 3054 if (is_bool($subscribe_result)) { -
pinpointe-form-integration/trunk/readme.txt
r1558849 r1911220 3 3 Tags: email marketing, forms, popups, opt-in, mailing list, subscription 4 4 Requires at least: 3.5 5 Tested up to: 4. 76 Stable tag: 1. 2.05 Tested up to: 4.9 6 Stable tag: 1.3.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 11 11 12 12 == Description == 13 Pinpointe is a feature-rich, cloud-based email marketing software solution for B2B companies. Pinpointe ’s award-winning system brings “big-business” features, services and automation capabilities to small and mid-size B2B email marketing customers at an affordable price. For large volume customers sending from 1 million to 20 million emails / month and beyond, Pinpointe’s Enterprise Edition provides scalable dedicated infrastructure.13 Pinpointe is a feature-rich, cloud-based email marketing software solution for B2B companies. Pinpointe's award-winning system brings "big-business" features, services and automation capabilities to small and mid-size B2B email marketing customers at an affordable price. For large volume customers sending from 1 million to 20 million emails / month and beyond, Pinpointe's Enterprise Edition provides scalable dedicated infrastructure. 14 14 15 15 The Pinpointe Form Integration plugin for WordPress lets you easily add dynamic forms to your site or blog. Advanced features include: … … 43 43 44 44 == Changelog == 45 1.3 46 * Added option to send a confirmation request email to the subscriber upon form submission 47 * Fixed a bug where 'Update existing subscribers' didn't update them 48 * Being generally more awesome (and tested with WordPress v4.9.7) 49 45 50 1.2 46 51 * Tag lists can now be added to a form so when someone subscribes, they are added to that List in your Pinpointe account
Note: See TracChangeset
for help on using the changeset viewer.