Hi,
1. You can get the name and email with the login. In that case, you can disable the billing address from Downloads Settings Premium Package frontend settings. Otherwise you can remove the fields from wp-content\plugins\wpdm-premium-packages\templates\checkout-cart\checkout-billing-info.php
.
2. You need to use [wpdm-pp-cart]
shortcode on a page to show the cart on that page for the premium package.
3. You can use default WordPress logout URL in the menu items, you need to add a custom function to change the navigation for logged in and logged out users.
Thanks
Hi Susan,
First of all, I am really sorry that you had to deal with all these unexpected difficulties.
I see that you have modified the Prime theme. I checked the style.css file which was missing the theme info like version, name etc.
There is another old theme in wp.org with the same name. As the WPDM Prime version was missing WordPress was showing ‘Update Available’ message by confusing our theme with the wp.org theme. So, I think someone updated the theme by clicking the ‘update’. And as a result, our theme was removed and the wp.org Prime theme was installed. And all of these happened due to the missing Prime theme info.
Now, I have added the theme info again in the style.css file which removed the ‘update available’ notice from the Prime theme. So, the issue shouldn’t happen again.
Another thing is, you should use a child theme if you want to modify theme feature or look. That will keep your modification safe when there is a theme update available.
About the search issue, are you using a custom search from there? The form code should look like the following snippet,
<form action="<?php echo home_url('/'); ?>">
<div class="input-group search-inputs">
<input type="hidden" name="post_type" value="post" />
<input type="text" name="s" placeholder="<?php _e('Search...','the-next'); ?>" value="" class="form-control input-sm search">
<span class="input-group-btn">
<button type="submit" class="btn btn-sm"><i class="tn-search"></i></button>
</span>
</div>
</form>
Please use this code or just use the search as it comes with the prime theme ( e.g. https://themes.wpdownloadmanager.com/prime/download-category/free/ )
Please let me know if you have any other query.
Thanks.
Hi,
1. WPDM Block Hotlink add-on will help you to block hotlink to download URL from the external site. You must have to click on download button placed in your site to download packages. The external site can only place the link with your page.
You can try putting the download link on another domain site and see if it can be downloaded. Because the plugin will block the download.
2. If you want to show you packages on any page or homepage, you can try shortcodes like All packages list, here’s the demo. Or You can use category shortcode on the page, here is the demo.
Thanks
I am using a category short-code to display all the packages in a category as cards. The packages included in this category have titles that vary in length. Some of the titles are long enough that they are displayed on multiple lines (wrap text) and others are only one line. This causes the cards to not display properly in a 4 x 3 grid. I tried fixing the height of the [page_link], but then the size of the browser window can cause some of the titles to be hidden.
Is there a way to make the top of the cards in each row line up no matter how long the titles are?
Here is my catergory display short-code:
[wpdm_category id="infrastake" title="InfraStake" desc="These are InfraStake files" toolbar="1" order_by="title" order="asc" item_per_page="12" template="5a94448318a7e" cols=4 colspad=2 colsphone=1]
Here is my card template code:
<div class=”list-group wpdm-lt-card” style=”margin: 0 0 15px 0″>
<div class=”list-group-item”>
[thumb_500x250]
</div>
<div class=”list-group-item”>
<h4 style=”padding:0px;margin:0px;”>[page_link]</h4>
</div>
<div class=”list-group-item”>
<span class=”badge”>[file_size]</span> File Size
</div>
<div class=”list-group-item”>
[download_link]
</div>
</div>
Please send FTP info and package URL in private reply. I will add the code will let you know the details.
Please try adding a new package now. I have added flaturl=0
parameter to fix the 404 issue.
Hey everyone – just a heads up, I have a work around for this bug. In your template (for example: /wp-content/themes/yourtheme/download-manager/page-templates/product.php)
Edit your code by adding “download” as described here.
<a class="btn" href="[download_url]" download>DOWNLOAD FILE <i class="fa fa-download" ></i></a>
Hello,
thank you very much. Just another question. Is it correct that the buttons „Browse, URL, Lock-Options and Icons“ does not work at Frontpage-Uploader.
If I click on “Add download package“ at Frontpage-Uplader the file will be uploaded, but the field contents in the individual input fields will remain. Is this normal?
Thank you for your answer in advance
Chris
1 ) The limit should work now
2 ) Enabled the warning for restricted users
3 ) If you want to show ads in category archive then you have to edit the archive.php
template file. This is your theme template file.
4 ) Favorite packages are listed in user dashboard page. Add fav=1
parameter in dashboard shortcode to list favorite packages,
[wpdm_user_dashboard fav=1 flaturl=0 captcha=0]
The flaturl=1 option doesn’t work with our site, which is why we used the other option. We just get 404 errors when its set to 1.
We have the shortcode in a page template and the initial screen displays fine but both the add new and edit screen both go to 404’s.
Tried clearing cache and permalinks and also checked the correct page was assigned in the WPDM settings… Any ideas?
Thanks
1 ) Save only the image URL in the custom field. Then use this URL in your custom template to show the image via the img tag.
2 ) Sory, Not sure what you meant. If you want you can activate the download archive ( from the option in your screenshot 1 ).
Yes, you can show only the category. Add following code in your theme’s functions.php to add a custom template tag for categories with no link,
function wpdm_comma_separated_tax_terms($post_id){
$args = array('orderby' ► 'name', 'order' ► 'ASC', 'fields' ► 'all');
$terms = wp_get_post_terms( $post_id, 'wpdmcategory', $args );
$terms_array = array();
foreach ($terms as $term):
$terms_array[] = $term->name;
endforeach;
return implode(', ', $terms_array);
}
function wpdm_custom_tags($vars){
$vars['categories_nolink'] = wpdm_comma_separated_tax_terms($vars['ID']);
return $vars;
}
add_filter( 'wdm_before_fetch_template', 'wpdm_custom_tags', 10, 1 );
3 ) If you use the custom categories tag then there will be no link to category archive.
4 ) Great
5 ) Multiple downloads of the same file in single session is counted as one. The limit will apply only when the user tries to download another file.
6 ) Select ‘Subscriber’ in package settings to allow Abonnent
https://www.evernote.com/l/AUdCkW2j-_dGv7sYlVYXE_zobM6kUFQnXVcB/image.png
7 ) You can modify the message from /wpdm-daily-download/wpdm-daily-download.php
file. There is no filter yet to modfiy it from outside.
– Category archive page URLs look like https://www.site.com/downloads/package-category/
Here downloads
is category URL base. I meant before you can change this URL base if you want from Dashboard Settings Basic URL Structure Panel.
-You can set login required or permission denied message ( when the user can’t access the package ) from settings. But your link/page template should have [download_link]
tag for that.
https://www.evernote.com/l/AUdDu_AO60dA8K3RJab03IANkt0XK3o5e0UB/image.png
– You need Download Limit add-on to apply download limit based on user role
– Just update the package where you see the empty author. That should hide the author when it is empty.
This reply has been marked as private.
– Added new custom field Author and edited your custom link template dxf
to show that author when available
– added the background in custom template
– changed the button color
– access is not working because from your download manager category settings you are allowing all visitors to access the download
https://www.evernote.com/l/AUfFZKpfwA9L07cyF62_63MrWblmgS7fLpMB/image.png
– https://www.dxf-downloads.de/category/downloads/3d-drucker-stl/ is the archive for your post category 3D Drucker .stl
It is not download category archive. Download category archive url will look like this https://www.dxf-downloads.de/downloads/download-category
you can change the url slug downloads
from WPDM Basic settings.
Hi,
Some of your files only for premium users that means the “premium user” custom option is empty in other packages. So, you can utilize that in your custom link/page template.
When a field is empty you can hide that by adding a class in the template code. example: adding this [hide_empty:version]
in the wraping element/div of version will hide the element if version is empty.
Please send me the URL to suggest required CSS adjustments. Send temporary wp-admin login info in private reply if you want me to check the custom template code and make the premium field visible only when there is a value.
Thanks.
This reply has been marked as private.
This is the page template:
<style type="text/css">.more_previews_a{display: block;float: left;margin-right: 6px;}</style>
<div class="row">
<div class="col-md-12">
[description]
<br />
[file_list]
</div>
</div>
<div style="clear:both;" class="preview-trouble-options">Preview enabled by Google Docs. Trouble? <a href="[page_url]">Reload</a> the page or <a href="[download_url]">download</a> the file.</div>
<div class="row">
<div class="col-md-12">
[doc_preview]
</div>
</div>
Example page of our content:
http://nroc.org/what-we-offer/edready/
Scroll down to the “Case Studies” section (after videos).
Each of the thumbnails on this page link to whitepapers tracked by WPDM. They are just regular images with captions, linked to the packages, not using the WPDM link template.
An example of one existing package in working order, without any need for an email lock, this uses the WPDM Page template above:
http://nroc.org/resource/case-study-waipahu-high-school-early-college-stem-program/
What I want is to create a “download” button on a page, which then requires the user to provide email address before downloading. The PDF preview shown in the above example is not required, I just used it because it’s our standard template.
I’m fine with a direct download or email link……but the problem is that I can’t get the email input form to display anywhere in this process and I’m not sure what part of the sequence I’ve got wrong.
Thank you
Using a custom thumbnail image for the custom icon does not work. I tried adding a custom thumbnail image and the icon displayed is the unknown.svg icon, not the thumbnail image that was added. Does the custom icon URL work with jpg files?
In the line 484 line I added description tag
else
echo "<li class='file ext_$ext'><a href='" . wpdm_download_url(get_the_ID()) . "' rel='" . wpdm_download_url(get_the_ID()) . "'>" . get_the_title() . "</a>[description]</li>";
}
}
echo "</ul>";
die();
}
but clearly it is not supported; where should I add the description parameter?
This reply has been marked as private.
Please add flaturl=0
parameter in your dashboard shortcode. That will fix the 404 issue.
[wpdm_user_dashboard flaturl=0]
This reply has been marked as private.
Hi,
In that case please use flaturl value 1 with the shortcode [wpdm_frontend flaturl=1]
of the frontend. Now you will get URL like /front-end/add-new/
for adding the package. Please add this to the onedrive app as redirect URL. Hope this will solve the issue.
Thanks
This reply has been marked as private.
Hi there,
I’m using your front-end add-on and also the OneDrive add-on, but it doesn’t seem to work.
The config is all correct as it opens the window to our OneDrive account and allows you to select a file, but then it redirects back to the parent page after rather than the ‘?adb_page=add-new’.
I’m wondering if it’s to do with the redirect URL’s options in OneDrive as they don’t allow you to include query args in the URL so it’s redirecting back to the stripped URL.
If that is the case, does that mean the OneDrive add-on doesn’t work with the front-end editing?
Thanks
Will