This reply has been marked as private.
When vieweing the ‘ALL ITEMS’ page in the front end. In that table we get 3 actions, edit, view and delete.
When clicking on view, it opens the download page. How can we change that so it downloads the file directly?
Hi Trisquelmedia SL,
For total downloads of the sum of all packages, you can use this the below code,
<?php _e( "Total Downloads" , "download-manager" ); ?>
<?php echo $wpdb->get_var("select sum(meta_value) from {$wpdb->prefix}postmeta where meta_key='__wpdm_download_count'"); ?>
And for a certain user, please use this code snippet in your theme functions.php
add_shortcode('UserTotal', 'TotalUserDownload');
function TotalUserDownload() {
global $wpdb, $current_user;
$var = "Total Downloads: ";
$var .= number_format($wpdb->get_var("select count(*) from {$wpdb->prefix}ahm_download_stats where uid = '{$current_user->ID}'"),0,'.',',');
return $var;
}
Use the shortcode [UserTotal]
I hope it will work fine for you now
Thank you and regards
Thxs Nayeem!
Anywhere to modify that code to show the total downloads (summatory all packages individual created downloads)
Hi @eammendola,
WE have tried to login your website in order to debug the issue but it’s showing like this instead.
However, have you tried with items_per_page?
https://www.wpdownloadmanager.com/doc/short-codes/wpdm_category-query-all-downloads-from-one-or-more-categories/
Let us know about it.
Regards
Hey, you where right! I deleted the Divi Theme Builder Layout for “all downloads” and used the standard page and the PDF Viewer does appear!
I will now check the Default Values Plugin!
Sure:
I have created a shortcode [DownloadCounter] it returns download count of a package (in this case package ID “6730”)
function shortcode_download() {
$download_count = get_package_data(6730,'download_count');
return $download_count;
}
add_shortcode('DownloadCounter', 'shortcode_download');
I dont want to put manually package ID (6730), instead I would like it to (2 different things) :
1) Modify the function to automatically get package ID from the package shown on the current page.
2) Create another function to return the total downloads of the sum of all packages.
Regards
Hello @tcafe,
Hope you are well.
Yes, with the lazy download addon, it is possible to start the download automatically after the waiting time is over.
There is a settings panel in the lazy download settings section like this. If you set the Start Downloads option Automatically then it will start downloading automatically after certain period of time.
Hope this answers your query.
Regards
Never mind, I resolved the issue myself.
As I wrote, I am using https://www.wpdownloadmanager.com/download/wp-filebase-data-importer/
Inspecting this script, it uses the filepath stored in WP Filebase settings. There it was stored as “./alldownloads”. It worked for WP Filebase but when transfered to Download Manager, Download Manager could not understand this (valid) path annotation.
Check screen
I changed it in WP Filebase, reimported the files and now they paths are simple and they work as Download Manager understands them (eg /home/fmgreece/public_html/alldownloads/fm2020/graphics/kits/Greek-Football-League-by-Mysterio.rar).
Thanks anyway
Hello,
The update will be ready within next week I hope.
However, You can use the [file_list_extended] template tag in the related template file which will create a downloadable image gallery and then use the package shortcode on your desired page.
Templates can be found under Downloads>Templates.
You will find template tag details in the below link.
https://www.wpdownloadmanager.com/doc/templates/template-tags/
Thanks.
The File Browser Root setting is correctly set to “/home/fmgreece/public_html/alldownloads/”
I can’t see how this is relevant to the issue though.
I shared a screenshot in the above post, please check it. This is how the files appear after importing them from the WP Filebase import plugin.
The path gets a “/./” in it, which in command line means “the same directory”, but then when you try to download the file as a user, the system fails with “File not found”
Hello, I have imported all files from WP Filebase, using the WP Filebase import plugin.
The thing is that the file paths that are created in the system, cannot be recognized by the system.
Here is a path as is created by the import plugin “/home/fmgreece/public_html//./alldownloads/fm2020/graphics/kits/Greek-Football-League-by-Mysterio.rar”

Check the image here
The path after all is somehow correct, if your run “cd /home/fmgreece/public_html//./alldownloads/fm2020/graphics/kits/” in command line, it translates to /home/fmgreece/public_html/alldownloads/fm2020/graphics/kits/Greek-Football-League-by-Mysterio.rar where the file really is. However Download Manager cannot understand it and when you try to download the file it gives a “Sorry! File not found!” error.
If I manually replace the filepath with “/home/fmgreece/public_html/alldownloads/fm2020/graphics/kits/” by editing the post, then it works. However this needs to be done for 500+ files, which is not productive.
Any ideas?
I have recently bought WP Download Manager Pro but I cannot find how to setup the main page for my downloads.
I have read the docs section here but I am really confused.
Do I have to create this main page by myself using tags? And which tags?
To sum up, I would like to have a page like this automatically created with my existing categories:
https://demo.wpdownloadmanager.com/wpdmpro/
Hello Brian,
I have already found the issue while testing. Actually it is getting the updated free version of wpdm from wordpress free plugin directory. But as it is the pro version, it is showing not found. I think that is not a serious issue.
You can update WPDM from Downloads > Settings > Updates If you can’t update it directry from WordPress dashboard, You can update manually from here.
Thanks
We have the following problem.
Our mp3 downloads,
that we host on Amazon s3, played automatically in Firefox.
Until recently, people were asked if they should be downloaded.
Everything is ok in Chrome – the mp3 is being downloaded.
What do we have to do so that the mp3 in firefox can also be downloaded again or that you are asked whether you want to download?
The Mp3 must not be played.
As mime type on S3 we use application / octet-stream or application / force-download (as an unknown mime type to force the download)
I just downloaded from the site and installed it again. It still has the same bug.
The problem with the file cart addon is that, it allows everyone to download items that only subscribed users should.
Even when not logged into the site, when you go to a package page and click on the file cart button, when you go to file cart page and click on DOWNLOAD, it actually downloads the file for the user, even when that user is not logged in. That is really not secure.
Thats the issue with the addon.
This reply has been marked as private.
Hello,
Greetings for the day!
You can use [wpdm_category] shorcode with paging="1" which will hide pagination.
Shortcode details can be found in the below link.
https://www.wpdownloadmanager.com/doc/short-codes/wpdm_category-query-all-downloads-from-one-or-more-categories/
I hope that helps and answers your query.
Regards
Hello,
Really sorry for the inconvenience. I have checked your issue in detail. With particular categories one shotcode we have,
https://www.wpdownloadmanager.com/doc/short-codes/wpdm_all_packages-list-all-downloads-in-tabular-format-in-a-page/
And the appearance will be looked like this, please also check the shortcode format here
http://www.demo.specmacenter.com/downloads/
please check and let me know
Thank you and regards
Hi,
Since the update to 3.2.19 all my downloads are displaying ‘Your email address is blocked!’ when I’m logged in as an administrator. If I access the site site as a guest/visitor then I can download as usual.
This is the FREE version.
I’ve been through the admin interface and can’t see why this would be. Just a bit worried this might be effecting visitors as well.
Thanks in advance.
Hello Tanvir,
I’ll try to explain it with an example.
I have the following sub-pages on my website:
“Thriller” (Category 1)
“Comedy” (Category 2)
“Romance” (Category 3)
“Musical” (Category 4).
On the respective subpage I would like to offer only the downloads from the respective category.
The user should be able to filter these again using tags (ideally visible using checkboxes).
for example, the tags “no age limit”, “FSK 6”, “FSK 12”, “FSK 16” and “FSK 18” should be given.
If the user selects the checkboxes “FSK 16” and “FSK 18” on the “Thriller” subpage, only these downloads should remain.
Regards
This reply has been marked as private.
This reply has been marked as private.
I have 1924 Downloadable files on my website, I would like to disable them all and I am looking for a membership plugin to stop all users from raping my website of files.
I cannot seem to find a way to disable all downloads until I have sorted this out, or globally change the rights so that only admins can download for the minute, that way only I would be able to download files.
Is there a way to do this?
James