Hello,
is it possible to open an Ad Window after click on a Download Link.
For example for 10 sec.
Hope you understand it…
Regards
Morning Nayeem
Please could you kindly explain the correct protocol of adding packages using the CSV option.
IMPORTANT – this is urgent I have a client meeting soon!
The aim is to give Subscribers:
1. Package of a number of grouped files
2. The option to downlaod individual files within the package.
How should this be achieved – at what point are the ‘download files’ uploaded and linked to the packages – do we use the Bulk Import option or some other method?!
Step 1 – add data to CSV
Step 1 – upload CSV
Step 3 – ?
Step 4 – ?
Step 4 – ?
I have noticed that you checked the “email verification on registration” box and now the users who register if have the default role “test”. Apparently this is the only tricky solution.
However, the shotcode “test” role is not linked to the plan you created with the “wppromembershippro” plugin, I can tell because I can’t access the packages I assigned for the “test” role.
On the other hand, the main question is, is it not possible to link the registry that comes by default with the “download manager” plugin with the “free” plan registry that is created in “wppromembership”?
Website is under construction and behind password protection
On the Download Pckaage Details Page is the Author name that is linked to the Author page for that individual. I want all that author’s downloads displayed on that page with the same template as the main categories.
Hello,
Please check the Package Properties from here,
As per other Attributes, you shall find files object, here you can bind id with file name. Thus you will be able to attach/upload file thereby. I hope you have understood.
If you have kept just the file name you should keep the files in wp-content/uploads/download-manager-files
dir too. And for local files, you will not be able to attach files from the local PC drive directly, or you may please attach a live server file URL there. It will also help you upload files properly.
The JSON response will look like the following example:
{
"id": 6488,
"title": "The Alchemist",
"slug": "the-alchemist",
"description": "The Alchemist follows the journey of an Andalusian shepherd boy named Santiago.",
"excerpt": "The Alchemist is a novel by Brazilian author Paulo Coelho.",
"author": 1,
"status": "publish",
"parent": 0,
"tags": [
"novel",
"paulo-coelho"
],
"categories": [
16
],
"thumbnail": "https://example.com/wp-content/uploads/2019/01/the-alchemist.jpg",
"additional_previews": [
"https://example.com/wp-content/uploads/2019/03/the-alchemist-cover.jpg",
"https://example.com/wp-content/uploads/2019/03/the-alchemist-map.jpg"
],
"version": "3.0.0",
"link_label": "Download",
"quota": 0,
"download_limit_per_user": "100",
"view_count": 80,
"download_count": 14,
"package_size": "811.84 KB",
"access": [
"guest",
"subscriber",
"administrator"
],
"user_access": [
"admin"
],
"individual_file_download": "1",
"cache_zip": "-1",
"template": "link-template-calltoaction1",
"page_template": "page-template-1col-flat",
"files": {
"1": "The Alchemist.pdf"
},
"fileinfo": {
"1": {
"title": "The Alchemist",
"password": "",
"license_price": {
"statdard": "",
"extended": "",
"unlimited": ""
},
"price": ""
}
},
"package_dir": "",
"publish_date": "2019-04-01 12:00 am",
"expire_date": "2019-08-31 12:00 am",
"terms_lock": "1",
"terms_title": "Agree to terms",
"terms_conditions": "You can't redistribute without prior authorization.",
"terms_check_label": "Checkbox Label",
"password_lock": "1",
"password": "[123][456]",
"password_usage_limit": "2",
"linkedin_lock": "1",
"linkedin_message": "LinkedIn Share Lock message",
"linkedin_url": "https://www.wpdownloadmanager.com/",
"tweet_lock": "1",
"tweet_message": "Custom tweet message",
"twitterfollow_lock": "1",
"twitter_handle": "Shahriar",
"facebooklike_lock": "1",
"facebook_like": "",
"email_lock": "1",
"email_lock_title": "Subscribe To Download",
"email_lock_msg": "",
"email_lock_idl": "0",
"icon": "https://example.com/wp-content/plugins/download-manager/assets/file-type-icons/arrow.png",
"base_price": "12.00",
"sales_price": "10.00",
"sales_price_expire": "2019-08-31 12:00 am",
"pay_as_you_want": "0",
"license": {
"statdard": {
"active": "1"
},
"extended": {
"price": "22",
"active": "1"
},
"unlimited": {
"price": "32",
"active": "1"
}
},
"discount": {
"subscriber": "10",
"contributor": "20",
"author": "30",
"editor": "40",
"administrator": "50"
},
"enable_license": "1",
"enable_license_key": "1",
"free_downloads": [
"/Applications/XAMPP/wpdm/wp-content/uploads/2019/04/The-Alchemist-free-sample.pdf"
],
"meta_input":{
"meta_key" : "Hello"
}
}
here file attach should be like this,
"files": {
"1": "The Alchemist.pdf"
}
And for this default format, the file should be residing in wp-content/uploads/download-manager-files
, thus the package should create with fa file. Please let me know if you have other queries
Thanks
Tried to disable all other plugins and also tried a new theme. Still same issue. Still a Error 404 for all my WPDM enabled files.
Could it be that there is no wpdm-package folder on the server? I never had that on the old site and there it worked fine. File structure on the new server is exactly as it was on the old. Nothing has changed. So it just makes it more strange what is going on.
And with more than 1000 downloads that may need to be changed to a simple download link, you can see why I want to get this to work again. Simply because it’s a daunting task to change every single post with a new link.
Hello again
I think you are referring to something different!
I’m not referring to an individual template / image in this instance.
What we require is to link each individual ‘Package’ to its corresponding ‘download file’ (which is an image). You will see the file data names in the CSV.
When you are logged in to the account – please see:
https://nfpsoccer.co.uk/download/practice-skills/
This is what it should look like and do.
What seems to be happening when the uploaded ‘download image file’ is linked is:
https://nfpsoccer.co.uk/download/senior3v2attackingcombinationplay_test_copy-png/
Which, as you can see, reconfigures the ‘title’.
To reiterate, all we are expecting is:
1. Bulk Upload all the ‘download image files’
2. Upload the ‘Package’ CSV file
This then should link everything together – and the individual ‘Package’ should be available to Download by the ‘subscriber’.
I hope this helps explain?
Regards
Andrew B
Hello Andrew,
Can you please check the section from Downloads > Templates > Page Template
, you can use the featured_image
template tag and wrap it by title-link/download-link template tag, please check and let me know
Thank you and regards
NO! I don’t understand?
My understanding is that when the CSV is uploaded the ‘download image’ file name should ‘find’ the link to the actual image.
Are you saying that this is not possible and that every file needs to be ‘manually ‘ linked by going to the ‘Package’ (which has been uploaded via the CSV File) then uploading the ‘download image’ file individually?!
We have over 600 files!
Regards
Andrew B
Hello natalie,
Hope you are well. I have checked that, the link template you have used is not proper link-template ID, 57e4155cda924
, please check from Downloads > Templates > Link Templates
your available link template. I hope it will resolve then.
Thank you and regards
Hello Andrew,
Are you trying to link the download package from the description image src for the same package? please let me know.
Thank you and regards
OK – this is possibly getting confusing – sorry!
What we need to do in the first instance is ‘link’ the image files to the ‘Packages’.
As we know the CVS is OK to the point of adding ‘Packages’ however, the images to download are not linked (therefore, are ‘missing’).
The aim is to upload the CVS and that the related image fils would ‘automatically’ be linked and, therefore, the Packages would be ready to Download the file.
Hope that clarifies things for you?!
regards
Andrew B
Hello Callum,
Hope you are well. I have checked your example package link. After downloading the PDF file, it is normally opened from my side. I think it may have an issue with your Adobe Acrobat. please check.
Thank you and regards
Hi there,
Please add the below CSS based on your previous reply.
th#post_content,
th#acf_ProductInfo_Resolution {
width: 60px !important;
max-width: 60px !important;
min-width: 60px !important;
}
th#acf_ProductInfo_Artist,
th#acf_ProductInfo_Title {
width: 300px !important;
max-width: 300px !important;
min-width: 300px !important;
}
th#acf_ProductInfo_Version {
width: 400px !important;
max-width: 400px !important;
min-width: 400px !important;
}
th#acf_ProductInfo_BPM,
th#acf_ProductInfo_Year,
th#acf_ProductInfo_Credits {
width: 50px !important;
max-width: 50px !important;
min-width: 50px !important;
}
th#acf_ProductInfo_genre {
width: 130px !important;
max-width: 130px !important;
min-width: 130px !important;
}
th#download_link {
width: 100px !important;
max-width: 100px !important;
min-width: 100px !important;
}
Thanks.
Hi Nayeem – thanks for your reply.
I have made some progress – the CVS file seems to be working, with the exception of the following:
NB. https://imgbb.com/ doesn’t allow me to upload the CSV File?!
1. Most important: the ‘Download File’ whilst the file is identified on the CSV the problem is to ‘link’ the actual image file. I upload the image file as a ‘bulk import’ (files are in a Folder ‘Downloads Test _ CSV 16_3_22’ in the ‘Digital Assets Manager – download-manager-files’ – but this then alters the Title / Description to change to the file name (with no spaces)?
It also removes the Categories and other settings. It does add an ID.
Please see screenshots:-
a) Screenshot: Downloads Manager – All Packages – the first 4 are incorrect as they are using the image file name!
see: Screenshot: Downloads Manager – Title / Description not correct / https://nfpsoccer.co.uk/download/u12-ya_test_1a_copy-png/
b) Screenshot: Downloads Manager – Download OK
https://nfpsoccer.co.uk/download/practice-skills-x/
This show the Package which is fine except that the image file is not linked – so we get “Sorry! File not found!”
There is no ID? Categories are OK.
2. I would like the CSV to ‘remove’ the (Discussion) ‘Allow Comments’ option.
3. Can the CSV include a ‘Media’ image with the ‘Description’ – see screenshot: Downloads Manager – ‘Media’ Image
https://nfpsoccer.co.uk/download/session-1-skill-practice-game/
The page is called “Test Table 2”
I need every column with custom width.
post_content 60px
acf_ProductInfo_Artist 300px
acf_ProductInfo_Title 300px
acf_ProductInfo_Version 400px
acf_ProductInfo_BPM 50px
acf_ProductInfo_genre 130px
acf_ProductInfo_Year 50px
acf_ProductInfo_Resolution 60px
acf_ProductInfo_Credits 50px
download_link 100px (as wide as the download button)
Thank you.
Hello,
Hope you are well.
To enable to preview feature of pdf, you have to use the below addon with wpdm.
And then you can remove the download button by editing link template or page template so only preview will be available.
Thanks
In the file download-manager\src\Admin\Menu\Packages.php
Change this code:
if(file_exists(UPLOAD_DIR.$name) && get_option(‘__wpdm_overwrrite_file’,0)==1){
@unlink(UPLOAD_DIR.$name);
}
if(file_exists(UPLOAD_DIR.$name) && !isset($_REQUEST[“chunks”]))
$filename = time().’wpdm_’.$name;
else
$filename = $name;
/$filename = esc_html($filename);
if(get_option(‘__wpdm_sanitize_filename’, 0) == 1)
$filename = sanitize_file_name($filename);
else {
$filename = str_replace([“/”, “\\”], “_”, $filename);
}
To this:
if(get_option(‘__wpdm_sanitize_filename’, 0) == 1){
$filename = sanitize_file_name($name);
}else {
$filename = str_replace([“/”, “\\”], “_”, $name);
}
if(file_exists(UPLOAD_DIR.$filename) && get_option(‘__wpdm_overwrrite_file’,0)==1){
@unlink(UPLOAD_DIR.$filename);
}
if(file_exists(UPLOAD_DIR.$filename) && !isset($_REQUEST[“chunks”])){
$filename = time().’wpdm_’.$filename;
}
Hello Adams,
You can use custom link-template
within these pages for download packages and remove the download count and file size
section. Thus, It may help you. please check and let me know.
Thank you and regards
Hello Nayeem,
thank you. So it is good.
From my first Post is one thing open.
“– On my Linkpage the Downloads were smaller and smaller. Where can I change it.”
See the first Post please…
Hello Adams,
please try with the below code in your theme Customizer > Additional CSS
.post-22933 .wpdm-download-link.btn {
width: 115px;
margin: 0 auto;
display: flex;
justify-content: center;
}
.post-22937 .wpdm-download-link.btn {
width: 115px;
margin: 0 auto;
display: flex;
justify-content: center;
}
.post-22935 .wpdm-download-link.btn {
width: 115px;
margin: 0 auto;
display: flex;
justify-content: center;
}
I hope it will be worked properly then. please let me know
Thank you and regards
Hello,
For this you have to edit the link template you are using.
Please follow the below doc:
If still the problem persists, please also share related page url and admin access in a private reply.
Thanks