1. Up until today, I have used the free plugin version to set up a new page.
I have inserted the following shortcode into several dozen pages, referencing the link-template-default which rendered a nice, one-column list of downloads:
[wpdm_category id="tickets-swiss-travel-pass-de" toolbar="0" order_by="field name" order="asc" template="link-template-default"]
2. With the upgrade to the Pro version, the same link template has somehow changed (link-template-default), so all of my pages no longer displayed the same list. Here is one example where it is now showing a panel instead.
3. Since I don’t want to update 60+ pages by changing the shortcode to another link template, I figured out how to go into PHP in order to override the template.
4. For now, I have come up with the following snippet, hoping that it would nicely show my downloads like in the preview window within WP. I have overwritten the link-template-default, but the result looks pretty terrible and I can’t figure out how to make it a list again:
<!– WPDM Link Template: Default Template –>
<div class=”panel panel-default wpdm-link-template link-template-default”>
<div class=”panel-body”>
[thumb_200x100]
<div class=”panel-content”>
<h4 style=”padding-top: 0px;border:0px;margin: 0px;line-height: 1.7″>[title]</h4>
<i class=”fas fa-hdd color-red”></i> [icon]
</div>
</div>
<div class=”panel-footer”>
[download_link]
</div>
</div>
5. Can you give me the correct code snippet which will create a view such as this one of yours?
Thank you in advance!
PS. And how can I add a target=”_blank” to the DOWNLOAD button, so that a new tab opens when someone clicks the button?
WPDM – PDF Viewer
Version 1.2.4
DM
Version 4.8.11
Theme
Avada
We have added the shortcode into the template and now getting error
Frontend Error
Notice: Undefined index: host in /home/…/…/wp-content/plugins/wpdm-pdf-viewer/wpdm-pdf-viewer.php on line 30
Devtools Error
JQMIGRATE: Migrate is installed, version 1.4.1
?__wpdm_pdf_viewer=1123|0:43 Uncaught SyntaxError: Invalid or unexpected token
pdf.js:6211 The provided value ‘moz-chunked-arraybuffer’ is not a valid enum value of type XMLHttpRequestResponseType.
supportsMozChunkedClosure @ pdf.js:6211
viewer.js:10176 Uncaught ReferenceError: DEFAULT_URL is not defined
at getViewerConfiguration (viewer.js:10176)
at HTMLDocument.webViewerLoad (viewer.js:10180)
Hi there, I am trying to add a new download and this item is larger than 2MB. I have placed the item in the some location within the download-manager-files folder. My problem is that I am not able to use the browse option to find this file. I am also not certain what the url would be to add this in since download manager truncates the url with a number after the document id? I have not added a new item in quite a while… so maybe I am just missing a step or setting here? This could also be some sort of plugin conflict, I am not sure? Any help would be appreciated.
Thanks,
Becky
Hi,
I’ve added a page with [wpdm_frontend flaturl=0] and am trying to review what this offers browsers of the site – specifically with the intention of allowing uploads from users.
I can see the “add new” button, I click that and it asks for a title, I type a title in and then the page clears and I just get a small block of json:
{“result”:”_ap_wpdm”,”id”:207}
Also, if I click on File Manager it reports an invalid directory being used by scandir in wp-content/plugins/wpdm-filemanager/filemanager-frontend.php on line 5 – where can I review this setting and change if required?
Thanks
Matt.
Hi,
I am using the directory add-on for a new site and everything seems to be working, except that the search never returns any results regardless of what I search for. The URL is:
https://www.isasa.info/policy-database/
Could there be a conflict with another plugin?
Simon
Hi,
After adding multiple items to cart and pressing the checkout, the cart page appears empty.
Please check url in private reply.
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!