Good day! We’ve noticed that when using the Elementor WPDM add-on and adding a package list a nicely formatted table as added. This is exactly what we want. However, the file icon and the file title are not links, there is no way to download the file while using this package table. also, we’d prefer not to have the download buttons shown. We like the appearance of the table without the button, but it does us no good if we can download the files. The only link is the category text. Below is an example of the code that is generated. How can we have this same table but with the image and the package title be direct download links to the file itself (not to the package download page).
<table id="wpdmmydls-066a18a6ef5f9ea80e3d04d68d8780f4">
<thead>
<tr>
<th id="title"
>Title</th>
<th id="categories"
>Categories</th>
</tr>
</thead>
<tbody>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel Analog Phone Quick Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel 560 Phone Quick Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel 230 Quick Phone Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel Communicator for Windows (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
</tbody>
</table>
<ul class='pagination wpdm-pagination pagination-centered text-center'></ul>
I am using using [wpdm_search_result cols=1 template="sample-link-template"]
content for sample-link-template is as follows
<div class=”media”>
[icon]
<div class=”media-body”>
<h4 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0px;”>[page_link]</h4>
[download_link]
<i style=”margin: 2px 0 0 5px;opacity:0.5″ class=”icon icon-th-large”></i> [file_size] <i style=”margin: 2px 0 0 5px;opacity:0.5″ class=”icon icon-download-alt”></i> </div>
</div>
after searching, results are shown but both the title and download button are not working. Both are not clickable. I suppose these were generated by [page_link] and [download_link]
How do I fix this?
It seems like the cart page is not being applied in the pay link, despite having the Cart Page set in wpdmpp settings – also there is no error handling for this.
Steps:
1 – create pay link
2 – visit pay link
Link is:
my-url.com/?addtocart=dynamic&price=44&name=Update&desc=Get%20your%20product%20updated&recurring=0
Should be: my-url.com/cart/?addtocart=dynamic&price=44&name=Update&desc=Get%20your%20product%20updated&recurring=0
Handling could be:
if(isset($_SERVER['HTTP_REFERER'])) {
header("location: " . $_SERVER['HTTP_REFERER']);
} else {
// Handle error
}
Thanks
Hello, I am using the Client Portal plugin and one thing doesn’t work right when the Download Manager plugin is enabled. I have added a code in the theme’s function.php so when someone logged into the portal (CP-Client type user) logs out, it redirects to the home page. However, the code is not working and redirects to the normal WordPress login page. If I deactivate Download Manager, it works correctly. Are you able to see what the issue is with this? Here are notes from the Client Portal Support:
I checked your functions.php file and confirmed that you added the PHP snippet. See – https://share.getcloudapp.com/YEueBl96.
But still, the issue persists when I tried logging out as brettzeck. Check this recording – https://share.getcloudapp.com/5zujnpzA.
This worked on my test site as you can see here – https://share.getcloudapp.com/JrupGz2P.
On further testing, it seems the Download Manager plugin is having conflicts with the filter. When this is active, the logout URL redirects to wp-login.php. Check this recording – https://share.getcloudapp.com/04u6L1ow.
Hi,
After updating, we encountered a bug with the feature of adding external links as download buttons.
Example of how it worked previously. Link is added and then the title is changed to something more easily readable:
Now, after the updates, when adding a link to an external website, the link will disappear once changing its title and subsequently updating the page. When changing the title of existing links, the link will also disappear.
Differentiation between external and internal links:
When using links to download.schenker-tech.de (our Download Manager URL), the links will remain, even after changing the title. Only links to “other” websites are affected by this undesirable behavior.
Please help us figure out the root cause why this feature suddenly stopped working. Thank you for your assistance!
Hello!
I have the same issues like this topic: #79408
Your answer was:
Hi,
It is possible to keep the package download button open in the same session once the package is unlocked. You can add the following code after line 193 in /download-manager/libs/class.PackageLocks.php to apply it,
if( isset( $_SESSION[ ‘_wpdm_unlocked_’.$package[‘ID’] ] ) == 1 ) {
$download_url = \WPDM\Package::expirableDownloadLink( $package[‘ID’] );
$link_label = get_post_meta($package[‘ID’], ‘__wpdm_link_label’, true);
$link_label = trim($link_label) != ” ? $link_label : __(‘Download’, ‘wpdmpro’);
$data = ”
“;
}
But it will require very lengthy modification to unlock single file links. For now, use this modification. We will consider what you proposed for the future release of WPDM.
Thanks.
I tried the code but it’s not working. Could you have a look if there is an issue with the code or with compatibilites with newer versions of the plugin? Thank you.
And since the topic is several years ago, are there other/better possibilities?
My goal is to type in the password once and then choose which files or the whole zip file you want to download – without using the password every time.
Thanks in advance!
Best Regards