I previously posted here about generic errors which prevented form submission when using multiple form/lists throughout a site.
I’ve created a patch. These edits are all to the mailigen-widget.php file:
around line 104 remove this line:
$errors = $this->validate($fields);
and add this line below the $listId declaration at about line 114:
$errors = $this->validate($fields, $listId);
Next around line 157 change the validate function declaration to:
function validate($fields = array(), $selected_list = '') {
Finally change this around line 160:
$allFieldsParams = $this->getOption('mg_fields');
to this:
if( isset( $selected_list ) ) {
$allFieldsParams = $this->getOption('mg_fields_'.$selected_list);
}else{
$allFieldsParams = $this->getOption('mg_fields');
}
This will effectively validate the fields that relate to the specific OptIn vs the generic list OptIn.
Hope this helps.
]]>We dont use widgets, so how to use this with PHP or shortcode?
]]>I’m getting the following error when trying to use ver 1.30 with WordPress 4.7.2.
Notice: The called constructor method for WP_Widget in Mailigen_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/foobar/public_html/wp-includes/functions.php on line 3891
Warning: Cannot modify header information – headers already sent by (output started at /home/foobar/public_html/wp-includes/functions.php:3891) in /home/foobar/public_html/wp-includes/pluggable.php on line 1179
]]>The validation fix that was added in the last version doesn’t work correctly when loading different signup forms. They end up trying to validate against the default form.
I commented out this line and it now works on 161 in file mailigen-widget.php
foreach ($allFieldsParams as $tag => $tagParams) {
$isRequiredFieldMissingInPost = $tagParams['2'] && !isset($fields[$tag]);
if ($isRequiredFieldMissingInPost) {
$fields[$tag] = '';
}
}
]]>
Hi, I installed this plugin but now find that some of my dashboard styling is messed up – on the Widgets page. It returns to normal if I disable the plugin. I don’t see a way to attach a screenshot unfortunately, so I will try to describe the issue. In the ‘Available Widgets’ and ‘Sidebar’ sections, the padding is lost on the boxes and the description appears as part of the box. There is a line across the bottom of each widget box, with a gap below. Anyone else seen this or is there a fix please? Thank you
]]>The plugin looks nice and works well, but it’s standard for the name to come before the email on an opt-in form. I hope you can make this update in a future release. Do you see that as a possibility? Thanks.
]]>Hi,
I installed the plugin and set it up as described. The form is appearing on my site. However whenever anybody subscribe, no confirmation mail goes to them, they are just added as inactive contact.
Any idea how to solve this?
Thanks
]]>It would be nice if in the settings or on the widget options to have the ability to turn off double opt-in, update existing subscriber, and send welcome email instead of hacking the code.
]]>We’ve added a checkbox field in Mailigen to our subscriber list with two values the user can select. Depending on what the user selects determines what segment they are apart of.
I then installed this plugin for our WordPress site and load our specific list with the additional field. However the added checkbox field shows as a blank text field. Can we get the checkbox field option to work?
]]>