My problem is not yet solved 😉
Not quite. Opening in the browser works as in the old website, but not everything runs smoothly elsewhere.
In wpdm-start-download.php, something crucial has changed compared to the old version: Line 43 $fileCount = count($files) has been supplemented with the comparison of whether a package_dir is also available.
Of course, simply changing this does not work. How can I change it for my specific case so that I have the latest version of the Download Manager and the files are still opened in the browser?
I have just renamed the current download-manager folder under plugins and added the old folder.
This means that the individual files, which have always been in folders, open perfectly in the browser with the [download_link_dynamic] in functions.php.
This works for the individual download buttons as well as in the download archive with all available downloads.
As soon as I rename the old download-manager folder again and activate the new one, it no longer works and the files are zipped and downloaded.
Again for reference, the old version was Download Manager Special Pack and the new Download Manager Pro v5.3.
What has changed so much between these two versions?
As I said earlier, this was still possible with the old version. So what has changed and how can we set this up again?
No, I had tried that before I asked here.
Is there any way to get an answer, even without access data? 😉
Basically I just want to know if there is still a way to download a single file in a folder without it being zipped.
Sorry, but this is not possible as it is hosted locally.
We’re approaching the solution. Many thanks for that. wpdm-all-downloads.php works so far. Only I don’t want a popup for the password input, but the solution like download_link_extended. Is that possible?
In the same way I would like to achieve the following with link-template-default.php:
If password protected show [download_link_extended] otherwise show “[link_label]“.
Can you rebuild this for me? I am not good at php. 🙂
That’s also correct. But it’s about the pdf, which are not password protected. These open in the same tab, but I want these files to open in a new tab as well. However this is not possible with your procedure for password-protected files.
I can’t provide you with an admin, because the project is currently only stored locally.
Hi,
in this Thread: https://www.wpdownloadmanager.com/support/topic/open-pdfs-in-new-browser-tab/ I have already asked, because it doesn’t work for me. All my pdf should open in a new tab. This also worked until I added password protection to some pdfs. How do I make sure that the password is requested first and then the pdf opens in the new tab? It doesn’t matter if it’s wpdm_all_packages or link-template-default.php. Do you know what I mean?
When using the main download button:
To open file in new tab replace [download_link] with [link_label] in your custom page/link template.
However, this only works for me until I use a password protection. Then a new window will open but there will be no popup for entering the password.
I use for single file downloads link-template-default.php and for [wpdm_all_packages….] wpdm-all-downloads.php. What do I have to change to make it work?
Sorry, my mistake. It’s because I changed a link template and wpdm-all-download so that the Divi theme opens the file in a new tab and not in the same one. Now I just have to figure out how it’s basically possible except for password-protected files.
I figured it out.:-)
Hi,
how is the correct for echo $download_link ? $download_link : '—';
?