mkscripts
Forum Replies Created
-
Thanks for the debug info. Only the last error is related to our plugin. This error indicates that the file (image) in the email content is not accessible or not present. You could view the image src attribute (URL) when you select text mode in the text editor (instead of visual mode) (Admin Menu > Downloads > Messages) and make sure this URL is accessible.
Kind regards,
Team Download After EmailForum: Plugins
In reply to: [Download After Email - Subscribe & Download Form Plugin] Broken FilesThis issue may be related to white-spaces. Some plugins or changes that you make to WordPress can cause extra spaces and/or line feeds (return characters) to be added to the output of every WordPress page. This is usually not a problem, since they are invisible.
However, this is a problem when data other than text is being sent – e.g. when you are downloading a file. These extra characters can change and corrupt the file. You could disable other plugins to see if that fixes your problem. If not, try to change your theme temporarily.Kind regards,
Team Download After EmailHi,
After submitting a download form on your site, a 5** error occurs (in the browser console). You can find out the exact error by enabling WordPress Debug Mode and write this error to the /wp-content/debug.log file:
https://ww.wp.xz.cn/support/article/debugging-in-wordpress/
In case it’s necessary to assist you further, please let us know what this error is.
Kind regards,
Team Download After EmailHi Paul,
This issue is probably caused by a disabled PHP extension, as you can read here:
https://ww.wp.xz.cn/support/topic/unable-to-download-the-file-through-the-link/
Please let us know if it worked and if you have any more questions, feel free to ask.
Kind regards,
Team Download After EmailAnd if you delete all cache (including browser, hosting server, caching plugin) ?
Hi,
After clicking your download link, the following message is displayed: This link has already been used and is now unavailable. This message is displayed by our plugin, so everything seems to work fine so far. If you want download links to be used more than once, you can use the “Unlimited Links” option (Admin Menu > Downloads > Options).
If you have any more questions, feel free to ask.
Kind regards,
Team Download After EmailHi,
This issue is usually related to (the settings of) your caching plugin. Please see the following link:
https://ww.wp.xz.cn/support/topic/download-button-stopped-working/
If you have any more questions, feel free to ask.
Kind regards,
Team Download After EmailHi Mark,
Not all HTML code is possible, because some HTML tags are stripped (sanitized) during the saving of the email content. There is a filter available to change / create the complete HTML content of the email.
In the coming update we will improve the default HTML code of the email and make sure that a plain text version is added automatically. Thank you for letting us know.
If you have any more questions, feel free to ask.
Kind regards,
Team Download After EmailHi,
You can find more information on this topic here:
https://ww.wp.xz.cn/support/topic/how-to-add-a-first-name-last-name-fields/
Kind regards,
Team Download After EmailYou could use the following code to strip the part /?lang=xx from the download URLs:
add_filter( 'wp_mail', 'my_custom_dae_download_link', 999 ); function my_custom_dae_download_link( $args ) { if ( preg_match( '~([/][?]lang[=]\w+)[/][?]file~', $args['message'], $matches ) ) { $args['message'] = str_replace( $matches[1], '', $args['message'] ); } return $args; }Although we have already tested it, it is advisable to test the code first. You can use it in your theme’s functions.php or in a custom plugin.
Kind regards,
Team Download After EmailHi,
WPML is changing the download links created by our plugin. This happens just before the email with the download link is sent. You could see if there is an option in the translation plugin to leave (download) links in emails unchanged. Or you could ask the translation plugin’s support team.
If no solution is available, you could undo this modification on the ‘wp_mail’ hook (coding):
https://developer.ww.wp.xz.cn/reference/hooks/wp_mail/
If you need any help with this, please contact us via our website. We are glad to help you.
Kind regards,
Team Download After EmailHi,
Below an example of the use of the above-mentioned filter:
add_filter( 'dae_email_message', 'my_custom_dae_download_link', 10, 5 ); function my_custom_dae_download_link( $message, $values, $email_content, $file, $download_url ) { // Your custom download link $download_link = '<a href="' . $download_url . '">' . $file . '</a>'; // Replace the placeholder {download_link} with the $download_link $message = str_replace( '{download_link}', $download_link, $message ); return $message; }(This is an example, please test it before using it on a live site.)
Changing the source code is not recommended, because after a plugin update these changes can be lost. That is why actions and filters are used to make changes or to add custom code. Here you can find more information about adding filters:
https://developer.ww.wp.xz.cn/reference/functions/add_filter/
You can add this code to the functions.php of your child theme or via a custom plugin.
Kind regards,
Team Download After EmailHi,
You can create .po files from the file: /wp-content/plugins/download-after-email/languages/download-after-email.pot. One for each language. You could use Poedit for this. In the start screen you can select “Create new translation (from .pot)”. You will be asked to fill in the language code, for example en_EN. From the created .po file you need to create the compiled .mo file. Make sure the name is given like download-after-email-en_EN.mo. Place the .mo files in the folder /wp-content/languages/plugins. If this folder does not exist, you can create it manually. So the full path of the .mo file would be /wp-content/languages/plugins/download-after-email-en_EN.mo. Now the translated strings, available in this .mo file, will be used (unless fields were not left blank when saving the message settings page).
Kind regards,
Team Download After EmailHi,
You’re welcome. This could be a local problem. You could update Safari to the latest version, turn off extensions, delete all cache, change/reset settings, etc. and see if that makes a difference.
Kind regards,
Team Download After EmailHi,
After saving the empty fields, these messages (options) are empty in the database. After saving or when you reload the messages settings page, default values are displayed, but these default values have no effect on the database until you save them. After saving the empty fields, the translatable strings become active. So it may seem like it is not registering, but it actually works correctly 🙂
If you have any more questions, feel free to ask.
Kind regards,
Team Download After Email