Forum Replies Created
I think I found the solution. I updated line 103 in my /download-manager/libs/class.FileSystem.php file to say,
if ( ( get_option(‘__wpdm_open_in_browser’, 0) || wpdm_query_var(‘open’) == 1 ) && ( array_pop( explode(‘.’,$filename ) ) != ‘ies’ ) )
Thank you for all your help!!
Thank you Nayeem –
I checked the link and files that end in “.IES” still launch in a new tab.
http://159.65.218.98/resources/
If you scroll down to the table, buttons that say IES should be direct downloads.
Your teams helped me achieve this functionality in this page:
Please let me know how I can help.
Hello!
I am the original poster to this issue. I have since updated to the new Download Manager and lost the customization to the plugin code. When I tried to repeat the steps illustrated above, it looks like the code has changed, e.g. the code to be replaced is no longer at line no. 97.
Can I please ask for your assistance again in have files that end in .IES force a direct download vs. opening in a new browser window.
Thank you in advance!
Thank you so much!! This worked out wonderfully =)
Thank you for the help! This worked out great.
Thank you for the response!
RE: When using the main download button.
I applied this code to the custom link template and it works great. Is there a way to still have the styled “DOWNLOAD” button with this code, versus just using the words “Download”?
Thank you in advance!