The problem appears to be related to the “ID” attribute in the Database. When I added the file through the browser on the User interface, it assigned the following ID: 1565127651367
a:1:{i:1565127651367;s:133:”/nas/content/live/vbvprod/wp-content/uploads/TechnicalData/Electric Actuators/EOM Nema 4x/BVC EOM PB CONTROL CARD SETUP PROCEDURE.doc”;}
This corresponds with the ID at the end of the URL for direct access: https://valuebutterflyvalves.com?wpdmdl=4541&ind=1565127651367
The problem, however, is that there currently exist IDs from the development site database, all of which are 0.
How do I get around this issue?
Best,
Brennen
Please use following CSS to change button hover style,
.w3eden a.btn:hover, .w3eden a.btn:hover {
border: 1px solid #ef3d24 !important;
color: #ef3d24 !important;
border-radius: 0px;
background: transparent;
box-shadow: none;
}
Use custom link/page template to add icon. Replace the [download_link]
with the following code,
<a href="[download_url]" class="btn btn-primary"><i class="fas fa-download"></i>[link_label]</a>
This reply has been marked as private.
This reply has been marked as private.
Temporary user doesn’t have access to the plugin editor, so couldn’t add the patch there.
Please add the following code after line 777 in /download-manager/libs/class/Apply.php
. Single file download in a password locked package should work after that.
$_data['downloadurl'] .= '&ind='.$_POST['wpdmfile'];
You can use support@wpdownloadmanager.com for temp admin or use one of your address. Just send me the username, password and login URL.
In multisite setup, each subsite has it’s own /uploads/download-manager-files/
directory. Could you please check if you subsite /uploads/download-manager-files/
directory contains the attached file. Maybe the file is available only in main /uploads/download-manager-files/
Copying the files from the main /uploads/download-manager-files/
to subsite /uploads/download-manager-files/
will fix the issue for old packages.
And for new packages, the file will be uploaded the subsite directory automatically.
1 ) Free Download Button takes the label from “Link Label” option of package settings. As a premium package doesn’t have another download button ( Main download button is “add to cart” button ) unless you are using Membership add-on. In case of membership, both button shows the same label when the user has access to the package from a subscription.
The solution is using [free_download_url]
template tag in your custom link/page template instead of [free_download_btn]
. When using [free_download_url]
you can define the button label from your shortcode.
<a href="[free_download_url]" class="btn btn-lg btn-info btn-block">Download Free File</a>
2 ) It is not possible to hide the free download button for subscribers. You need a custom template tag for that. Use wdm_before_fetch_template
hook to create a custom template tag https://www.wpdownloadmanager.com/doc/filter-reference/wdm_before_fetch_template/
3 ) Individual download for free files: Not possible yet but noted for implementation.
Added the following code after line 777 in /download-manager/libs/class/Apply.php
. Now single file download in a password locked package is working again.
$_data['downloadurl'] .= '&ind='.$_POST['wpdmfile'];
You can add the border using CSS. Please send me the page URL to suggest custom CSS.
I think you are not understanding what I am asking. I will try to make it more clear, but it is taking a long time just to get a response from WPDM. It took six weeks for you to answer.
I am using a code similar to what you have shared. Mine looks like this:
[wpdm_category id="human-resources" operator="IN" title="" desc="" toolbar="0" order_by="title" order="asc" item_per_page="999" template="link-template-custom-category-page.php" cols=1 colspad=1 colsphone=1]
This is my custom template:
<!-- WPDM Link Template: Custom Category Page -->
<div class="wpdm-link-tpl c2a3" style="padding: 10px; background: #f5f5f5; border-radius: 4px; margin-bottom: 10px;">
<div class="media">
<div class="pull-left" align="left">
[icon]
</div>
<div class="pull-right" align="right">
<i style="margin: 2px 0 0 5px;" class="far fa-hdd color-green"></i> [file_size]
</div>
<div class="media-body">
<h3 class="media-heading" style="padding-top: 0px;border:0px;margin: 0 0 5px 0;font-size:12pt;"><a href="[download_url]">[title]</a> <span style="margin-left:30px;font-size:8pt;font-weight:300"><br> Categories: [categories]</span></h3>
</div>
</div>
</div>
Which produces an output like this:

If you click on the hyperlink “Human Resources” (highlighted in Screenshot 1), you are taken to an unformatted page that looks like this:

It shows the documents in the category “Human Resources”, but the list is unformatted. How can I change this? The page title is “Archives”, so I can’t change the page directly.
It is pretty simple, What you are trying to do. Just allow the role frontend uploader access from Downloads > Settings > Frontend Access The user from the allowed role will be able to add/edit their own file from the frontend. Create the frontend page using [wpdm_frontend flaturl=0]
shortcode.
Hi Thanks for response. I have placed the shortcode for my package and set the look of the download buttons on my website, this is working fine. The problem I have is when I enable the email lock and place the url to my website under my video on the you tube, or any different external website and people click in the link, they going to my website and try to download the package, but the download button is not working, the popup window where you need to enter your email address does not show at all, even if you reload the page.
I have tried on google chrome firefox and edge browser. Here is the link ( https://bit.ly/2G12ZnG ) and here is my you tube video where I placed the link (https://www.youtube.com/watch?v=tC6Q4gEZSTY&feature=youtu.be&ytbChannel=null ). If you click the * Download Game Graphics https://bit.ly/2G12ZnG under my you tube video the website will open, but the popup to insert email address will not.
Hope my explanation is clear. Thanks for your help.
I see you are using the Box View of the file list. The icon from the package setting doesn’t have any effect on this case. It is being set dynamically based on the file type. So when adding multiple files of different types, Box View shows file icon for each file.
The icon from package settings will only be applied to [icon]
template tag in your link/page template.
In your case, the solution is modifying the /download-manager/libs/class.FileList.php
file. Add the following code after line 348. Replace the icon URL text with actual URL.
if( $ext == 'pcb') $fticon = 'icon-url-here';
Another option is replacing the pcb.svg
with your own icon in wpdm-file-type-icons dir.
This reply has been marked as private.
In your shortcode add a logo
parameter and set your logo URL as the value. That will fix the first warning. Please check the following example,
[wpdm_reg_form logo="https://demo.wpdownloadmanager.com/wpdmpro/wp-content/uploads/sites/2/2019/05/download-manager-logo.png"]
Hi,
1. How do you add a text captcha to the registration form?
2. How to get Facebook APP ID and Facebook APP Secret?
3. Google API Credentials – how to do it?
4. How do you delete “Last name” from the registration form?
5. How add url ( xxx ) to: Settings > Quick Forms > Choices ??
Adding the rel="nofollow"
attribute in download link will instruct robots not to crawl the download link. Replace <a href="[download_url]">[title]</a>
with <a rel="nofollow" href="[download_url]">[title]</a>
in your link/page template.
I am using the form lock add on. The user must fill out a Gravity Form and provide their e-mail address, etc.
When the customer fills out the e-mail form to request the document, they receive an e-mail that says
Please click on following link to start download:
#locked
In the backend of WordPress, if I use the “Generate download link” tool, it works and I am able to download the document.
However if you use the “Email download link” icon, which sends an e-mail that says Please click on following link to start download: with a button, if you click on this button, you get a screen that says ERROR — Invalid download link —.
The URL is https://(domain, file/?wpdmdl=174&_wpdmkey=5d122b68db3ba&refresh=5d122b68dd44e1561471848
This happens with all download packages. The person does not have an email domain that we have blocked.
WPDM – Form Lock ( wpdm-form-lock.zip ) 1.6.2
WordPress Version 5.2.2
Download Manager by W3 Eden – 4.9.8
Version 7.3.5-1+ubuntu18.04.1+deb.sury.org+1
If you want to test the URL feature you can just add a valid URL of any sample file from the web.
In your shortcode add a logo
parameter and set your logo URL as the value. That will fix the first warning. Please check the following example,
[wpdm_reg_form logo="https://demo.wpdownloadmanager.com/wpdmpro/wp-content/uploads/sites/2/2019/05/download-manager-logo.png"]
Please send temporary wp-admin login info in private reply to check the issues related to ACF add-on.
In your shortcode add a logo
parameter and set your logo URL as the value. Please check the following example,
[wpdm_reg_form logo="https://demo.wpdownloadmanager.com/wpdmpro/wp-content/uploads/sites/2/2019/05/download-manager-logo.png"]
Premium Package overrides this URL. It is possible to redirect to the guest orders page by modifying the add-on code.
Please replace line 311 in /wpdmpp-2co/wpdmpp-2co.php
with the following code. You also have to set the guest order page in premium package settings.
header("location: ". wpdmpp_guest_order_page());
I have done this for my main client. I added the full url and reworded the link label to make it clear it wasn’t a download. I had no trouble as long as I included the http(s):// at the beginning. I haven’t done it lately though so maybe something has changed.
Hope that helps.
What my client would like is the ability to add links in the tree menu to outside sites. However, when I add a new item and select the link option, it thinks it’s on the local server so the url is messed up. Thanks!
This reply has been marked as private.