please edit the file from tpls/page-templates or tpls/link-templates, you can also make backup files following this doc, https://www.wpdownloadmanager.com/doc/template-files/
thanks
Yes, I reviewed that webpage before posting.
How can I “Download and install the add-on” which is “now included with WordPress Download Manager Pro or upper licenses” when the only visible link is to the Cart?
The edit are on line 59, 87 and 199
const { __, _x, _n, sprintf } = wp.i18n;
function wpdmapPagination(current, last) {
var delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
for (let i = 1; i <= last; i++) {
if (i === 1 || i === last || i >= left && i < right) {
range.push(i);
}
}
for (let i of range) {
if (l) {
if (i - l === 2) {
rangeWithDots.push(l + 1);
} else if (i - l !== 1) {
rangeWithDots.push('...');
}
}
rangeWithDots.push(i);
l = i;
}
var html = "<ul class='pagination wpdm-pagination pagination-centered text-center'>";
console.log(current);
if(current > 1)
html += "<li><a href='#' data-page='"+(current-1)+"' class='async_page page-numbers'><i style=\"display: inline-block;width: 8px;height: 8px;border-right: 1px solid;border-top: 1px solid;transform: rotate(-135deg);margin-left: -2px;margin-top: 2px;\"></i></a></li>"
for(i = 0; i < rangeWithDots.length; i++){
var cclass = parseInt(rangeWithDots[i]) === current ? 'current-page' : '';
if(rangeWithDots[i] !== '...')
html += "<li><a href='#' data-page='"+rangeWithDots[i]+"' class='async_page page-numbers "+cclass+"'>"+rangeWithDots[i]+"</a></li>";
else
html += "<li><a class='page-numbers dot'>"+rangeWithDots[i]+"</a></li>";
}
if(current < last)
html += "<li><a href='#' data-page='"+(current+1)+"' class='async_page page-numbers'><i style=\"display: inline-block;width: 8px;height: 8px;border-right: 1px solid;border-top: 1px solid;transform: rotate(45deg);margin-left: -2px;margin-top: -2px;\"></i></a></li>"
html += "</ul>";
return "<div class='text-center'>"+html+"</div>";
}
jQuery(function ($) {
function htmlEncode(value) {
return $('<div/>').text(value).html();
}
var wpdmac_category = '', wpdmac_tags = '';
function getDownloads(cp, container) {
WPDM.blockUI('#wpdm-archive-page');
var scode_params = typeof wpdmap_params !== 'undefined' ? wpdmap_params : '';
jQuery('#wpdm-downloads').prepend('<div class="wpdm-loading">'+wpdm_asset.spinner+' '+__('Chargement', 'wpdm-archive-pae')+'...</div>');
jQuery.post(location.href, {
action: 'get_downloads',
cp: cp,
search: jQuery('#src').val(),
category: wpdmac_category,
tags: wpdmac_tags,
orderby: jQuery('#order_by').val(),
order: jQuery('#order').val(),
sc_params: scode_params
}, function (response) {
if(typeof container === 'undefined') container = '#wpdm-downloads';
jQuery(container).html(response.html+wpdmapPagination(cp, response.last));
WPDM.unblockUI('#wpdm-archive-page');
});
}
function setParentCat(cat_id) {
jQuery.ajax({
type: "post",
dataType: "json",
url: wpdm_url.ajax,
data: {action: "wpdm_change_cat_parent", cat_id: cat_id},
success: function (response) {
console.log(response);
if (response.type === "success") {
if (jQuery('#src').val() !== '')
jQuery('#inp').html(__('Résultat de recherche pour', 'wpdm-archive-pae')+' <b>' + htmlEncode(jQuery('#src').val()) + '</b> '+__('in category', 'wpdm-archive-pae')+' <b>' + response.parent + '</b>');
else
jQuery('#inp').html(response.parent);
}
}
});
}
function selectedCats() {
var _items = [];
$('#wpdmcat-tree input[type=checkbox]').each(function (index, item) {
if($(this).is(":checked")) _items.push($(this).val());
});
return _items;
}
function selectedTags() {
var _items = [];
$('#wpdm-tags input[type=checkbox]').each(function (index, item) {
if($(this).is(":checked")) _items.push($(this).val());
});
return _items;
}
var $body = $('body');
/*$body.on('click', '.pagination a', function (e) {
e.preventDefault();
$('#wpdm-downloads').prepend('<div class="wpdm-loading">'+wpdm_asset.spinner+' '+__('Loading', 'wpdm-archive-pae')+'...</div>').load(this.href);
});*/
$('.wpdm-cat-link').click(function (e) {
e.preventDefault();
$('.wpdm-cat-link').removeClass('active');
$(this).addClass('active');
var cat_id = $(this).attr('rel');
wpdmac_category = cat_id;
setParentCat(cat_id);
getDownloads(1);
});
$('#wpdm-cats-compact').on('change', function (e) {
var cat_id = $(this).val();
if (cat_id == -1) cat_id = 0;
$('#initc').val(cat_id);
var sfparams = $('#srcp').serialize()
wpdmac_category = cat_id;
setParentCat(cat_id);
getDownloads(1);
});
$('#wpdmcat-tree input[type=checkbox], #wpdm-tags input[type=checkbox]').on('change', function (e) {
wpdmac_category = selectedCats();
wpdmac_tags = selectedTags();
$('#initc').val(wpdmac_category);
var sfparams = $('#srcp').serialize()
getDownloads(1);
});
$body.on('click', '.async_page', function (e){
e.preventDefault();
e.stopPropagation();
getDownloads($(this).data('page'));
return false;
});
$body.on('click', '.wpdm-cat-link2', function (e) {
e.preventDefault();
$('.wpdm-cat-link').removeClass('active');
var new_rel = $(this).attr('test_rel');
if (new_rel !== 'undefined') {
$('a[rel=' + new_rel + ']').addClass('active');
}
var cat_id = jQuery(this).attr('rel');
wpdmac_category = cat_id;
setParentCat(cat_id);
getDownloads(1);
});
$body.on('click', '.w3eden a.btn-clps[data-toggle="collapse"]', function () {
$(this).children('.fa').toggleClass('fa-chevron-down');
$(this).children('.fa').toggleClass('fa-chevron-up');
$(this).toggleClass('active');
});
$body.on('click', '#reset-filter', function (e) {
e.preventDefault();
$('#wpdmcat-tree input[type=checkbox], #wpdm-tags input[type=checkbox]').removeAttr('checked');
$('#src').val('');
$('#srcp').resetForm();
wpdmac_category = '';
wpdmac_tags = '';
getDownloads(1);
});
$('#order_by, #order').on('change', function () {
getDownloads(1);
});
$('#srcpss').submit(function (e) {
e.preventDefault();
getDownloads(1);
});
$('#srcp').submit(function (e) {
e.preventDefault();
$('.wpdm-cat-link').removeClass('active');
$('#inp').html(__('Résultat de recherche pour', 'wpdm-archive-pae')+' <b>' + htmlEncode($('#src').val()) + '</b>');
getDownloads(1);
});
$('#wpdm-archive-page-home').click(function (e) {
e.preventDefault();
$('.wpdm-cat-link').removeClass('active');
$('#inp').html(__('All Downloads', 'wpdm-archive-pae'));
wpdmac_category = '';
$('#src').val('');
getDownloads(1);
});
$body.on("keyup", "#cat_src", function() {
var value = $(this).val().toLowerCase();
$("#wpdmcat-tree li").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
$body.on("keyup", "#tag_src", function() {
var value = $(this).val().toLowerCase();
$("#wpdm-tags .wpdm-tag").filter(function() {
console.log($(this).text());
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
if($('#wpdm-downloads').length > 0)
getDownloads(1);
});
Hi MASUCCI F,
We have released an update(V 3.1.27) that will solve your issue. Please update and then let us know that your reported issue has been solved or not.
You can check the below link as well.
Thanks
Can you please check this add-on, https://www.wpdownloadmanager.com/download/linked-products/, please let me know if it helps you
thanks
Hi,
if you are using bootstarp 4 from downloads > settings > user interface
please add the below linedownloads/tpls/wpdm-all-downloads.php file in line number 295
$data['download_link'] = "<a target='_blank' class='btn btn-primary' href='".get_permalink($data['ID'])."'>"."Download"."</a>";
commenting out this line
// $data['download_link'] = \WPDM\Package::downloadLink($data['ID'], 0, array('template_type' ► 'link'));
I hope it should open a new tab for the related packages
thanks
Contact form 7 with the download_link_extended tag is working fine from our side, if you are still facing problem with contact form 7, can you please check this plugin too, https://wordpress.org/plugins/liveforms/, it has a more extended feature
thanks
Nayeem. The file from the link you gave has the file name ‘download-manager-5.3.8’ which is the filename of the previous version. If the file is version 5.3.9 then please rename the file to 5.3.9 and put an end to this confusion.
Hello Stefano,
Thank you for contacting the support centre.
We are sorry to say that currently, we are not providing any ERP integration/support. But you can contact our custom upgrade team if you want to implement an integration add-on by following the below link.
With Regards
Hi,
Nothing has changed – the plugins were all still active before and it worked.
Only deactivating the Form Lock plugin did anything…
There is no download button / link when the form is filled in, surely that is a Form lock issue?
Can you look at this again please asap?
Thanks
That option doesn’t work, can you please show how to get a file link from Dropbox and paste in the ‘Insert URL’ field for a package using Single Column Document Preview page template?
That is the part I’m stuck on because Dropbox is still forcing the download since their preview mode cannot be embedded in an iFrame
Are you trying to open a new tab, for this shortcode download package,
[wpdm_all_packages items_per_page=15 jstable=1 thumb=1 categories="dump-files" order_by="publish_date" order="DESC" cols="title,download_count,package_size|publish_date|download_link" colheads="File Name|Update Date|Download::155px"]
please let me know
thanks
Hello there.
I am creating downloads that are for specific users in my website. I am restricting access to them via the Advanced Access Control add-on.
Here is the issue: the download itself (the title, the description, the excerpt) might have confidential information, so I need to make sure other people can’t download the file (already via de Advanced Access Control add-on) but I also need that they can’t access the download page even if they know the direct link to it.
Now, people won’t access their private downloads via the page, only through the link, so I was thinking on creating a special download page template that ONLY shows a block alert.
Is this possible? Is there any other way?
I do have a subscription membership plugin that can prevent people from seeing specified pages, but this works for groups of people, not individuals.
Respected Sir Check this also plz page should open in a new tab when users click on that download button in the table. Example URL for Problem 3
also Sir I am already using [wpdm_all_packages items_per_page=15 jstable=1 thumb=1 categories="dump-files" order_by="publish_date" order="DESC" cols="title,download_count,package_size|publish_date|download_link" colheads="File Name|Update Date|Download::155px"] but the problem is same, I mean the after changing the page the table should scroll to the top, but it is not working. but sir the most important problem is the problem one, please solve this, because table not working on big size category. i mean the category with much files. sir please check the above links I sent to you.
Hi, thanks for your video.
I’m afraid it seems my issue is not being clearly communicated.
As mentioned previously, the formatting of the link template seems incorrect in bootstrap 4.
I’ve made a new screenshot with labeled lines and arrows. Lefthand side is bootstrap 4, right is bootstrap 3.
– Red highlighting shows the difference in text size, bootstrap 4 (leftside) becomes too big
– black arrows show the increase in padding inside the box, too much white space in bootstrap 4 (left side)
– blue arrows show the download button has shrunk, and also too much padding in bootstrap 4 (leftside)
I would like it to look like the right side, bootstrap 3
Your video link also shows the same issue, looking like the incorrect leftside of my screenshot
Hi,
If you are trying package link over download text for this shortcode wpdm_all_packages, I have made a custom file that will render you download text for package link, please copy this Pastebin URL code,
then try to paste download-manager > tpls/tpls3 > wpdm-all-downloads.php file, if you are using bootstrap4 then tpls, bootstrap3 then tpls3, for making backup the file, please follow this doc, https://www.wpdownloadmanager.com/doc/template-files/
please let me know, if it works from your side
thanks
Yes Sir Nayeem I know it a bit hard, because it is a PHP task, if it was HTML I can do HTML but I can’t do PHP. sir when user click on download button so package page should open instead of file download. in shot in wpdm_all_packages table, I want the action of [Page_link] instead of [download_link] Sir…. Sir watch the video if you did not get my point plz video link
Do you want to redirect the wpdm_all_packages download link to another page, I think it needs editing the core php file, please let me know
thanks
Sir nayeem plz do solve the second problem for me at least. so it solves both problems, the ads problem also the package size problem. i love to use that responsive table but I am not using it because of that one feature I need, to redirect the link to page link not download the file directly