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
?
[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.
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 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.
[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,
[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
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.
Hello @solarmatic,
I am sorry the issue is not clear to me. Could you please elaborate the issue?
However, you can preselect category to specific user roles. To add both tag and category based packages, You can check the shortcode below:
[wpdm_packages] – WP_Query in a shortcode for download manager packages
To add packages based on tags, you can use the below shortcode:
[wpdm_tag] – Query all downloads from specified tag(s)
Let me know your thoughts.
Thanks
I have WPForms installed on my website. But I don’t see all my WP Forms under the Form Lock option. I see only 5 forms in the drop down. How can I access the other forms that are linked with downloads?
This reply has been marked as private.
This reply has been marked as private.