mkscripts
Forum Replies Created
-
Hi,
The message “Please make sure all fields are filled in correctly” also appears if no download file has been selected. Select a download file and save your download form again to solve this.
Images are not yet supported when selecting a download file. We are going to look at this in one of the following updates.
It is possible that CSS of your theme or other plugins will affect the layout of the download button. If you want us to look at this, please send the URL of your download form page.
Kind regards,
Team Download After EmailHi,
Nice that our suggestion on the support forum solved your caching issue!
Thank you for letting us know.
Kind regards,
Team Download After EmailForum: Plugins
In reply to: [LiteSpeed Cache] Plugin stops working until Litespeed Cache is purgedHi,
The nonce name you have to add to the ESI nonce list is:
dae_*(instead of mckp_*)
Hope this helps.
Kind regards,
Team Download After EmailHi,
You can find the name of the nonce by searching (via a text/code editor) for the function ‘wp_create_nonce’ in the plugin files. In this case, the name of the nonce is ‘dae_download’.
Forum: Plugins
In reply to: [Download After Email - Subscribe & Download Form Plugin] “Auditing” checkboxHi,
Good to hear, thanks. 🙂
When you have activated the second (optional) checkbox, a column will appear in the subscribers table called “Opt-in Time”. This will record the date of the first time this checkbox was checked when submitting a download form. If this column is not visible, you probably need to update to the latest version first.
You could also use the (admin) notification email to gain insight into the submitted values of the download form including the optional checkbox (Admin Menu -> Downloads -> Messages).
If you have any more questions, feel free to ask.
Kind regards,
Team Download After EmailYou’re welcome! No this isn’t a bug. Nonce issues are common when using caching plugins.
We also found a no-code solution. Enable ESI and add the nonce name to the ESI nonce list. You can find more information here:
https://blog.litespeedtech.com/2020/07/08/cache-wordpress-nonces/Hope this helps 🙂
For more specific questions, you can go to the support section of your caching plugin.
Kind regards,
Team Download After EmailIf you are using LiteSpeed Cache, please read the following topic:
https://ww.wp.xz.cn/support/topic/download-wheel-plugin-not-working-until-wp-cache-purged/
Hi,
Download After Email uses AJAX requests like many other plugins. Before an AJAX request is executed, a nonce (semi-random security string) is checked. If these nonces are cached (long enough) they can expire, causing AJAX requests to return a 403 forbidden error (resulting in an endless spinning circle in your download forms).
It is recommended to read the documentation of your caching plugin on how to deal with nonces, in your case:
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:apiIn short you have to call this function somewhere before the ‘wp_enqueue_scripts’ hook:
LiteSpeed_Cache_API::nonce_action( 'dae_download' );Kind regards,
Team Download After EmailHi,
Please read the following topic first (solution included):
https://ww.wp.xz.cn/support/topic/loading-wheel/
If you have any more questions, feel free to ask.
Kind regards,
Team Download After EmailHi Noman,
Thanks, that’s nice to hear!
The first step would be to find out what this error means by using the WordPress debug mode. Here you can find an article about debugging in WordPress:
https://ww.wp.xz.cn/support/article/debugging-in-wordpress/
If you have any more questions, feel free to ask.
Kind regards,
Team Download After EmailForum: Plugins
In reply to: [Download After Email - Subscribe & Download Form Plugin] attached fileSince version 2.0.5 it’s possible to use a filter to add attachments to the email that is sent to the subscriber/user. Below an example to illustrate the use of this filter.
add_filter( 'dae_email_attachments', 'my_dae_email_attachments' ); function my_dae_email_attachments() { // Fill in your attachment ID's $attachment_ids = array( 8, 18 ); foreach ( $attachment_ids as $attachment_id ) { if ( $filepath = get_attached_file( $attachment_id ) ) { $filepaths[] = $filepath; } } if ( empty( $filepaths ) ) { return array(); } return $filepaths; }To display a download form on a post/page:
After saving a download form you can place the download form on a page or post by using (copy and paste) the generated shortcode. You can use the Gutenberg shortcode block for this. If you use the Classic Editor, you can paste the shortcode anywhere you want in the editor.
Hi,
To make a message translatable, you must leave the input fields blank on the messages settings page and save the settings. Now translatable strings are used instead of your entered values.
If you have any more questions, feel free to ask.
Kind regards,
Team Download After EmailHi,
You can find these settings in Admin Menu -> Downloads-> New/Edit Download.
Kind regards
Team Download After EmailHi,
A filter is available to change the email content and make it dependent on the download file:
$message = apply_filters( 'dae_email_message', $message, $values, $messages['email_content'], $file, $download_url );If you need help using this filter, please let us know. We are glad to help you.
Kind regards,
Team Download After Email