mkscripts
Forum Replies Created
-
Hi there,
Thank you for your compliment, we really appreciate it! 🙂
Yes, if you are using the plus version you could use a filter in your code to make form fields optional. As this is a question related to the plus version, we can’t cover it here. You can go to the premium support section within your account on our website and refer to this topic. We are glad to help you!
Kind regards,
Team Download After EmailHi,
This topic is covered in our FAQ here: https://ww.wp.xz.cn/plugins/download-after-email/#why%20are%20emails%20not%20being%20sent%20or%20received%3F
If you have any more questions, feel free to ask. We are glad to help you.
Kind regards,
Team Download After EmailHi,
Great to hear that you are getting along well with our plugin!
The focus issue seems chrome related. When you search for “chrome focus download dialog box” you will come across similar results. What you could try is resetting your browser settings, disabling all browser extensions and updating Chrome to the latest version.
Kind regards,
Team Download After EmailTo add a new subscriber:
$subscriber_id = DAE_Subscriber::insert( array(
'email' => '[email protected]'
) );A new subscriber always comes with a new download link. To create a download link:
$file = 'test.pdf';
$form_content = ''; // This is normally a copy of the HTML download form content (GDPR)
$link_id = DAE_Subscriber::insert_link( $subscriber_id, $form_content, $file );The $link_id can be used to generate a nonce which is needed to create the actual download link. You can find this code in ../includes/shortcodes.php.
Kind regards,
Team Download After EmailThank you for your suggestion! We’ll put it on our future features list. We can’t say for sure yet whether it will be made available for the free version or the premium version.
If you have any specific wishes or more details about how you would like to use it, we would love to hear from you.
Kind regards,
Team Download After EmailHi,
We noticed (from the HTML source code of your website) that you are not using our plugin or that our plugin is not activated. If you want to use our plugin, make sure it has been installed and activated correctly. If you are using a different plugin, you may need to contact their support team for further assistance.
Kind regards,
Team Download After EmailHi Florian,
You are welcome!
Yes it is possible to invoke the shortcode with your own custom attributes. It is advisable to prefix your attribute so that the name does not conflict with existing or future attributes of the plugin. Currently only “id” and “css” are in use.
You could use your custom attribute, for example, to add a hidden field to the download form and use its value after the submission of the download form. In the code example below let’s say we have the following shortcode:
[download_after_email id=”123456″ cst_email=”[email protected]”]
add_filter( 'dae_shortcode_html_fields', 'cst_add_hidden_download_form_field', 20, 3 );
function cst_add_hidden_download_form_field( $html_fields, $file_name, $atts ) {
if ( empty( $atts['cst_email'] ) ) {
return $html_fields;
}
$html_fields .= '<input type="hidden" name="cst_email" value="' . esc_attr( $atts['cst_email'] ) . '" />';
return $html_fields;
}
add_action( 'dae_after_send_downloadlink', 'cst_action_hidden_download_form_field' );
function cst_action_hidden_download_form_field( $subscriber_id ) {
if ( empty( $_POST['cst_email'] ) ) {
return;
}
$cst_email = $_POST['cst_email'];
}Kind regards,
Team Download After EmailHi,
It is possible to add your own validation rules to your download forms by using the filter ‘dae_form_validation’. Here you can perform custom checks, for example whether the email address appears in a custom list or whether it has an account on your site. Depending on the outcome, you can run your own specific code and cancel or continue the submit process. The submit message at the bottom of the download form can also be adjusted via a filter.
apply_filters( 'dae_form_validation', false, $values );apply_filters( 'dae_form_validation_message', __( 'Please make sure all fields are filled in correctly.', 'download-after-email' ) );These filters are located in ../includes/shortcodes.php and available within the free version, you don’t need a premium extension for this.
Kind regards,
Team Download After EmailHi Maaike,
We tested one of your download forms. We couldn’t find any issues and we were able to download the file successfully. Has the problem already been solved?
Kind regards,
Team Download After Email@mayankp We noticed that you’re issue has been resolved via the support section within your DAE account.
This error has been resolved since version 1.3.6 (premium version). Therefore this thread will be closed now. Feel free to open a new topic at any time.
Kind regards,
Team Download After EmailThis thread was created just before it was addressed via email. Therefore, this thread will be closed. If an error occurs again, feel free to start a new thread.
Kind regards,
Team Download After EmailHi,
To deactivate the CSS coming from download.css, you can use the following PHP code:
add_action( 'wp_enqueue_scripts', 'mydae_deregister_styles', 100 );
function mydae_deregister_styles() {
wp_dequeue_style( 'dae-download' );
}To deactivate the styling options from your New/Edit Download page (Admin Menu > Downloads > New/Edit Download), you can use the “css” attribute for your shortcodes. For example: [download_after_email id=”123″ css=”off”]
Kind regards,
Team Download After EmailYou have been contacted via our premium support section of our website and this issue has been resolved. For anyone with the same issue, we recommend contacting us via the support section within your Download After Email account (as this relates to the premium version).
Kind regards,
Team Download After EmailHi,
We have looked at the JS error you mentioned. This error does not come from our plugin.
If you have any other questions, feel free to start a new topic.
Kind regards,
Team Download After EmailHi,
This option will be added in the future. For now, there is a somewhat cumbersome way to make this possible. If you contact us via our website, we will be happy to help you implement this functionality.
Kind regards,
Team Download After Email