Default Values does work with frontend uploader. Just add the patch I sent in the previous reply or send login info in private reply. I will do it for you.
1 ) Requires customization. Could be done using user_register
hook https://codex.wordpress.org/Plugin_API/Action_Reference/user_register
2 ) Not possible but you can use the file manager to upload files in a directory of your choice and then attach the file using browse tab in Attach File meta box.
3 ) As I mentioned above this is in our to-do list to send an email link to set the password.
4 ) Noted for implementation.
5 ) Will be added this in next version
6 ) You can add custom fields in the sign-up form using Advanced Custom Fields add-on https://www.wpdownloadmanager.com/download/advanced-custom-fields/
7 ) Sorry, Not clear. Do you want to show user profile URLs for all users? It is possible with custom code.
8 ) File Manager is embedded with Frontend Uploader page as well as admin sub-menu in the Downloads menu.
It is working now. Only thing different was I used the file browser in the attach sidebar instead of adding the url to the file. I know the url was right before because I tested it.
I used a url because it is a 163mb video file. I don’t think I can upload that to WP (file size limits). So I added a url to the file instead. Like I said, I see it in the package. But still get the Sorry! Download is not available yet.
Hi,
User signup email doesn’t send the password. It adds only username and login URL.
You can create a page with this shortcode [wpdm_login_form logo="your_logo_url"]
for WPDM login form. Set this page in Downloads Settings Frontend Login Page option. User will be redirected to this page when they visit /wp-login.php
page.
It is not possible to modify my downloads table using shortcode parameters. But you have to create a custom template. Copy the /wpdm-custom-access-level/wpdm-my-downloads.php
file and place it in /active-theme/download-manager/wpdm-my-downloads.php
location and perform necessary changes.
Let me know if you have any further query.
Thanks.
I am server support. 🙂
I have ImageMagick 6 installed. This is the policy.xml file. I don’t see anything like what you suggested – no domain called “modules”. Am I in the wrong place? (This is in my /etc/ImageMagick-6 dir) Or do I need to add that line? (or update to v7?)
?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
<!ELEMENT policymap (policy)+>
<!ELEMENT policy (#PCDATA)>
<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED>
<!ATTLIST policy name CDATA #IMPLIED>
<!ATTLIST policy rights CDATA #IMPLIED>
<!ATTLIST policy pattern CDATA #IMPLIED>
<!ATTLIST policy value CDATA #IMPLIED>
]>
<policymap>
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
<!-- <policy domain="resource" name="memory" value="2GiB"/> -->
<!-- <policy domain="resource" name="map" value="4GiB"/> -->
<!-- <policy domain="resource" name="area" value="1GB"/> -->
<!-- <policy domain="resource" name="disk" value="16EB"/> -->
<!-- <policy domain="resource" name="file" value="768"/> -->
<!-- <policy domain="resource" name="thread" value="4"/> -->
<!-- <policy domain="resource" name="throttle" value="0"/> -->
<!-- <policy domain="resource" name="time" value="3600"/> -->
<!-- <policy domain="system" name="precision" value="6"/> -->
<policy domain="cache" name="shared-secret" value="passphrase"/>
<policy domain="coder" rights="none" pattern="EPHEMERAL" />
<policy domain="coder" rights="none" pattern="URL" />
<policy domain="coder" rights="none" pattern="HTTPS" />
<policy domain="coder" rights="none" pattern="MVG" />
<policy domain="coder" rights="none" pattern="MSL" />
<policy domain="coder" rights="none" pattern="TEXT" />
<policy domain="coder" rights="none" pattern="SHOW" />
<policy domain="coder" rights="none" pattern="WIN" />
<policy domain="coder" rights="none" pattern="PLT" />
<policy domain="path" rights="none" pattern="@*" />
<!-- disable ghostscript format types -->
<policy domain="coder" rights="none" pattern="PS" />
<policy domain="coder" rights="none" pattern="EPS" />
<policy domain="coder" rights="none" pattern="PDF" />
<policy domain="coder" rights="none" pattern="XPS" />
</policymap>
PDF Viewer doesn’t support remote file yet. But you can add support by performing the following code customization.
Replace return $html;
on line 30 in wpdm-pdf-viewer.php
file with the this code,
return "<iframe id='viewer-{$pid}' class='thumbnail' src='{$url}' style='width: 100%;height: 700px;margin-bottom: 15px'></iframe></iframe>";
Send temporary wp-admin login info in private reply if you need help with the customization.
Could you please explain a little more? Are you trying to add a file from URL? You can use the URL tab in attach file meta box to add a file from URL.
Thank you for that, works nicely and much more elegant than my solution, does it all in one place from the Control Panel and I can use this button only on the products I want it on. It was the [addtocart_url] piece I was missing before when I tried to add a custom button
Add the following message in Settings Basic Message Login Required Message option and set Hide Everything in Settings Basic Access Settings When user is not allowed to download:
Login is required to access this page
After setting these options, You will see a login link in packages where a user must log in to access the package.
Make sure to replace the basesiteurl
in the message with your site URL.
No need to use the CSS to hide price info. You can customize the whole thing using custom link template. To add a custom add to cart button utilize the [addtocart_url]
template tag as shown in the following example,
<a class="btn btn-info" href="[addtocart_url]">Buy Now</a>
You have to enable redirect to cart option if you want to redirect the user to the cart page after clicking the button. You will find this option at the bottom of the Premium Package settings page.
You can replace the title
in cols
with page_link
to link the details page with the title. But template customization is required to add the download link in the title.
You have to copy the /download-manager/tpls/wpdm-all-downloads.php
file and place it in the /active-theme/download-manager/
directory.
Then replace echo "<strong>".get_the_title()."</strong><br/>";
with
echo "<a href='".\WPDM\Package::getDownloadURL($data['ID'])."'><strong>".get_the_title()."</strong></a><br/>";
in the new template.
Thanks a lot Shariar for your help. I even manage to do further customizations from your advices. I still have some of the issues discussed not solved.
> Thanks for the custom link Template doc. I understand the global process but what I do not understand is how to apply the correct code to customize the template, as I do not see examples. For example you helped me to modify the Product title font size with <h2 style> but I did not manage to customize the Category name font size below even if I inspected the page code… So #wpdm-downloads * {font-size: 10pt;} is still controlling it.
> To protect the file class.Categories.php from updates, I would like to add it in my Child theme. I tried : Child Theme >download-manager > widgets> class.Categories.php or Child Theme >download-manager > class.Categories.php but it does not work, what is the correct path to customize the category widget file in Child Theme?
> You added [title] so now the title becomes a link, but the title is underlined on hover . I tried .w3eden a {
text-decoration: none !important;}
but this code also applies to the category name. How can I do to control only the title (product name) ?
> Concerning Page titles, I understand that when I create a page or a post my theme controls the title (besides it displays correctly in « page-title pad group » when I create a page or a post). But when I add a download using WPDM plugin, I believed that the plugin would be controlling the title.
Hope you will be able to help me with these issues,
best,
Audrey
Are you adding file URL instead of attaching a file? This should work without any issue. Please send me a package URL to test the download and temporary wp-admin login info in private reply if possible.
There is no shortcode available for that. Custom coding is required for that.
But you can add the login popup in download button when user login is required for download. Just add the following code in Downloads Settings Basic Message Login Required Message section.
[wpdm_login_form redirect="[this_url]"]
PDF Viewer is working now. Your server was not allowing the |
in URL. I have made some changes in PDF Viewer add-on to handle thing in a different way.
You can check the viewer here https://falconoilandgas.com/download/corporate-presentation-agm-october-2018/
If still having an issue then it is related to cache. Just clear all caches to fix.
Btw, please always create new tickets to report new issues. It helps us to track issues easily.
The div will be added automatically when using a template. You can generate a download URL from all downloads page then add that link with package title in this case. It will keep the link in the same line.
Found the issue. It was actually related to the Font Awesome version added in the viewer.
Please replace the following code from /wpdm-pdf-viewer/tpls/viewer.php
file,
<?php echo WPDM_BASE_URL; ?>assets/fontawesome/css/fontawesome.min.css
with https://use.fontawesome.com/releases/v5.1.0/css/all.css
https://www.evernote.com/l/AUeI8xe6zolLmrExtTFT70sElUyUrMcVwZ8B/image.png
We will add the patch in the next release of the PDF Viewer add-on.
Thanks.
Yes, you can add custom redirect URL in your registration form shortcode using redirect
parameter.
[wpdm_reg_form login=1 captcha=0 autologin="true" redirect="your_redirect_url"]
Hi,
You can utilize CSV import feature to create all your packages from CSV file. Amazon S3 files can be attached to the package using the URL. S3 file URLs should look something like this https://mybucket.s3.amazonaws.com/file.ext
In your CSV file write this URL under the files column. And separate the URLs using commas when there is more than one file.
Yes, you can add custom columns. This requires using Advanced Custom Fields and Advanced CSV Importer add-on.
Thanks.
Hi Rob,
For changing the “Download” label to “Visit” change the link label from the package settings.
For the hyperlink, add a remote url for the package.
Thank You!
The file *DID* exist in the amazon bucket and it does not have special characters. The issue is it works for a while and then the key expires. It means I have to go an check all my downloads and fix anything that has broken. I have fixed the issue by re-adding the file from the bucket in the system so I can’t send you to a package url at the moment. It’s a KEY expiry… not a document issue.