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.
This reply has been marked as private.
Hi,
we have been using download manager pro for several projects. Now in our recent project, the download link when package file is being downloaded creates 0 bytes ZIP folder which i cannot even unzip. URL is this one: https://fit.conceptstory.de/downloads. we have same problem in listing as well as package detail pages. Single download file works though, even the big ones, like video 40 MB file. Any suggestion?
Thank you, Doreen
Hi,
We are currently using the shortcode to display all results by ‘interview date’
shortcode: [wpdm_all_packages items_per_page="20" jstable=0 order_by="interview_date" order="DESC" cols="page_link,file_count,download_count|categories|interview_date|download_link" colheads="Title::450px|Categories|Event Date::50px|Download::50px"]
However, the dates are displaying as YYYYMMDD. At times the date will be duplicated or the date won’t be displayed at all (see attached screenshot).
Is there a way to alter the source php for this shortcode to correct this issue?
You can add the following CSS in Customize Additional CSS to hide the “Shared with me” button,
#sharedWithMe { display: none; }
Or just remove the button from template file /wpdm-file-hosting/tpls/wpdm-file-browser-container.php
( line 15 )
From the share window, you can get the package link which is a permanent URL ( Package Link tab ) and you can download package as many time as you want. Does it work for you?
https://www.evernote.com/l/AUeSutQc97JHNY6E9cplgEHQQWeb8PGYlewB/image.png
Add target="_blank"
on line 51 in /wpdm-file-hosting/tpls/wpdm-file-browser.php
to open the file in new tab.
https://www.evernote.com/l/AUdv1xggl5xLzYKdhEEXZChum4W6JE5co4QB/image.png
Hi,
You have to create a custom template file for all downloads table to keep the changes even after the plugin update. Here is how you can do that,
1 ) Copy the /download-manager/tpls/wpdm-all-downloads.php
file.
2 ) Place it in /active-theme/download-manager/
directory.
3 ) Replace echo $download_link;
with echo "<a target="_blank" href='".\WPDM\Package::getDownloadURL($data['ID'])."'>Download</a>";
in line no 355
That should open the links in new tab.
Thanks.
?wpdmframe
is NOT found in the line 40 of wpdm-file-hosting.php
file. Are we looking in the right file?
EDIT/UPDATE: I managed to solve the below-mentioned issue. Only the above is pending.
I performed this step:
From template file /wpdm-file-hosting/tpls/wpdm-file-browser-container.php remove the tabs you don’t need,
And the result is:
Only Package Link Option is shown. BUT, by default, the CONTENTS of ‘DIRECT DOWNLOAD’ tab is shown. The Title is not shown as I removed it’s code. But seems like there is some sort of default setting to show the contents of Direct Download tab.
Any workarounds?
Hi,
Your license key isn’t linked to any domain. So, it should work without any issue. You can save your license key in Downloads Settings License Tab. Please send admin login info in private reply, if you need help with the license verification process.
Thanks.
So, I am trying to create a file sharing site (NOT file HOSTING) with your plugin. So, far everything is fine.
I have created a dummy user to test the functioning. So, here is what happens:
When the user uploads a file and tries to share the package, they get four options:
1. Direct download
2. Package Link
3. Email
4. Embed
Question number 1: I want the user to be able to get only one option. The second one. [Package Link]. How to achieve that?
Question number 2: The ‘Package Link’ option displays the link as follows:
https://www.example.com/download/5bfd754616661/?wpdmframe
I want the link to NOT HAVE the “?wpdmframe” extension. For example, I want the link to be like this:
https://www.example.com/download/5bfd754616661/
Any help on this would be great! 🙂
I’ve activated Download Manager Pro on my local development copy of a site for testing purposes. This then needs to be pushed to a staging server for client approval before being pushed live.
Is there a way to manage Linked Sites so I can transition a license for local->staging->production workflow? It only needs to be active on a single instance at any given time.
Could you please send login info? When you set the price it usually shows the add to cart button not download link. So it seems a little bit confusing to me.
I’ve had a lot of my users complain that they only see “-1” instead of the package links. I have the packages set up in an accordion on a private page for each user. Within the package, the files are from a directory link rather than directly uploaded to the package page.
It seems that users are able to download some of the packages available to them, but then as they try to download others, all they see is “-1”.
This reply has been marked as private.
Hi,
You can add media files from edit package screen. Then use a link/page template with [file_list]
template tag to display the audio player. Use can use built-in page template “Single Column, Extended, PlayList “, this template shows the player using [file_list]
tag,
Demo of audio player https://demo.wpdownloadmanager.com/wpdmpro/download/audio-songs/
There is a built-in Video Player page template ( Video Player ) that utilizes the [video_player_1200]
template tag to show video player.
Demo of video player https://demo.wpdownloadmanager.com/wpdmpro/download/video-player-play-only/
Please send temporary wp-admin login info in private reply if you want me to set up a demo for you.
Thanks.
Following only step 1 is not enough. You have to assign the file using step 2. In the following screenshot, only user ‘TESTER’ are allowed to download the file.
https://www.evernote.com/l/AUcSu7NJXxVN979GHdeALzUvvlW24uDUicgB/image.png
I am referring to the Generate Temporary Download Link option,
https://www.evernote.com/l/AUfd8bhJft5O8q5yQC2nSeKLmSARMfHDyeQB/image.png
Actually, you can show a random package from a category using the Download Manager category shortcode. After checking the issue more closely I found that using the following structure you can implement it. Crucial parameters here are toolbar=0 item_per_page=1 order_by="rand" paging="false"
[wpdm_category id="flat-ui," cols="1" toolbar=0 desc=1 item_per_page=1 template="link-template-calltoaction1" order_by="rand" paging="false"]
If I do 1, then the link doesn’t work. The downloaded file becomes a txt file error telling me ‘you don’t have permission to download this file’.
Just to make sure we are on the same page. the link you mentioned for sharing is the one as shown on the attached?
On the secured page I am using ‘wpdm-archive category’ because I want the files to be listed by category. And it works well.
1 ) Use [premium_file_list]
template tag in your template to show file list with price
2 ) Replace [download_link]
with <a class="btn btn-primary" href="[download_url]" target="_blank">Download</a>
to open files in a new tab. Works with unlocked files only.
Replaced [download_link]
with <a class="wpdm-download-link btn btn-danger" target="_blank" href="[download_url]">Otwórz</a>
in your custom page template. Please do the same for the link template.
Added toolbar=0
in wpdm_packages
shortcode to hide the toolbar.