This reply has been marked as private.
Hi,
When you add a file in a new topic, and search for available download categories, the window appears without the categories.
Can someone help me?
Thank you.
[url=https://ibb.co/j46GbdW][img]https://i.ibb.co/12vK73d/2020-04-15-22-04-30-Greenshot.png[/img][/url]
[url=https://ibb.co/M6Q5XcW][img]https://i.ibb.co/q5VFZNX/2020-04-15-21-57-50-Greenshot.png[/img][/url]
I intend to purchase the “pro” version but may have the same problem.
Thank you.
Here, One line code has been $preview = wp_get_attachment_url($preview); updated. for that, it may be missing the earlier additional images. Earlier code settings maybe now deprecated.
This reply has been marked as private.
Hi Nayeem,
You’re trying the direct download link – which is not what users see.
Go to this page: http://www.nutemplates.com/invoices/blank-invoice-template/
You will see I have an “email lock” on Word & Excel download – they are not working.
When user clicks on them it adds #unlock in the URL and nothing happens.
Please note: there is no email lock on PDF download, which is working fine.
So, it is a problem with “email lock” functionality with download.
Please check again!
Okay now. However, here is the explanation:
get_post_meta(get_the_ID(),'__wpdm_additional_previews', true); returns media object ids for additional previews, so code should be like this:
$previews = get_post_meta(get_the_ID(),'__wpdm_additional_previews', true);
foreach($previews as $preview){
$preview = wp_get_attachment_url($preview);
//......
//.....
}
And to get the featured image, user wordpress’s native function the_post_thumbnail( 'full' );
But can I add an icon to that library? So I don’t have to find the right url every time?
This reply has been marked as private.
This reply has been marked as private.
Thank you – this is just what I was after:
add_action('wp_logout', 'wpdm_logout_redirect');
function wpdm_logout_redirect(){
wp_redirect(home_url(""));
exit();
}
This reply has been marked as private.
Hi there..
i guess i didn’t understand it right..
– created a dir named download-manager in my child theme dir
– copied the link template in it
– added [link_label] instead of [download_link]
but it doesn’t work..
<!– WPDM Link Template: Default Template –>
<div class=”link-template-default card mb-2″>
<div class=”card-body”>
<div class=”media”>
<div class=”mr-3 img-48″>[icon]</div>
<div class=”media-body”>
<h3 class=”package-title”>[page_link]</h3>
<div class=”text-muted text-small”><i class=”fas fa-copy”></i> [file_count] [txt=file(s)] <i class=”fas fa-hdd ml-3″></i> [file_size]</div>
</div>
<div class=”ml-3″>
[link_label]
</div>
</div>
</div>
</div>
Hi,
1. For Opening file instead of downloading you have an option in the Settings > Basic Settings under the File Download option Open In Browser.
2. For pdf viewer, you can follow this add on doc, https://www.wpdownloadmanager.com/download/wordpress-pdf-viewer/, use doc_preview for your pdf viewer.
3. For opening in a new window, you can follow this doc, https://www.wpdownloadmanager.com/doc/template-files/, by default, you are using link-template-default.php for link template and page-template-default.php for the page template. As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in tpls>page-templates for page template or tpls>link-templates for link template. And you have to replace [download_link] with <a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a> in related php file.
Thanks.
Hello,
We bought your plugin, and we’ve already activated it, the only thing that we are facing now is that we cannot change the icon from downloads packages, we’re using a page with this code:
[wpdm-all-packages items_per_page="30" categories="abrafac-arquivos" jstable=1 order_by="field_name" order="ASC/DESC" colheads="Title::640px|Categoria::150px|Atualização::150px|Arquivo::150px"]
And we’re using an add-on too: WPDM Extended Short-codes
We’ve tried to go inside the packages, one by one, and in the tab “Icons” on side of “Pricing & Discounts” to insert the media URL, that we’ve added on the wordpress media gallery.
Could you please help us?
This reply has been marked as private.
Hi there
I have added some files and am using the direct download link as per the following example:
http://myurl/download/documentname/?wpdmdl=3937&masterkey=5e5f8af91035c
This works great on the frontend and the file opens and downloads. However, the counter doesn’t count these as downloads. They all still say zero downloads.
Any ideas?
This reply has been marked as private.
Hi Nayeem,
The error you are referring to is fixed, this is actually unrelated to the issue from this topic.
This is an AJAX call to add a view count to the package.
This is also unrelated to this plugin as it is part of the Download Manager core plugin.
It’s adding index.php in the URL and this is forbidden by a lot of servers due to security. Also, adding this is not needed.
I’ve made a patch but can’t find Download Manager free plugin on GitHub, where can I provide the patch?
Back to topic.
I’ve searched more in depth and found an issue, probably Gravity Forms specific.
GravityForms handles form submissions in the WordPress wp hook. See plugin file gravityforms.php in root on line 176 (add_action( 'wp', array( 'GFForms', 'maybe_process_form' ), 9 );)
The problem is that Download Manager handles form lock in the WordPress init hook, which is run before the wp hook.
See file: /libs/class.Apply.php line 30 (add_action('init', array($this, 'wpdmIframe'));).
By the time WPDM_FormLock::gravityforms_html() is called the wp hook isn’t run yet so no form handling is done by GravityForms.
This is the reason the form keeps displaying without processing any submissions.
I’ve reproduced this issue over and over again on a completely fresh local installation with only Download Manager, WPDM Form Lock and Gravity Forms active on a default WordPress theme.
My guess is that you are testing locally with an outdated GravityForms version. Please make sure you are up to date.
Jory
-
This reply was modified 6 years, 9 months ago by
Jory Hogeveen. Reason: File references
Hello,
when I try to add a new package from front-end (in a page with [wpdm_frontend] shortcode), clicking “Continue” button after insert Title, I get a blank page with just this message:
{“result”:”_ap_wpdm”,”id”:1933}
url: http://www.mydomain.com/download/?adb_page=add-new –> PROBLEM
So I can’t add the package in front-end.
Instead, I can edit package in front-end without problem (url: http://www.mydomain.com/download/?adb_page=edit-package/1714/ –> OK).
Can you help? What is the problem?
Thank you
Flavia
Hello,
I want for the checkout process to be available to both guests and members.
I currently have the following settings enabled for the shopping cart:
– Enable Guest Checkout
– Enable Guest Download
I also have the following pages designated:
– Cart Page: Shopping Cart (sitename.org/cart)
– Orders Page: Purchases (sitename.org/purchases)
– Guest Order Page: Guest Purchases (sitename.org/guest-purchases)
I have “sitename.org/guest-purchases” configured in the “return url” settings for “Test Pay”.
When a guest checks out, the guest is taken to that guest purchase page and their email address and order ID are automatically populated, so it is quick and easy for them to download their purchase.
However, when a member checks out, they are redirected to that guest purchase page and their email address and order ID are BLANK.
Is there a way that the email address and order ID can be automatically populated on that guest purchase page for the members as well?
Thanks!
-
This topic was modified 6 years, 9 months ago by
Web Guy. Reason: Updated my question
Hi together,
we just installed the download manager plugin on a fresh wordpress instance with wpml translating running.
At the installation the frontend gives us an 500 – we could fix that by changing the .htaccess back to “RewriteBase /” & “RewriteRule ./index.php” instead of “RewriteBase /de/” & “RewriteRule ./de/index.php” as written by the download manager plugin.
But: Everytime when settings at the downlod manager plugin are saved at the backend, the .htaccess is overwritten with the same (/de). We assume that the wrong Base URL is used. How to fix this?
Additionally a question: Is the plugin compatible with WPML?
Best,
Michael
This reply has been marked as private.
For some reason the Add to Cart button is not adding anything to the shopping cart when the file is added to cart as a guest. It says “No item is added in the cart yet” (even though I have clicked the add to cart button). I will send sample URL as a private message.
Kindly help to solve these issues…
I have some general questions.
1: can we use “Cart” Icon on the navbar with number of products added in cart if yes so how can i add.
2: after click on “Save Cart” button on cart page where can we see our saved cart? Because when i save cart the saved cart url is generated like this “https://tworivertimes.info/cart/?savedcart=5e4360403bf04” but not to proceed this url.
Thanks it is working…
I have some general questions.
1: can we use “Cart” Icon on the navbar with number of products added in cart if yes so how can i add.
2: after click on “Save Cart” button on cart page where can we see our saved cart? Because when i save cart the saved cart url is generated like this “https://tworivertimes.info/cart/?savedcart=5e4360403bf04” but not to proceed this url.