Hi Marc,
I am NOT WPDM Pro Support
Just to let you know, the base WPDM Pro plugin allows this by default..
You’ll need to create a page with the following shortcode on it:
[wpdm_frontend]
This is where the upload tool(s) will be..
Then just go to:
Downloads -> Settings -> Frontend Access
There you’ll see where you can set options for the user side of the plugin (Such as login page, register page, etc..)
Set the the Frontend Uploader Page to the page with that short code on it.
Set the Allowed User Roles to Create Packages From Front-end to add all the roles that you want to allow to upload.
You’ll also want to make sure all the settings on that page are correct for what you want, but do make sure to verify:
When Someone Creates a Package:
[ <Drop Down List ]
When File Already Exists:
{ <Drop Down List ]
Are set. You can find the documentation for this settings page at: Frontend Access Settings
Hope that helps.
i have search this forum about this problem but i can’t find a solution.
so i wanna sort my downloads per update_date :
this is my shortcode
[wpdm_all_packages items_per_page="20" categories="free-radioshows-podcasts,free-trance-downloads" jstable=1 order_by="update_date" order="ASC/DESC" cols="page_link,file_count,download_count|categories|update_date" colheads="Title|Categories|Update Date"]
older files showing on top … and newer ones at the end …
how can i fix that ?
Download Manager Pro Version 4.9.6
Warning wpdm-functions.php on line 2387
Hi,
Today I have an error on all my downloads.
Warning: Invalid argument supplied for foreach() in \…\wp-content/plugins/download-manager/wpdm-functions.php on line 2387
Samples:
Téléchargez CyberLink PowerRecover (Gratuit)
Téléchargez AIDA64 Extreme Edition
Best regards
Hi Vela,
I am NOT WPDM Support
There is a setting for this:
Downloads –> Settings –> Basic –> [ File Download ]
Find the Check box that reads:
[ ] Open in Browser
Try to Open in Browser instead of download when someone clicks on download link
Check that and when a user clicks on them, it should open in the browser rather than trying to download (on files that CAN be opening in a browser.. PowerPoints and Word Docs will most likely just goto the download dialog or download depending on browser settings).
As to making it open in a new tab…. I know when creating a text link, you can check a box that says “open in a new tab” or some such, but I believe that’s a WordPress dialog, and you have to manually copy the direct download link into it. At least that’s the only way I’ve found to open in a new tab.
The support people might know a different (better?) way to do it. It’s also possible that you could edit the templates to do what you want.
Hi Chris,
Not support for WPDM.. But you need to goto:
Your Purchase Page
There you will see a file: download-manager-4.9.2.zip under your purchases
You need to download that, and then remove the WPDM Free version.. This will not remove any of your current settings or downloads.
You then need to install the 4.9.2 version ( Pro is v4.x while Free is v2.x). You then need to put in your license key into the appropriate place in the settings, and save settings. You should get a notice about your license key being validated.
The wpdm-archive.zip file is a different type of display for downloads (the one with the categories to the left, that expand and collapse while having seach and downloads to the right… You can see it on the Demo site ( –> HERE <– )
Once you have the WPDM Pro installed, you should have no problem finding the appropriate settings. 🙂
Hope that helps.
This reply has been marked as private.
Ok.. So.. Update….
As un-intuitive as it was… I decided to run through the plugins (again)…
This time I checked downloads after each plugin… I found the one that was creating the download issue.
With all plugins enabled, with the exception of WPDM Block Hotlink (from the special pack), the site works perfectly fine and responds as expected. Turning on the Block Hotlink plugin causes the infinite loop to download pages, never serving the actual file (even in direct links)…
Not sure if this an actual plugin issue (since the 5.2.1 update) OR if it’s a case of problem at the server level… But for now the system is operating as intended. Still have the cUrl 28 and REST API issues, which only show up IF Download Manager Pro is enabled.. But it and other ” Recommended improvements ” disappear if WPDM (Pro) is disabled…
Looking forward to updates to the Pro edition of the plugin…
Thanks.
All of our downloads are individual PDFs. Can you tell me the best practice for opening them in a new tab? Is there a function/snippet?
TIA
KO
Now all zip files will be stored in cache dir which you can clear periodically from Downloads Settings Privacy tab. If you don’t want to store zip file it is better to disable the package download button and use only single file download links. Because creating a zip file takes a fair amount of server resource and as you are not storing those created zip the process has to be done again the next time someone else downloads the file.
So, either deactivate whole package download link or keep those zipped files to get optimized performance.
Hi,
Tags are already available with wpdm and there are shortcodes with wpdm pro to filter tags, docs:
[wpdm_tag] – Query all downloads from specified tag(s)
[wpdm_packages] – WP_Query in a shortcode for download manager packages
However, we shall add tag filter/parameter with [wpdm_all_packages] shortcode with the next update of the plugin.
A user can edit only their own profile info. And you can control the access to the downloads using the “Allow Access” option in package settings.
WordPress shows the admin bar to all registered users. Download Manager has nothing to do with that. But I can suggest some code to hide the admin bar. Add the following code in theme’s functions.php
file to hide admin bar for all roles except administrators,
add_action('after_setup_theme', 'wpdm_remove_admin_bar');
function wpdm_remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}
Ok.. so once I got the path right ( You don’t need the /tpls/ just /{theme}/download-manager/metaboxes/ <filename> .. .Then it worked.. Which at least protects my workaround for now.. But it really does need to be more properly fixed, as the 6 BR tags stretch out the border around that panel.. so it looks weird.
Additionally, tonight, a new problem has shown up.. and not sure if it’s a problem due to the Loop back error, or what…
Previously, we setup all our downloads on different pages to go directly to the files (using text links, and the direct download link). There are a couple of files setup in the menu’s and I’d say 90% of the rest of the files on various pages are linked like that. This system worked just fine when we set up the plugin originally. (Purchased Date: Apr 19, 2019).
However now, none of the links are working… Both the text links, and those using WPDM Link Templates, all direct the user to the package’s information page, and the download button on that page just keeps re-loading that page. This makes the system completely unusable.
Any idea on what’s going on here, and how to fix it? This is a critical high-priority error.
Thanks.
Which link template are you using now? Please check the package settings and find the selected link template. Then clone this link template from Downloads Templates page. In this new cloned link template, you have to replace [download_link]
with [download_link_extended]
to use an embedded form instead of popup.
You can also override the link template selected in package settings by defining the template in your package shortcode. Check the example below,
[wpdm_package id=5387 template="link-template-calltoaction1"]
You can set the new cloned template ID as value of template
in package shortcode [wpdm_package id=5387 template="5a0a849876116"]
Here is a detailed tutorial about creating custom templates https://www.wpdownloadmanager.com/building-a-wordpress-download-manager-link-template-from-scratch/
Hello,
I have a file structure like below on WPDM:
User 1
– Topic 1
— File 1
— File 2
– Topic 2
–Sub topic 1
—File 3
User 2
– Topic 1
— File 1
– Topic 2
–Sub topic 1
—File 3
Using the short code [wpdm_my_downloads login=1] I can limit each logged in user to only see the categories and files which they have permissions to. However, I like the layout of the [wpdm_Tree] much better. Is it possible to use the [wpdm_Tree] view and limit the users to only see the categories and files they have permissions to?
I have already installed the Custom Access Level plugin and set “When user is not allowed to download:” to “Hide everything”
I am using the wordpress download manger and I am using this code to display the download lists in an order so that it orders by update_date, but somehow its not working, Can you please help me fix the issue. Here is the short-code I am using
[wpdm_all_packages items_per_page="20" categories="brochures" order_by="update_date" ]
This is my webpage where its listing all the downloads https://tritool.com/news-resources/resources/brochures/ The update date are showing wrong on this page if you click the available download file for details you will see the accurate update dates for every download.
Get the file from here. I have added the code in line 380 and tested it on my setup.
https://www.dropbox.com/s/10vqc4qmj745394/wpdm-all-downloads.php?dl=0
The search option is available in the data table version of all packages table. Not everything in this template is editable because some parts are controlled by the data table js library.
It is possible to hide the number of packages per page dropdown using custom css. It is also possible to add search placeholder. Create a copy of the wpdm-all-downloads.php template file and place it in /active-theme/download-manager/
directory. Then send temporary wp-admin login info in private reply. I will make the code updates to add these features.
Hello Kyle,
Please send temporary wp-admin login info in private reply. I will update the code for you. To make these changes permanent copy the wpdm-all-downloads.php
file and place it in /active-theme/download-manager/wpdm-all-downloads.php
directory. I will edit this new template file.
Thanks.
Advanced Custom Fields ( https://www.wpdownloadmanager.com/download/advanced-custom-fields/ ) add-on allows you to add additional fields in email lock. And Form Lock ( https://www.wpdownloadmanager.com/download/wpdm-form-lock/ ) add-on allows locking downloads behind custom forms made by different Form Plugins. You can check if those options are viable for you.
As I wrote before, I’m using Bulk import page, but I cannot set the correct mapping for some fields using the previously attached csv.
For example:
– Category (I created category in Downloads > Category and in Posts> Category as well, but no one are linked)
– File Name (Inside the page I see the name of the .pdf instead the filename)
– Access permission (always set as Full access)
The packages you see in backend were manually modified after the import. In screenshot the packages imported with csv (no manually modify).
Could you please help me?
You can modify the labels using register_post_type_args
filter. Add the following code to your theme’s functions.php file and adjust the labels as you want.
add_filter('register_post_type_args', 'wpdm_modify_posttype_labels', 10, 2);
function wpdm_modify_posttype_labels($args, $post_type){
if ($post_type == 'wpdmpro'){
$labels = array(
'name' ► __( "Downloads" , "download-manager" ),
'singular_name' ► __( "Download" , "download-manager" ),
'add_new' ► __( "Add New" , "download-manager" ),
'add_new_item' ► __( "Add New Download" , "download-manager" ),
'edit_item' ► __( "Edit Package" , "download-manager" ),
'new_item' ► __( "New Download" , "download-manager" ),
'all_items' ► __( "All Downloads" , "download-manager" ),
'view_item' ► __( "View Download" , "download-manager" ),
'search_items' ► __( "Search Downloads" , "download-manager" ),
'not_found' ► __( "No Download Found" , "download-manager" ),
'not_found_in_trash' ► __( "No Downloads found in Trash" , "download-manager" ),
'parent_item_colon' ► '',
'menu_name' ► __( "Downloads" , "download-manager" )
);
$args['labels'] = $labels;
}
return $args;
}
Please send temporary wp-admin login info in private reply Or add the following code after line 235 in /download-manager/tpls/wpdm-all-downloads.php
file,
if( ! wpdm_user_has_access(get_the_ID())) continue;
I can not reproduce a simple grid to sell my downloads as shown here:
https://demo.wpdownloadmanager.com/wpdmpro/list-packages/
since there is no documentation to follow,
Therefore i tried to use the ‘WPDM Directory Add-on ‘ and produce the ‘1 Column, Extended’ as shown here https://demo.wpdownloadmanager.com/wpdmpro/ready-to-use-templates/
The issue appears to be with CSS and the use ‘col-md-X’ of several plugins, however i don’t want to spend all day finding and editing code that should already be correct.
After almost $200 spent here i’m finding that your documentation is quite poor.
1 ) Please check this link https://www.wpdownloadmanager.com/doc/using-premium-package/setting-up-paypal-smart-button-for-premium-packages-digital-ecommerce-plugin/
2 ) Swift doesn’t support the additional previews yet. Will add this in next version. But can use the WPDM Page Template add-on which will allow you to use any Page Template from Downloads Templates page.
One of your plugins is creating the JS error which is blocking the download operation. We can bypass it using a custom link template. Please install the Pro version of Download Manager and then you can create custom link template from Downloads Templates page. Or just let me know after installing Pro. I will create the template for you.