You can create custom link/page templates using our Pro version. So, replacing the [download_link] tag in any template with the following code will open the link in a new tab,
<a class="btn btn-primary" href="[download_url]" target="_blank">[link_label]</a>
See https://www.vphuisartsen.nl/downloads/
Do not know why this happened. Probably after updating the package or updating my website theme?
Hi,
The category page is controlled by a template from your theme. Download Manager can partially modify the page using some hooks.
To add the toolbar we need a custom category archive template for Download Manager. You can copy the current archive template of your theme and rename it to taxonomy-wpdmcategory.php. Then add the toolbar feature in this template. This new template gives you total control over the pacakge category archive page.
If you need help with this please send temporary wp-admin and FTP login info in private reply. Or just send me the category archive template file so I can use it to create the new template. Send a category archive page link to if you are sending the file.
Thanks.
This reply has been marked as private.
Upon creating a new link template, i am seeing the following message.
“Warning: Illegal string offset ‘content’ in /home/doctempl/public_html/wp-content/plugins/download-manager/admin/tpls/template-editor.php on line 66”
I see that with the category page options that I can select a link template from this URL/tab:
/wp-admin/edit.php?post_type=wpdmpro&page=settings&tab=frontend
What actions do I need to take/explore if I want to have the toolbar appear on any of these templates I’m choosing so it will display and function by default when a category page is displayed?



Thanks for any suggestions.
Chuck Wyatt
Manager of Web Technical Services
Clark University
Hi – we have Single File Download enabled and set for each package and we don’t have any locks. Since upgrading to 4.9.8, we no longer see a way to download individual files from the file list. Any idea what might be going on?
Thanks
I recently installed reCaptcha V3 as a way to prevent the inundation of spam mail. (I am a novice when it comes to webpages, and am now just figuring this out). It has been working great for the spam. But now it appears (I am guessing) to be blocking all links for my clients to download their plans. Before I implemented reCaptcha, I had each download link password protected, and it worked perfectly. Now if my client or myself tries to click on a link, nothing happens. I don’t know if the password pop-up is being blocked somehow, or if the link is “dead” due to the reCaptcha, or if something else is going on. ReCaptcha is the only thing that I can think of that was a major enough change to cause this.
I have gone through the blog on DownloadManager on how to implement reCaptcha, but that doesn’t appear to be solving any issue. I have tried implementing reCaptcha within the file settings, I have tried unchecking that box, and nothing seems to fix it. I hate to lose reCaptcha so that my clients can access their plans, as I really don’t want the uptick in spam again. But I have to imagine there is a setting somewhere that I have to change and everything will go back to the way it was.
Any insight would be much appreciated.
Jason
<div class=”panel panel-default”>
<div class=”panel-heading”><b>Document to Download</b></div>
<div class=”panel-body”>
[file_list] [link_label]
</div>
This is the code in my page template:
<div class=”panel panel-default”>
<div class=”panel-heading”><b>Document to Download</b></div>
<div class=”panel-body”>
[file_list] [link_label]
</div>
Hi,
I had the same issue, ‘single-file download’ fixes the problem, however, I want the download file to open in a new page once clicking the download link. At the moment it opens it in the same window, thus taking me away from the website.
Any suggestions?
Hi there, wonder if you can please point me in the direction to solve a problem with the ‘Expire After’ feature of emailing a link?
It doesn’t matter how many minutes the link is increased by, unless the download link in the email is used within the hour, an ERROR! -Invalid download link – is shown (whilst as logged in user). This happens regardless of whether ‘Regenerate Master Key’ is used.
Looking at class.Apply.php I can see it may be an issue with the key…?:
//Regular download processing
if (!isset($wp_query->query_vars[‘wpdmdl’]) && !isset($_GET[‘wpdmdl’])) return;
$id = isset($_GET[‘wpdmdl’]) ? (int)$_GET[‘wpdmdl’] : (int)$wp_query->query_vars[‘wpdmdl’];
if ($id <= 0) return;
$key = wpdm_query_var(‘_wpdmkey’);
$key = $key == ” && array_key_exists(‘_wpdmkey’, $wp_query->query_vars) ? $wp_query->query_vars[‘_wpdmkey’] : $key;
$key = preg_replace(“/[^_a-z|A-Z|0-9]/i”, “”, $key);
if($key) {
$keyValid = is_wpdmkey_valid($id, $key, true);
if ((int)$keyValid !== 1) {
\WPDM_Messages::error(__(“— Invalid download link —”, “download-manager”), 1);
}
Look forward to your advice – thank you.
This reply has been marked as private.
Hosting: Godaddy Hosted WordPress.
We bought the pro version of the plug-in and the Advanced Access Control add on. Everything seems to work except the member never receive any email notification when a package is assigned to a member. Besides when pressing the Email Download Link option, the form doesn’t seem to do anything.
Please advise.
Elias
Looks like the download issue is related to the access settings. At first, no role was selected in package settings, so download didn’t work as expected. Because no one has access to the package.
Later you updated the access settings to allow the User and Administrator role to have download access. But you tried to download the file without logging in. But package settings require User and Administrator role.
If you want the link work always then select Anyone in package settings.
About the next/previous links, those are coming from your theme. Download Manager uses your active theme’s single.php template to show the package. It can control the content part but the rest is controlled by the theme. So, you have the edit the single.php to remove those links.
You can copy the single.php and rename it single-wpdmpro.php If this template exists inside your theme this will get priority over single.php The benefit of using single-wpdmpro.php is, it will only be used by WPDM, so you can design it as you want without affecting any other parts of your site.
download button shows up on the package, and files in the package are displayed, but NO download buttons on individual files. I have used templates with the [file_list] in the code and still no download links on individual files. What am i doing wrong?
We will add the following patch in next version to fix this issue. Replace
$vars['free_download_btn'] = self::free_download_button($vars['ID'], $vars['link_label']);
with
$vars['free_download_btn'] = self::free_download_button($vars['ID'], apply_filters("free_files_link_label", __( "Download free sample" , "wpdm-premium-packages" )));
in wpdm-premium-packages.php file on line 1114.
And then you can utilize the free_files_link_label filter to modify the label as shown in the following example.
function wpdm_free_files_link_label(){
return 'Download Free Files';
}
add_filter('free_files_link_label', 'wpdm_free_files_link_label');
I have created a custom template tag [file_list_play_only] to show only play button.
Copy the code from here https://www.dropbox.com/s/5hk4xca0x80lcmi/file_list_play_only.php?dl=0 and add it to your theme’s functions.php file.
And then use the [file_list_play_only] tag on your custom link/page template.
Btw, remove the previous code to allow the download button in normal file list tag.
https://drive.google.com/file/d/1FAu4NUHL7EXUnagegLkWXDk_WqkMixrq/view
In the above link, I showing a video of Download Manager Advanced Access Control add-on issue. In this video, I used to a restriction that if user not allowed to download a particular package then hide the package for that user.
And In this video, I assigned 12 packages(name of packages like form-1 to form-12) to Sales forms & Pricing category. out of 12 packages(of Sales forms & Pricing category), 7 packages hide for a user(akshat.ambore) and only 5 packages are allowed to download for a user(akshat.ambore).
And I am using pagination shortcode of download manager and assigned 5 package’s per page but out of 5 packages(that are assigned to download a user) 3 package’s shows on the first page, 1 package on the second page and 1 package on the third page.
https://drive.google.com/file/d/1FAu4NUHL7EXUnagegLkWXDk_WqkMixrq/view
In the above link, I showing a video of Download Manager Advanced Access Control add-on issue. In this video, I used to a restriction that if user not allowed to download a particular package then hide the package for that user.
And In this video, I assigned 12 packages(name of packages like form-1 to form-12) to Sales forms & Pricing category. out of 12 packages(of Sales forms & Pricing category), 7 packages hide for a user(akshat.ambore) and only 5 packages are allowed to download for a user(akshat.ambore).
And I am using pagination shortcode of download manager and assigned 5 package’s per page but out of 5 packages(that are assigned to download a user) 3 package’s shows on the first page, 1 package on the second page and 1 package on the third page.
My code look like this:
[wpdm_all_packages items_per_page="20" order_by="publish_date" order="DESC" jstable=1 cols="title,package_size|download_count|publish_date|download_link" colheads="Dokument|Broj preuzetih dokumenata|Datum|Preuzeti"]
my date is all messed up. I try to add DD/MM/YYYY and %d-%m-%Y in order attribute and has changed but not like it should be.