This reply has been marked as private.
Hi @fscedfu,
Please update your WPDM Pro to the latest version 6.0.6 first and then use the updated shortcode mentioned in the below link. As you can see template parameter should be link-template ID and make sure it exists under Downloads ► Templates.
https://www.wpdownloadmanager.com/doc/short-codes/wpdm_category-query-all-downloads-from-one-or-more-categories/
Please check this and it’s working fine.
Thank you
LOL, you meant tree view shortcode, we already documented it on https://www.wpdownloadmanager.com/download/wpdm-extended-short-codes/. Simply adding newwin=1 with shortcode shall open the link in a new window/tab.
Please give me an URL where the download link opens on the same tab for you. In my test ( https://flowersoapscoil.ipage.com/aitech/test/?search=p ), it is opening in a new tab.
I have the astra theme on my WordPress. I have been trying to remove the Next and Previous navigation links at the bottom of every file page as I don’t want people to be able to browse the whole file library.
I have tried to put css code in the Astra theme, I’ve tried to download the Astra Child theme and add code, nothing seems to work.
Does anyone know how to remove this?
Hi, on the download link page the image is out of shape here
However on the actual download page it is the correct size here
All I am looking for is the ability to change the [icon] within the download link template as at the moment there isn’t an option?
Thanks
Guy
Hello @jennafurless,
I am sorry to say that you can’t make the entire table display due to your current theme layout. If you want to change the theme in the future then you can use our “Attire” theme instead which is optimized and works well with the WPDM.
https://wpattire.com/
Or, you can remove a column by using the below shortcode which should look like this.
[wpdm_all_packages items_per_page="20" categories="interventions,tools,promotion,socials" jstable=1 order_by="field_name" order="ASC/DESC" cols="title,file_count,download_count|categories|download_link" colheads="Title|Categories|Download::155px"]
Yes, you need to list all of the categories in the “slug” area.
However, in order to remove the “[free_download_btn]” code for the premium page template, please activate the
Premium Packages - Sell Digital Products Securely plugin first and then remove this free download file.
Hopefully, your problem will be solved.
Thank you
Hi guys,
Download Manager has stopped working as at about a month ago.
We have it integrated with Woocommerce to securely download a PDF or ZIP file but the link generated simply presents “File not found Go to shop” onscreen.
The download counter works so it’s registering that the ayyempt to access the file but the file is not able to be reached or downloaded. I wonder if it’s a htaccess file issue?
Here’s an example: https://www.nash.asn.au/shop/?download_file=5157&order=wc_order_r4XgHB7jyNTcn&email=jcgilronan%40gmail.com&key=1d3e2418-97d2-4e7c-8c91-280b263a1934
Regards,
Adam
Hello @
Hope you are well and sorry for the delay.
Please you the below code in order to show the featured image in the link template.
<img src="[preview]" alt="Preview" />
You will find more details in the below docus as well.
https://www.wpdownloadmanager.com/doc/templates/template-tags/
Thank you
Filter hook wpdm_download_link and download_link works differently.
wpdm_download_link accept 2 parameters 1st parameter is download link html code, 2nd parameter is an array just contaiting package ID, ['ID' ► {Package ID}], and inside the filter to can retrieve package date using the give ID, $packageObject = WPDM()->package->init($param2['ID']);
and download_link filter is documented here https://www.wpdownloadmanager.com/doc/filter-reference/download_link/
However, please let me know what are you trying to do, so that I can explain your better :).
This reply has been marked as private.
The filter https://www.wpdownloadmanager.com/doc/filter-reference/download_link/ . This is a documented API which I thought I could assume to be stable. The filter wpdm_download_link is not a good replacement, since the package information is not passed as an argument.
Hello Guy,
Yes you can.
In order to show total downloads in a download package page, you have to use this template tag [download_count] in the link/page template that you are using.
For more template tags, you can check here:
Template Files
Also you can use shortcode and set link template there to show total downloads. To create templates you can follow this
https://www.wpdownloadmanager.com/doc/templates/creating-a-new-template/
Thanks
Hello @hudi-webcart,
You just need to follow this:
1. Copy page-templates directory from /plugins/download-manager/src/package/views directory to your active theme directory.
2. Make a new directory as download-manager on your active theme directory.
3. Now remove all files from {active-theme}/download-mamager/page-templates except the template files you need to update.
4. Update template file(s) in {active-theme}/download-manager/page-templates directory as per your need. As you need to add open in a new tab you have to add this <a href="[download_url]" target="_blank">[link_label]</a>
Let me know please if you still find any issues.
Thanks
Hi,
Can not open file in a new tab as before.
I changed /wp-content/themes/astra/footer.php
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Astra
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<?php astra_content_bottom(); ?>
</div> <!-- ast-container -->
</div><!-- #content -->
<?php
astra_content_after();
astra_footer_before();
astra_footer();
astra_footer_after();
?>
</div><!-- #page -->
<?php
astra_body_bottom();
wp_footer();
?>
<script>
jQuery(function($){
$('.wpdm-download-link').each(function(){
$(this).attr('target','_blank');
});
});
</script>
</body>
</html>
I changed /wp-content/plugins/download-manager/src/Package/views/link-templates/link-template-default.php
<!-- WPDM Link Template: Default Template -->
<div class="link-template-default card mb-2">
<div class="card-body">
<div class="media">
<div class="mr-3 img-48">[icon]</div>
<div class="media-body">
<h3 class="package-title">[page_link]</h3>
<div class="text-muted text-small"><i class="fas fa-copy"></i> [file_count] [txt=file(s)] <i class="fas fa-hdd ml-3"></i> [file_size]</div>
</div>
<div class="ml-3">
<a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a>
</div>
</div>
</div>
</div>
And I changed /wp-content/plugins/download-manager/src/Package/views/page-templates/page-template-default.php
<!-- WPDM Template: Default Template -->
<div class="row">
<div class="col-md-12">
<div class="card mb-3 p-3 hide_empty [hide_empty:featured_image]">[featured_image]</div>
</div>
<div class="col-md-5">
<div class="wpdm-button-area mb-3 p-3 card">
<a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a>
<div class="alert alert-warning mt-2 [hide_empty:expire_date]">
Download is available until [expire_date]
</div>
</div>
<ul class="list-group ml-0 mb-2">
<li class="list-group-item d-flex justify-content-between align-items-center [hide_empty:version]">
[txt=Version]
<span class="badge">[version]</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center [hide_empty:download_count]">
[txt=Download]
<span class="badge">[download_count]</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center [hide_empty:file_size]">
[txt=File Size]
<span class="badge">[file_size]</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center [hide_empty:file_count]">
[txt=File Count]
<span class="badge">[file_count]</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center [hide_empty:create_date]">
[txt=Create Date]
<span class="badge">[create_date]</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center [hide_empty:update_date]">
[txt=Last Updated]
<span class="badge">[update_date]</span>
</li>
</ul>
</div>
<div class="col-md-7">
<h1 class="mt-0">[title]</h1>
[description]
<div class="wel">
[tags]
</div>
</div>
</div>
But it still opens files on the same tab and not in a new tab.
-
This topic was modified 5 years, 2 months ago by
Shahjada. Reason: creds removed
Hello,
I think you require some customization work.
You can contact our customization team through this link.
With Regards
Hello Asad,
We are sorry to say that it’s not possible. It requires some customization work.
You can contact our customization team through this link.
With Regards
Good evening Download Manager Gurus!
I am new to WordPress/Download Manager; my only website coding experience is from a lifetime ago doing basic HTML. Therefore, I have some working knowledge, albeit, I feel as though I’ve forgotten more than I can recall.
Anyways, I am hoping to find some assistance with understanding and correcting why the responsive table I have inserted using the short-code is not pulling the downloads I have ready to go: [wpdm_all_packages login=1 thumb=1 items_per_page="20" categories="slug1,slug2,..." jstable=1 order_by="field_name" order="ASC/DESC" cols="title,file_count,download_count|categories|update_date|download_link" colheads="Title|Categories|Update Date|Download::155px"]
If I go to the various pages with the downloads I’ve uploaded directly, everything looks okay; I think. See an example here: https://rectherapy.ca/?wpdmpro=tree-of-life-expressive-art-activity
Any guidance, with compassion for my slow uptake of this new information, would be greatly appreciated! 🙂
The page I need help with: https://rectherapy.ca/?page_id=345
Thank you in advance!
Hi @fscedfu,
No, I haven’t change anything yet.
After the update please Go to Downloads>templates then visit all tabs there.
It should solve your issue. If it does not then please share a link where the 5cbda6187abge.php is appearing.
Thank you
Hello,
Hope you are well.
In order to use the photography theme please download the child theme and then follow the procedures described in the below link.
https://scripteden.com/download/wordpress-portfolio-photography-theme/
Also, you can add the digital marketplace demo from the Attire theme Attire Layouts options by following this.
Thank you
Hello Guy,
Hope you are well.
You have to customize the all-packages-shortcode.php file, and the file location is /download-manager/src/Package/views/,
To do that,
1. Create a dir named download-manager inside your active theme dir(Dont need if it is already created there)
2. Now copy the all-packages-shortcode.php to modify from download-manager/src/Package/views dir to /{active-theme}/download-manager/ dir.
3. Customize that file in{active-theme}/download-manager dir as you need to comment out the line 290 by adding this // to
$data['download_link'] = WPDM()->package->downloadLink($data['ID'], 0, array('template_type' ► 'link'));
like this //$data['download_link'] = WPDM()->package->downloadLink($data['ID'], 0, array('template_type' ► 'link'));
then add this line there
$data['download_link'] = "<a target='_blank' class='btn btn-primary' href='".get_permalink($data['ID'])."'>"."Download"."</a>";
$download_link = $data['download_link'];
if you dont want to open in a new tab just remove target='_blank' from that line.
4. It will work with the shortcode as you wanted. then save the file and test.
Thank you
Respected Nayeem And Shahjada Sir.
I was Offline and my Update is expired.
Now my Mastercard has some problems and it will be solve in next 10 days.
So I can’t renew my support and update now for wpdm pro. Although my 2 other addon has still support time remaining.
Sir please give me new version download link because in 6.04 some Function like Views and Download Count Not Working.
Or tell me the solution of these two problems if possible with that old version.
I have 6.04 Now Installed.
Thanks and Regards
Hi @goldenmoon,
You can change the download button color by following this setting.
However, in order to change the other texts in the download box, you have to edit the corresponding template file by following this doc.
Also, You will find all the related template tag details in the below link.
https://www.wpdownloadmanager.com/doc/templates/template-tags/
Thank You
Hello,
The [page_link] will show package title with package link.
Currently it is not possible by default to change the download button link to package link.
It needs some php customization in download-manager > tpls/tpls3 > wpdm-all-downloads.php file,
please let me know, if you want the changes.
Thanks
Hi @b-maria,
You are welcome. I am always at your service mam.
However, Your inserted shortcode was wrong that’s why it was not working.
You will find the valid shortcode format in the below link and please copy a shortcode by following this in the future.
WPDM Directory Add-on
Have a good day.