The current version of S3 add-on is not working.
I modified myself, and now works: the needed changes are:
function awsfiletree(){
jQuery(‘#awstree’).fileTree({
root: ‘awsbuckets’,
script: ‘admin.php?task=wpdm_aws_get_buckets’,
expandSpeed: 1000,
collapseSpeed: 1000,
multiFolder: false
}, function(file, id) {
var sfilename = file.split(‘/’);
var filename = sfilename[sfilename.length-1];
if(confirm(‘Add this file?’)){
console.log(“paso s3”);
var ID = id;
var html = jQuery(‘#wpdm-file-entry’).html();
var ext = file.split(‘.’);
ext = ext[ext.length-1];
var icon = “<?php echo WPDM_BASE_URL; ?>file-type-icons/48×48/”+ext+”.png”;
html = html.replace(/##filepath##/g, file);
html = html.replace(/##fileindex##/g, ID);
html = html.replace(/##preview##/g, icon);
jQuery(‘#currentfiles’).prepend(html);
}
//jQuery(‘#serverfiles’).append(‘<li><label><input checked=checked type=”checkbox” value=”‘+file+'” name=”imports[]” class=”role”> ‘+filename+'</label></li>’);
});
}
I suddenly can’t add new downloads. The icon is in my editor and it opens fine but when I click on the file tree it won’t open up the folder with the files to select. It will open to show any subfolders, but not files.
I’ve tried disabling all plugins and it doesn’t fix it.
Using Download Manager Pro Version 4.1.8
Wordpress Version 4.1
URL of site: http://thecinnamonhollow.com
Thank you,
Crystal Martin
I am having some issues with WPDM pro, they are the following:
here is the URL to the site: http://www.appapk.co
Make sure to tell me if you need more info or admin access
– The download button doesn’t appear
– i am unable to download a file if i put in the URL instead it downloads a file called “link-expired.txt” containing the following:
Download link is expired. Please get new download link ( __wpdmkey_ Array
(
[_edit_last] ► Array
(
[0] ► 1
)
[_edit_lock] ► Array
(
[0] ► 1419700924:1
)
[__wpdm_files] ► Array
(
[0] ► a:1:{i:0;s:0:"";}
)
[__wpdm_link_label] ► Array
(
[0] ► http://storage.evozi.com/apk/dl/14/11/19/com.facebook.groups.apk?h=vs_y3WyGBQa4poTF4-hN6w&t=1419704224
)
[__wpdm_password] ► Array
(
[0] ►
)
[__wpdm_quota] ► Array
(
[0] ►
)
[__wpdm_download_count] ► Array
(
[0] ► 244
)
[__wpdm_access] ► Array
(
[0] ► a:1:{i:0;s:5:"guest";}
)
[__wpdm_package_size] ► Array
(
[0] ► 14.54 MB
)
[__wpdm_view_count] ► Array
(
[0] ► 10
)
[__wpdm_package_dir] ► Array
(
[0] ►
)
[__wpdm_publish_date] ► Array
(
[0] ►
)
[__wpdm_expire_date] ► Array
(
[0] ►
)
[__wpdm_fileinfo] ► Array
(
[0] ► a:3:{s:30:"/var/www/wordpress/readme.html";a:2:{s:5:"title";s:11:"readme.html";s:8:"password";s:0:"";}i:0;a:1:{s:5:"title";s:0:"";}i:1;a:1:{s:8:"password";s:0:"";}}
)
[__wpdm_version] ► Array
(
[0] ► 5.41.0
)
[__wpdm_download_limit_per_user] ► Array
(
[0] ►
)
[__wpdm_template] ► Array
(
[0] ► link-template-default-ext.php
)
[__wpdm_page_template] ► Array
(
[0] ► page-template-default.php
)
[__wpdm_password_usage_limit] ► Array
(
[0] ►
)
[__wpdm_linkedin_message] ► Array
(
[0] ►
)
[__wpdm_linkedin_url] ► Array
(
[0] ►
)
[__wpdm_tweet_message] ► Array
(
[0] ►
)
[__wpdm_google_plus_1] ► Array
(
[0] ►
)
[__wpdm_facebook_like] ► Array
(
[0] ►
)
[__wpdm_email_lock_idl] ► Array
(
[0] ► 0
)
[__wpdm_icon] ► Array
(
[0] ► download-manager/file-type-icons/avi.png
)
[_thumbnail_id] ► Array
(
[0] ► 17
)
[__wpdm_individual_file_download] ► Array
(
[0] ► 1
)
[__wpdm_password_lock] ► Array
(
[0] ► 1
)
[__wpdm_masterkey] ► Array
(
[0] ► 549eeabc3756c
)
)
).
– I am unable to add tags to downloads
– Is it possible to remove the /download/ of the URL
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”);
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,
When selecting the browse tab, the window is blank with no options. The directory url is set in the settings. Even when I manually add the directory nothing happens. Please help.
thank you