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>
I’ve recently taken over a site that is using WordPress Download Manager. I’m learning quickly and doing my best to understand what the previous person was doing but, coupled with my lack of php knowledge, I’ve hit a wall.
I’m essentially working within this code:
<?php $download_link = wpdm_download_url( get_the_ID() ); ?>
<div><p><a href="<?php echo $download_link; ?>" target="_blank">Download</a></p></div>
My issue that that, on the front-end when you click on the download button, it’s opening the link in a new page. I would love for the link to lead to the Template Page. The resulting URL’s include the ?wpdmdl=XXX&refresh=XXXXXXXXXXXXXXX. If you copy the URL and take that part out, it brings you to the Template Page.
Any help would be greatly appreciated. : )
Your theme or one of your plugin was conflicting with your custom link template. I created a new one New Template
with the same style but replaced the [download_link]
tag with [download_url]
. That fixed the issue.
Please use this new template in other packages where you encountered the same issue.
Hi,
You can include this in your theme CSS to change the download text size.
.wpdm-download-link {
font-size: 34px;
}
Thanks
This reply has been marked as private.
Hi,
I have defines the cols in the shortcode. Now, the download count will not appear.
[wpdm_all_packages items_per_page="10" jstable=1 order="DESC" cols="title,file_count|categories|update_date|download_link" colheads="Title|Categories|Update Date|Download::155px"]
Thanks
Thanks for the reply. Update php to 5.6 on the dev site and seems to have sorted activation issue. Main reason we’ve purchased pro is the customer doesn’t want the number of downloads showing on the download page: http://jenxdev.com/files/
Made a copy of the default link template, removed the [download_count] downloads bit, pointed the package to this link template but it’s still showing. How can I remove that and the number of files?
Hi,
Are you using email lock to send the download link?
In that case, You can edit the template Email Lock Notification
from Downloads Templates Email Templates page.
Thanks.
How do you edit the email address used when sending out a download link for a package and how to prevent the download package from opening unless the subscriber has used the link that was emailed
Hi,
You need to change the link name from package settings to download all
. Then it will show on the package. If you many packages then you can try default values addon to bulk change the link name for all packages.
Thanks
This reply has been marked as private.
This reply has been marked as private.
Hi,
You can select different link/page template for a different package from package setting. Or you can add template id with the shortcode where you are using the package, then the package settings link/page template get overridden. You can try Advanced TinyMCE button for easily insert the shortcode.
Thanks
This reply has been marked as private.
This reply has been marked as private.
Hi @scottkolbe,
Please create a new thread and post temporary login credential in private reply to check. Or try using direct download URL in the template <a class="wpdm-download-link" href="[download_url]">Download</a>
to see if the download works.
Thanks
This reply has been marked as private.
1 ) Not possible to link to your post category archive
2 ) Select Author
for Autor
Those are core WP roles, you shouldn’t delete those.
3 ) You can edit the Download Limit Exceeded
text from /wp-content/plugins/wpdm-daily-download/wpdm-daily-download.php
file ( line 180 ).
4 ) Building custom template is out of support scope. We can provide custom upgrade service in such cases.
5 ) You need User Review add-on to add rating feature.
6 ) To put ads between downloads, Requires code customization. Have to modify theme archive template for that.
single-wpdmpro.php is different then WPDM page/link templates. WPDM page/link templates contains WPDM template tags. single-wpdmpro.php should only contain PHP code.
If you have a working solution by editing default WPDM page template then you can just place this modified copy in /active-theme/download-manager/page-templates/
dir ( this is the correct way of adding new page template without cloning builtin templates )
Hi,
Sorry, Google API does not provide the direct link to download a large file without virus scan. This is a security feature of google so you do not inveterately become responsible for infecting another computer.
Thanks
Hi,
I have created test package which is working fine. https://h2020robox.eu/download/test/
You may re-export the downloads post type from Tools Export and then upload it in Tool Import in new domain site.
Or there might be subdomain link still exist in the database. So you may try the search and replace plugin to find out the link with subdomain and replace with the main domain.
Thanks
Dear Hasibul, thank you for replying. Strangely the pop-up’s are visible now, but an email is not sent, I checked several times. So I select to instandly download the file instead. If you are able to solve this email problem I would be grateful.
http://www.dutchdesignpressdesk.nl/edward-van-vliet-bn-m18/ (this is one example, but we use many download links like this)
Thank you, David
This reply has been marked as private.
Dear support
we use at several pages the Downloadlink-Button. As example there: https://www.l-mobile.com/referenz/ms-schramberg-gmbh-und-co-kg/ Iy Button is used, it should refresh the page new. But if Button is used Download starts and page is going to be refreshed, but ends within the loading icon and freeze. Page is not reloaded. You can test on several pages here also https://www.l-mobile.com/referenzen/
Downloadbutton within archiv pages in our downloadcenter works https://www.l-mobile.com/interaktiv/downloadcenter/ without issues. What could be the root of this behaviour.
First time it is loading, if you hit Button a second time, site is not reloading.
Best Regards Marc
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.