I updated from from 4.5.2 to 4.8.1 today, and now my icons and doc_preview are too large.
Here is the code I have been using on my page template for a few years:
<style type=”text/css”>.more_previews_a{display: block;float: left;margin-right: 6px;}</style>
<div class=”row”>
<div class=”col-md-12″>
<table class=”table table-borderless”>
<tbody>
<tr><td>[icon]</td><td><h4>[title]</h4><h5>File Size: [file_size]</h5></td></tr>
[memb_has_any_tag tagid=”1742,1726,1854,532″]
<tr><td style=”width:50%”>[doc_preview]</td><td style=”width:50%”>[description]<p><div class=”joinbtn”>[download_link]</div></p></td></tr>
[else_memb_has_any_tag]
<tr><td style=”width:50%”>[notification style=”error” font_size=”10px” closeable=”false”]Sorry… the Download Library is available to invested members only.[/notification] – Document Preview Disabled -<p> </p><h3>login to download</h3><p>[memb_loginform redirect=#current.page#]</p>
<p style=”text-align: center;”>Not a member? Click here to join!</td><td style=”width:50%”>[description]<hr>
<p> </p></td></tr>
[/memb_has_any_tag]
</tbody></table>
<p> </p>
[memb_has_any_tag tagid=”1742,1726,1854,532″]
<h4 style=”text-align: center;”>– Go Back to Previous Page –</h4>
[else_memb_has_any_tag]
<div class=”hr hr-solid”> </div>
[/memb_has_any_tag]
</div>
</div>
memb_has_any_tag is from my membership plugin.
How do I resize the icon and document so they show – I want the full width of the document showing in half of the table.
Link: https://ramtaps.com.au/downloads2/
short-code:
[wpdm_all_packages items_per_page="20" jstable="1" order="ASC/DESC" cols="title,file_count,download_count|categories|download_link" colheads="Title|Categories|Download::155px"]
issue: showing search on top but not showing all files (showing only 78 pages in pagination)
=========================================================================================================
Link: https://ramtaps.com.au/downloads1/
short-code:
[wpdm_all_packages items_per_page="20" order="ASC/DESC" cols="title,file_count,download_count|categories|download_link" colheads="Title|Categories|Download::155px"]
issue: showing all files as (showing 176 pages in pagination) but not showing search on top
purpose: I want both search on top and also show all files in pagination..i think when i am using jstable=”1″ in shortcode than the issue coming
Which shortcode are you using to display your downloads? Could you send me the page link to check how your download page looks now?
Hi,
It appears right around the time we updated Download Manager (last week), our download links on our package level pages are no longer displayed.
see here – https://www.zuckerbergfiles.org/records/2018-088/
It seems like everything is in its right place on the backend (see attached).
How can we correct this issue?
Thanks.
Hi,
Do you want to skip the package details page?
In that case, you have to remove the [page_url] tag from your template. And use the [download_link] template tag to show the download button.
If you send login info I can set up an example template for you.
Thanks.
This reply has been marked as private.
Hi there,
I’m trying to add a thumbnail image of the actual pdf/image files. How would I do that? Here’s the short code I’ve currently have.
I want the headings to be Thumbnail, File Name, File Type (image of file type), update date, download.
[wpdm_all_packages items_per_page="20" categories="brochures-datasheets" jstable=1 order_by="field_name" order="ASC/DESC" cols="title|update_date|download_link,addto_file_cart" colheads="File Name::30%|Update Date|Download::20%"]
I would like to download direct to the link
Can you adjust my code?
<!-- WPDM Link Template: Personal Template -->
<div class="media well link-template-widget">
<a class="pull-left" href="[page_url]">
[icon]
</a>
<div class="media-body">
<a href="[page_url]" style="display: block;clear: bottom;font-size: 11pt;font-weight: bold;">[title]</a>
<div style="font-size: 9pt;">
<i class="fa fa-database color-green"></i> [file_size] <i class="fa fa-files-o color-purple"></i> [download_count] downloads
</div>
</div>
</div>
<style>
.wpdm_icon{ max-width: 48px; width: 48px; }
</style>
This reply has been marked as private.
There are 2 ways. You can use the custom fields add-on to add custom fields. Insert the custom field value in edit package screen. The ACF add-on will provide you template tags that you can use in custom link/page template to show you custom data.
Another approach is adding new custom template tags using filter hook wdm_before_fetch_template. Use this option if your template tag generates something dynamic. This is the more completed option and requires coding experience. Here is the filter documentation https://www.wpdownloadmanager.com/doc/filter-reference/wdm_before_fetch_template/
This reply has been marked as private.
This reply has been marked as private.
We have migration add-on to migrate packages from 2.x versions. I have attached it below.
Take a backup of the old version before deleting it. Could you please send me the v.2.6.95 as a compressed file? You can send me a download link of the compressed file if you can’t attach it here. I will test it to check if it works with your old version.
In that page, we are using 3 Download Manager widgets. Some styles are coming from the theme. So, the sidebar view in your site might be slightly different from our demo.
https://www.evernote.com/l/AUfEnePTSNFNjYH0yqnwArMzc5TLFDk8kMQB/image.png
New and Top downloads both use “Widget Template” as link template.
The audio tag is used for the [filie_list] template tag to play audio. The popup is used for the popup_link tag and so on. You can remove it by commenting/removing the below line from /download-manager/wpdm-hooks.php file but some related features like audio player, pop-up link won’t work if you have those on your template.
add_filter('wp_footer', 'wpdm_footer_codes');
This details page uses your theme’s single.php template. Some themes provide an option to control the sidebars from the edit post page. If your theme doesn’t have one install this add-on https://www.wpdownloadmanager.com/download/wpdm-page-templates/
This add-on will allow you to use your theme’s page templates as the template for the package details page. To remove the sidebar you can apply the “No Sidebar” template. Each theme provides a template with no sidebar.
To control the view 100% you have to create a custom template for download details page. The template file name is single-wpdmpro.php ( https://www.wpdownloadmanager.com/doc/template-files/ )
You can also add the direct download link in your link template and avoid visiting the details page if you want.
Hi,
When I click on a download link, I’m redirect to a page with some informations about the file and the direct link to the download.
This is a common page/article where the selected template is rendered:
http://51.38.124.243/seminario/download/alere-2-2018-in-cammino-nella-storia/
So, how I can modify this page (not the template) so I can hide the sidebar, resize the featured image, modify the header, …?
Thanks
Roberto
These codes are required for various WPDM features. The audio tag is used for the [filie_list] template tag to play audio. The popup is used for the popup_link tag and so on. You can remove it by commenting/removing the following line from /download-manager/wpdm-hooks.php file but some related features like audio player, pop-up link won’t work if you have those on your template.
add_filter('wp_footer', 'wpdm_footer_codes');
Sorry, not clear what you meant by WPDM template. Are you referring to a link/page template?
Do you want to show your download(s) on a page? You can use shortcode for that.
This reply has been marked as private.
Hi,
Do you mean custom template tags? Normal shortcodes won’t work inside link template. But you can add custom template tags using WPDM hook https://www.wpdownloadmanager.com/doc/filter-reference/wdm_before_fetch_template/
Thanks.
Hi Guys,
Just noticed that there is an audio player modal script added to every page on the website. Why is it added? How can we remove it?
<audio autoplay controls style=’width: 100%;display: none’ id=’wpdm-audio-player’></audio> <script>jQuery(function($){try{$(‘a.wpdm-lightbox’).nivoLightbox();}catch(e){}});</script> <div class=”w3eden”><div id=”wpdm-popup-link” class=”modal fade”><div class=”modal-dialog” style=”width: 750px”><div class=”modal-content”><div class=”modal-header”><h4 class=”modal-title”></h4></div><div class=”modal-body” id=’wpdm-modal-body’><p class=”placeholder”> [ Placeholder content for popup link ] WordPress Download Manager – Best Download Management Plugin</p></div><div class=”modal-footer”> <button type=”button” class=”btn btn-danger” data-dismiss=”modal”>Close</button></div></div></div></div></div> <script language=”JavaScript”>jQuery(function(){jQuery(‘.wpdm-popup-link’).click(function(e){e.preventDefault();jQuery(‘#wpdm-popup-link .modal-title’).html(jQuery(this).data(‘title’));jQuery(‘#wpdm-modal-body’).html(‘<i class=”icon”>
</i> Please Wait…’);jQuery(‘#wpdm-popup-link’).modal(‘show’);jQuery.post(this.href,{mode:’popup’},function(res){jQuery(‘#wpdm-modal-body’).html(res);});return false;});});</script> <script>(function(){function addEventListener(element,event,handler){if(element.addEventListener){element.addEventListener(event,handler,false);}else if(element.attachEvent){element.attachEvent(‘on’+event,handler);}}function maybePrefixUrlField(){if(this.value.trim()!==”&&this.value.indexOf(‘http’)!==0){this.value=”http://”+this.value;}}
var urlFields=document.querySelectorAll(‘.mc4wp-form input[type=”url”]’);if(urlFields&&urlFields.length>0){for(var j=0;j<urlFields.length;j++){addEventListener(urlFields[j],’blur’,maybePrefixUrlField);}}
var testInput=document.createElement(‘input’);testInput.setAttribute(‘type’,’date’);if(testInput.type!==’date’){var dateFields=document.querySelectorAll(‘.mc4wp-form input[type=”date”]’);for(var i=0;i<dateFields.length;i++){if(!dateFields[i].placeholder){dateFields[i].placeholder=’YYYY-MM-DD’;}
if(!dateFields[i].pattern){dateFields[i].pattern='[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])’;}}}})();</script>
Thanks!
This reply has been marked as private.
This reply has been marked as private.
Hi,
Yes, you can add or remove any package related info using a custom link/page template.
To remove the main download button remove the [download_link] template tag from your custom template. You can clone the current template and then remove all unnecessary info from there.
Please check this tutorial to understand how to create a custom template.
Thanks.