This reply has been marked as private.
Thanks. I have resolved that issue but now have a new one.
1) How do I create a grid of flip-card items that are part of the same package
2) My shortcodes do not work.
For example:
[wpdm_all_packages login=1 thumb=1 items_per_page="20" categories="free-financial-calculator-downloads" jstable=1 order_by="field_name" order="ASC/DESC" cols="title,file_count,download_count|categories|download_link" colheads="Title|Categories|Download::155px"]
displays with no problem
But this does not display:
[wpdm_package id='271915']
We are using “classic editor” and will not use Gutenberg.
Thanks for your help.
Hi, I’m using the following to query all downloads from a specified tag – however the item_per_page parameter doesn’t seem to be working, no matter if I specify 5 or 50, for example. It just shows 10 and only 10.
<?php echo do_shortcode("[wpdm_tag id='foobar' item_per_page='50' order_by='update_date' order='desc' template='foobar-link' toolbar='0' cols=1 colspad=1 colsphone=1]"); ?>
Sir Nayeem when I am viewing the lazy download page, without download the file, then the ads working, but when I click on file download and go to the lazy page, then ads not working, I think it is happening because of so lengthy URL. you know during countdown the URL is making too long, so please sir check this, I am also attaching the video.
video link
I have now tried again and found that the downloads are no longer accessible until I execute the following SQL command in the database:
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://old.url','http://new.url');
Of course, I have adapted “old.url” and “new.url” to my URLs.
Before, all downloads were still linked, but after this command they were no longer. How can I correct this?
-
This reply was modified 4 years, 2 months ago by
Tom.
This reply has been marked as private.
Hi,
you can follow the link below 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 tpls>page-templates
for page template or tpls>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.
you can customize the link-template and use the [title]
template tag, for more reference, you can check this doc, https://www.wpdownloadmanager.com/doc/templates/template-tags/
thanks
you can use customize or pre-built link-templates in that shortcode and to open a new page for the download link you can customize the link-template PHP file for the related download link tags
thanks
I’ve got it fixed! Thanks to your tip about the version I thought about checking my custom wpdm-all-downloads.php file in my child-theme.
It contained old code, just copied the new code from the latest version into that file and tested it.
It’s now working, the download link shows as:
<a class="wpdm-download-link download-on-click btn btn-primary " rel="nofollow" href="#" data-downloadurl="https://linkhere.com">Downloaden</a>
Thanks for the quick reply!
The website is private and I cannot make it public in an instance.
The download links have the following HTML:
<a class="wpdm-download-link wpdm-download-locked" rel="nofollow" href="#" onclick="location.href='https://linkhere';return false;"><i class=""></i>Downloaden</a>
The link is created by this code in my custom wpdm-all-downloads.php file:
<td class="pdf-file">
<small>
<?php
$number_files = count($data['files']);
if ($number_files == 0){
echo "<span style='color:#cccccc'>Niet beschikbaar</span>";
} else {
echo "(" . $number_files . ") " . $download_link;
}
?>
</small>
</td>
The $download_link outputs the HTML with the classes: “wpdm-download-link wpdm-download-locked”.
What is the right way to remove them?
I’ve found a few parts of this code in the wpdm-functions.php file, but it won’t change when I edit it and place it in my Child-theme.
Thanks again!
Hi Guys,
I’ve got the exact same problem.
How can I remove the “wpdm-download-link wpdm-download-locked” classes from the download link?
If I manually remove them via Chrome console, it works without the expiration notification.
Thanks in advance!
This is related to generate the download URL for your downloading the package, but if you wish for hiding the source code, there is a way you can disable the right click with any wp free plugin. thus you may also protect the links/URLs
thanks
Your video link has been aborted by my connection, I can’t able to access the link, please check, and if you mask the download URL then it shouldn’t be copyable
thanks
This reply has been marked as private.
You can use shortcode in your wp pages/posts and this feature will help you send email download link for the multiple users
thanks
dear wpdm team, how i can Protect my Downloadable Links from being Stolen ?
Because Other Website Users are using my links on their website
I noticed that the wpdm pro links also can be copied through source code. So any method Sir to protect my Links.
If it’s possible I’ll pay for this Sir.
This reply has been marked as private.
Can you please elaborate more on your issue, you can use the email download link package shortcode on your page/post, please let me know then
thanks
Can we use email download link in the shortcode?
This reply has been marked as private.
For some Pdfs once uploaded it creates me a file in HTML and not in pdf.
I leave you the link
https://surefish.eu/downloads/surefish-communication-toolbox/
Hi,
There is no issue with the download link with the latest version of wpdm, please clear your site cache (especially js file cache ), after that it should work fine.
When using the login page in Download manager and creating a new user in the WordPress back-end and checking the ‘Send the new user an email about their account.’ checkbox, the user is getting a link to reset the password by e-mail:
https://website.com/login/?action=rp&key=ew45trgre453ehj54&login=loginname
When clicking this link, it always throws a ‘Invalid key’ error.
I already debugged this and it’s caused in the download-manager/tpls/reset-password-form.php:
$login = \WPDM\libs\Crypt::decrypt(wpdm_query_var('login'));
The login $_GET parameter is not encrypted when it is sent by WordPress itself, so the password reset key is always invalid.
I fixed it myself by copying the ‘reset-password-form.php’ to my theme and replacing:
$login = \WPDM\libs\Crypt::decrypt(wpdm_query_var('login'));
by:
// Fix for WP password reset mail
$login = wpdm_query_var('login');
if (!get_user_by('login', $login)) {
$login = \WPDM\libs\Crypt::decrypt(wpdm_query_var('login'));
}
—
Please consider an update for this!