Hi,
From WPDM 6.0 ( Coming Soon ), we shall add a new tag [pdf_thumb_url]
which will return the only pdf thumbnail URL instead of image tag HTML, and [pdf_name]
will return the pdf file name without .pdf
ext, so that you can customize the thumbnail and attributes as you want :).
Hi Scott K,
We are sorry to hear that you are facing an issue with the WPDM add-on for Elementor.
Will you please share the related page/file/package URL with us where the issue is occurring?
However, it will very cooperative if you record me reproducing your issue using a tool like this?
It helps me to quickly figure out the issue and squash it immediately.
If possible, please, provide us with your temporary wp-admin login details in a private reply for checking the issue.
Thank you
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);
});
Which add-on you are using, please share your related page URL, it will more clear after watching this
thanks
For document preview, the remote URL file is working fine here, https://wpdmpro.w3eden.com/download/wpdm-remote-url/, but dropbox may have some restriction directly putting the dropbox file URL, you can use wpdm dropbox add-on too
thanks
The .exe
extension is included in the allowed file type and working perfectly from our side. Please make sure you add the .exe
extension on the allowed file type and click Save Settings
. If you still face the problem give me your site URL and temporary admin login details in a private reply for checking the issue.
Thanks
Respected Sir both are Ok for me i can handle about design no problem, but the bootstrap3 performance is good than the 4. sir please solve my second request. I am requesting that for a long time. as you know my ads not working due to lazy download addon, so it will help me regarding my Adsense ads click. I am redirecting all of my downloadable links to the page and then the user can download them. i can manage redirecting anywhere, but i can’t do on wpdm_all package responsive table. please let do this for me when the user clicks on the download button in a responsive table, so the page URL shall open not the file download. i love that responsive table because of the great feature of search filter but i am not using it because of that thing, please sir it is a humble request. if my second problem will solve then I do not need the first problem solution. because i will use this responsive table
You can add remote files as a downloadable file from the insert URL option or for previewing you can add as the file URL now
thanks
Which plugins/add-ons you are using, please let me know, if possible, please share related URL and if possible, please, give your temporary wp-admin login details in a private reply for checking the issue
Thanks
When I paste in the URL into Insert URL it doesn’t show document preview and it’s not fetching the correct file type either.
It’s fetching .aspx instead of .xlsx
The OneDrive addon instructions are out of date, when I tried to follow it but cannot get the final redirect URL to put in the settings
You may use this one-drive add-on, https://www.wpdownloadmanager.com/download/wpdm-onedrive/ or you can use the Insert URL
as well for your purposes. It should work fine then
thanks
I just fetched the CRON URL, it showing the email sent successfully. Now, I’ve added your corn URL in https://www.easycron.com with 1 hour interval.
Hello,
We have a “home page” on our website that we only want visible to people who have created an account and are signed in. Currently, it is visible to anyone who goes onto the website.
How can we add a login page to appear before anyone can access the page itself?
Currently, the dashboard button works in this way, where if a user isn’t logged in, it prompts them to log into their account or register and this is how we want the home page to operate.
Login details: email: marketing@durable-uk.com – Password: 10Nimrod!
URL: http://www.durableportal.co.uk/
Hello,
please, can you check this add-on, https://www.wpdownloadmanager.com/download/wpdm-directory-add-on/, and the shortcodes demo URL, please, I hope it may help you
thanks
So on my order I found where the License key is and I clicked “remove” on the url. I was thinking it would certainly give me the option to add a new URL. But it didn’t. Now I can’t find anywhere to enter my new URL.
PLEASE HELP.
Hi Nayeem, I am working on this project with Arianna and am trying to make these changes. I understand what you’ve written, but as we’re using the WPDM Button Templates add-on I think the template file is located elsewhere – it’s probably coming from plugins/wpdm-button-templates/wpdm-button-templates.php
The trouble I have now is that the [download_link]
text is in code like this:
if(!wpdm_is_locked($id) && wpdm_user_has_access($id)){
return "<a href='".wpdm_download_url($package)."'>{$html}</a>";
} else
return FetchTemplate("[download_link]", $package);
I’m not sure how to replace or modify this without breaking the code – I’m not a PHP developer so I’m just using educated guesses here.
Hi,
Here is the issue, the old version of the lazy download add-on was using session instead of URL parameter to handle package ID and add-on settings, but due to various caching plugin, the session was not functioning properly, like when you trying to download a package, it was downloading another one from the old cache. So, we had to resolve the issue by excluding session use and adding encrypted URL parameters to transfer the data. But there is no error with the plugin.
For PRO WPDM, you shall find the changelog here, https://www.wpdownloadmanager.com/wordpress-download-manager-change-log/ and for the add-on changelog you shall find the corresponded add-on URL
thanks
Hi:
When i active email lock, in gmail & Thunderbird e-mails works well (as preview) but in outlook styles doesnt work.
You can see in this URL:
I have to put download button as image because button paddin it doesnt work (solved), but white container background wrapper it doesnt work well