Shaon – Word Docs don’t show a download link like PDF.
Suggestions to fix?
http://nmracanada.ca/who-we-are/member-documents/
need to edit code at wpdm-all-downloads.php, replace <?php echo DownloadLink($data, $style = 'simple-dl-link'); ?>
with <a href="<?php the_permalink(); ?>">Download Now</a>
you need to use [thumb] tag instead of [icon] tag in link template, more details http://www.wpdownloadmanager.com/doc/templates/creating-a-new-template/ , anyhow i’ve created one for you and images are showing now.
So, editing the link-template-default.php now let’s me at least enter the password, but when I click the link to download I’m presented the following error instead of the file downloading. If I remove the password from the file, I can download it fine.
Uncaught TypeError: undefined is not a function bootstrap.min.js?ver=4.0.1:11(anonymous function) bootstrap.min.js?ver=4.0.1:11(anonymous function) bootstrap.min.js?ver=4.0.1:11
2014-11-21 02:11:20.006Uncaught SyntaxError: Unexpected token < (index):259
2014-11-21 02:11:20.500
Uncaught TypeError: undefined is not a function media-models.min.js?ver=4.0.1:1(anonymous function) media-models.min.js?ver=4.0.1:1(anonymous function) media-models.min.js?ver=4.0.1:1
2014-11-21 02:11:20.634Uncaught TypeError: undefined is not a function thickbox.js?ver=3.1-20121105:23tb_init thickbox.js?ver=3.1-20121105:23(anonymous function) thickbox.js?ver=3.1-20121105:16b.extend.ready jquery.min.js?ver=4.0.1:29u jquery.min.js?ver=4.0.1:37
2014-11-21 02:11:27.913Resource interpreted as Document but transferred with MIME type application/json: “http://www.domain.com/”.
This reply has been marked as private.
ok now. it was a javascript conflict. so resolve it, I’ve edited download-manager/templates/link-template-default.php
, replace [downlaod_link]
tag with [download_link_extended]
I’m just looking for how to set this up so I can set download limits to one per person and, preferably send them out an individual link or token (even better) in an E-mail.
Thanks Shaon, but Im not familiar enough with the code to no what to edit, Id like to change the action of the “Download” button at the end of each row to work the same way as the link on the filename.
Thank you
Hi
I’m using the shortcode [wpdm-all-packages], – (which looks very nice) Id like to change the action of the “Download” button at the end of each row to work the same way as the link on the filename. I gather from other posts I will have to edit wpdm-all-downloads.php. But I cant find this file in WordPress. Where is the file and what do I have to edit to make the link work.
Many Thanks
Hi,
Just wondering what is the best way to change and add my own form validation messages ie. “Download link sent to your email!” etc.
Thanks
This reply has been marked as private.
use like this: [wpdm_tree download_link=1]
This reply has been marked as private.
Is it possible put the direct download link in tree view which allow people click and download instead go to the download detail page to down load.
Thank you very much.
After months of dealing with Shaon and his lack of support/understanding of what I am trying to accomplish he has stopped responding completely. It has been 29 days since he has stopped responding completely and since I have sent several emails to customize@wpdownloadmanager.com, shaon.cse99.cuet@gmail.com, and support@wpdownloadmanager.com with no response.
Anyone else around here that can provide me with some acceptable customer support?
My issues are that document previews for word documents are not displaying, PDF’s work. After making it clear in multiple emails that is was only Word Documents (docx and doc), Shaon responds weeks later with a link to one of my PDF’s saying that it’s working for him.
Furthermore, I have been trying to get my subscription notifications plugin to send emails to users when a document has been updated since July 21st. I have given Shaon what he wanted and he has yet to solve the issue. He keeps repeating the same thing, telling me to add a CRON job. Which I have done over and over and sent him a screenshot of it and also event gave him full access to my hosting control panel, FTP, and dashboard.
I am hoping someone else can help me here. If this continues I had already told Shaon I would be leaving a review on his free forums, explaining my experience with the horrible customer service.
My default template file code now:
<!– WPDM Link Template: Default Template –>
<div class=”link-btn [color]”>
<div class=”media”>
<div class=”pull-left”>[icon]</div>
<div class=”pull-left”>
<div style=”font-size: 8pt”>[download_link]
<br> Downloaded: [download_count] times<br> File size: [file_size]
</div>
</div>
</div>
</div>
<div style=”clear: both”></div>
Hi Shaon,
Thanks for looking into this.
When I export the PO file in HTML and open it with a text editor I get the following list of sentences to correct:
- Required, Select a link template to apply to all packages uder this category
- You don’t have permision to download this file
- …you can set the numaric value here, suppose…
- …Sortcode will be rendered
- …on selected page temaplte…
- When user is not alowed to download:
I uploaded a few screenshots to show that some sentences are not translated while they appear in the PO file. This is certainly due to some tiny errors in the code leading to the non-translation of the text.
PS: As I only use the free version, I could not check more than what I get with this version.
Jast make edit “download-manager/templates/link-template-default.php”
And remove the [title] code ))
yes, all those work, but you also need to update all add-ons, please download those again and update. If category are not linked, need to assign again manually, as all ids are changed, it was not possible to keep them linked.
license key unlocked, you should be able to reuse it now. I still see the order activate and linked with your account, you should be able to download from here:

Where is the download link?
Hi,
I need to add a shopping cart for files, a file cart.
After files have been added and submited a package should be created temporary and forced to download.
I’ve wrote the Script for the cart with JavaScript and PHP from the values of [file_list] with the following script:
function generateCart(data){
if( typeof data == “string” ){
data = JSON.parse(data);
}
if( data.noItm != “undefined” && data.noItm != undefined){
var mk = “<p>” + data.noItm + “</p>”;
return mk;
}
var items = [“
\n”];
for(i=0;i<data.length;i++){
obj = data[i];
var str = [
“\t<li class=’cart-item’>\n”,
“\t\t”, obj.name, “\n”,
“X“,
““].join(“”);
items.push(str);
}
items.push(“
\n”);
return items.join(“”);
}
$(document).ready(function(){
var TPL_DIR = “”;
var SCRIPT_URL = “download_cart.php”;
//Get table structure of wpdm-pro
var table = $(“.wpdm-filelist”);
var lth = table.children(“tbody”).children(“tr”).first().append(“<th>Aktionen</th>”);
var tableItems = table.children(“tbody”).children(“tr”).not(“:first-child”);
//Add ‘add to cart’ links
tableItems.children(“td:nth-child(2)”).children(“a”).each(function(){
var t = $(this);
var link = t.attr(“href”);
var name = t.parents(“tr”).children(“td”).first().text();
var args = link.slice(link.indexOf(“?”)+1);
args += “&name=” + name;
var markup = “<td class=’action’>In den Downloadkorb</td>”;
t.parents(“tr”).append(markup);
});
//Add download cart markup to sidebar
var mk = [‘<div id=”download-cart”>\n\t<p>Aktuell im Downloadkorb</p>’,
‘<div id=”cart-items”></div></div>’].join(“”);
$(“#sidebar”).html(mk);
/*** AJAX CALLS ***/
//Send AJAX request to get download cart on start
$.ajax({
//AJX REQUEST HERE
});
//Add items on click to cart ad update current cart.
$(“.action”).on(“click”, “a”, function(e){
//AJX REQUEST HERE
});
//Remove item from cart.
$(document).on(“click”, “.remove-itm”, function(e){
//AJX REQUEST HERE
});
}); //DOCUMENT READY END
In the cart (Session) the name, wpdml and ind arguments are saved.
So how can I now acces these files and pack them.
The packing would not be the problem as I can read the class.pack code but I dont know what do do with these
wpdml and ind arguments an how to acces the files through them.
Hi Shaon,
I have another question about the download manager – accordion add on. I’m trying to get a direct download link to the file vs the user having to clink on the link to the package and then have to click to download the file. It would help eliminate a step for the user. 🙂 Could you help?
Thank you!
Andrea
possible if you use email lock, in case of form lock, it will give the user download link immediately after form submit. anyhow I’ll add the option soon.