Hi,
Yes, you can use [hide_empty:download_link]
this tag
like
<div class="ml-3 [hide_empty:download_link]">
[download_link]
</div>
Thanks.
Hi,
You can follow this documentation,
Template Files
by default, you are using link-template-default.php
for link template and page-template-default.php
for the page template. As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in page-templates
for page template or link-templates
for link template. And you have to replace [download_link]
with <a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a>
in related PHP file.
Thanks.
still the same, when I upgrade using the updates tab it uninstalls the add on and the manual download link downloads the old version not the updated one
Hi,
If there are no files in the package,
can I prevent the Download button from appearing in the link template?
PHP is prohibited in custom tags.
How can I know if there are any files in the package using JavaScript?
This reply has been marked as private.
Hi team,
Site 1 – Currently using Download Manager V 5.0.94 / WPDM – Default Values V 1.9.2 and I cannot select any custom Link Templates.
Site 2 – Currently using Download Manager V 5.0.94 / WPDM – Default Values V 1.8.0 and I cannot select any custom Link Templates.
Setting on both sites:
Temporary Storage Management = Save in File
Active Bootstrap Version = 4
Disable Style & Script = Disable Bootstrap JS
Video here showing issue here; https://www.loom.com/share/b3c618ab2ae5456d941df9bf302be383
I look forward to hearing from you.
Thanks,
Andre
Hi,
download_link=1
parameter is working fine from my side. if possible, Please, give your temporary wp-admin login details in a private reply for checking.
Thanks.
I first tried to update my version of Download Manager pro from the WP dashboard but got an error. When I go to that page you linked to in your response above and click on the download button to re-download the Download Manager Pro, I get a message that says “Your email address has been blocked”. I very urgently need to re-install the latest version of the pro plugin. Could you please help with that?
Hello again,
I have a hard wrapping my head around all the possibilities offered by WPDM…
I have more question (sorry) !
If I understand everything correctly : templates are meant to be used to display packages (package page + packet link). Is that right?
However, if I use packages to upload my images I’ll end up with 3000 packages. That seems a bit counter productive to me…
Ideally I would upload my image with the help of the asset manager in a secure folder, like “download manager files” (tell me if that’s not a good idea).
I end up with 2 possibilities: https://snipboard.io/DtKLVj.jpg
1. I can copy the shortcode. But then I have to change the default template so that it displays the image itself. But my theme only allows me to input links for galleries…
2. I can generate a link, this gives me the option of setting the authorized user roles (the shortcode doesn’t give me that option). Great ! But when I copy and paste the link in my gallery, I don’t see the image. I see what the default link template allows me to show.
I figure I have to change that template (the way you detailed above). But I would ask the template to display the featured image…And is there one in this case?
I figure this leaves me with one last option : I upload the image through the media library, secure it thanks to WPDM, delete the thumbnails so they can’t be accessed. This way I don’t have any trouble displaying it in galleries and featured images, where and how I need.
Is there a reason why I shouldn’t do that?
Also I’m wondering: is WPDM compatible with plugins that allow me to add folders to the media library? That would make things less cluttered.
Hi,
For #1, you can apply for role-based protection as brother Shahjada clarified.
#2, For image (in galleries, lightboxes, etc.), you can follow, this template hierarchy doc, https://www.wpdownloadmanager.com/doc/templates/template-tags/, here, you will find tag name for images [thumb_gallery_WxH]
also for featured image preview [preview]
tag. you can use them. you can do it from Downloads > Templates > link-templates/page-templates
, you can clone them or create a new one. and thus you can edit them or use in your own package settings > page-templates/link-templates
.
Furthermore, for this doc, https://www.wpdownloadmanager.com/doc/template-files/
by default, you are using link-template-default.php
for link template and page-template-default.php
for the page template. As documentation, you have to copy the file in the theme directory naming a folder called download-manager
, then paste it in page-templates
for page template or link-templates
for link template. and edit them as your own requirements.
#3, you can do it by Set Downloads > Settings > Basic > File Download > Mask Download Link
#4, you can protect them from role-based protection too.
#5, For that you can use it in your page template the [preview]
tag
#6, You can remove the download link tag from your own custom template and apply for the role-based protection.
Thus, I think you can solve your problem.
Thanks.
Sorry, I’m getting confused with this plugin. There is so much to understand.
I have the feeling things aren’t as simple as I thought.
Here’s a summary of what I know :
-I have images that I want protected : they can be seen by authorized user roles.
-These images have to be displayed on a page like any regular image (in galleries, lightboxes, etc.) No need to make a downloadable package. –
-I don’t want people to be able to access them through direct link ; I don’t want Google to be able to see them either.
-I can’t upload them to my media library because that triggers the thumbnails generation and it seems there’s nothing I can do to stop it. I can protect the master image, but not the thumbnails.
-I want to use them as featured images, but it seems that’s impossible if they are not in the media library (or is there another way?)
*edit* I found a plugin that allows me to enter a URL for featured img BUT the URL generated by WPDM doesn’t display an image…
If I upload the image in a secure WPDM folder, the link I generate (with user restriction) doesn’t work in galleries : I don’t see the image, I see the download link…
I’m lost…
Thank you for the help!
Thank you for this! I was trying to create a private gallery displaying the images uploaded in the package to see if that was a possible solution…
I’m still looking for a way to display my images instead of a download button, but I think the answer might be in the templates. I’m trying to figure out how to make one that suits my needs.
I’ll keep searching, but if you have any advice I’d be happy to learn more 😉
If there is a way to just copy the secure link generated by WPDM to display my images in the gallery it would be awesome !
Thank you
This reply has been marked as private.
This reply has been marked as private.
Hi, download link is not working for my website visitor.
I put the password on the file too. It was working for a while, but I think after the updates, it won’t let the visitors or even me download it.
It went to : page can’t be found
This is one of the downloadable file.
https://www.hotelplans.com/download/mwt-site-checklist-site-requirements/
This reply has been marked as private.
These are the failures that im getting when trying to import the sample data for your Attre theme! I need someones assistance with this as soon as you can!
Import WordPress
Failed to import wpdmcategory FLAT UI
Failed to import wpdmcategory Free PSD
Failed to import wpdmcategory HTML & CSS
Failed to import wpdmcategory Icons
Failed to import wpdmcategory WordPress
Failed to import “Pricing Tables”: Invalid post type wpdmpro
Failed to import “Green Flat UI”: Invalid post type wpdmpro
Failed to import “Flat Web Elements”: Invalid post type wpdmpro
Failed to import “Line Icons”: Invalid post type wpdmpro
Failed to import “Free Item”: Invalid post type wpdmpro
Failed to import “Blossom”: Invalid post type wpdmpro
Failed to import “Jumper”: Invalid post type wpdmpro
Failed to import “Pay As You Want”: Invalid post type wpdmpro
Failed to import “Product – With Extra Gigs”: Invalid post type wpdmpro
Failed to import “Test”: Invalid post type wpdmpro
Failed to import “Cool Pic”: Invalid post type wpdmpro
Failed to import “test”: Invalid post type wpdmpro
Failed to import “Demo H2 package”: Invalid post type wpdmpro
Failed to import “Email Download Link”: Invalid post type wpdmpro
previously this plugin was installed but now it is not on the site. I don’t know how it was removed. where can i download the plugin. I couldn’t find the download link. It gives a price of 48 dollars on the site. I have already purchased a special pack. Shouldn’t it be free to me?
Hi,
I’ve update the Version 5.0.8 to 5.0.94. I got the following issue.
I lost my sidebar design.
I’ve update the version at my staging server. please visit my staging website and live website link below and compare the most right sidebar.
staging website link (where we lost our design) with latest version 5.0.94:
link:(https://staging.frebers.com/download/chat-babels)
live website (working fine) with old version 5.0.8:
link:(https://www.frebers.com/download/chat-bubbles-vector-download)
Please take a review and let us know the fixes. your quick response will be much appreciated. please let us know further for any explanation:
waiting for your kind reply.
Thanks
-
This topic was modified 5 years, 1 month ago by
Frebers.
Hi,
Email lock sends email with link even if “Do Not Mail Download Link” is checked.
Also “Download link also sent to your email” popup is shown.
This is news coming with 5.0.94 because I didn’t experience it configuring 5.0.93
yesterday, on two differents sites.
Have a look please.
EF
Yes, I have checked now. they are working now. Maybe for the master key got to expire. so that, it was redirecting to the invalid download link. There also caused this issue for Private Download Link Usage Limit
or Private Download Link Expiration Period
or sometimes wpdm-cache
read-write permission. Anyone facing this problem should get help here.
Thanks.
Hi,
Now Download link is Ok, I have adjusted it from your custom wpdm-all-downloads.php
file.
Thanks.
To generate download link properly, please use the following code:
<?php echo WPDM()->package::downloadLink(get_the_ID()); ?>
Hi any help with this? I would like the Form to Show every time. I would also like the option that the file gets unlocked by the emailed link ONLY. Right now when a person fills out the form, even with Bad/Bogus email information, the Download becomes unlocked.
Thanks,
Jason
Hi Nayeem. Thank you. I did switch to the “Save in file” option and pressed Save. I emptied cache and still no custom templates appearing in the Downloads > Settings > Basic > frontend access > Select link template dropdown. Hopefully they’ll appear after the update you provide.