Bit of an odd one that I have never seen before – when updating v4.9.0 it deletes the whole plugin folder and downloads a new folder (called Prosper) with a theme in it!
You have created a custom template for wpdm-all-downloads.php which is the template file for all downloads shortcode. But the file is empty in /your-child-theme/download-manager/wpdm-all-downloads.php directory which basically removes all functionalities of all packages shortcode. Deleting this custom template should fix the issue.
Hi. I have just enabled the download archive and I am still not able to get it to show all products on the same page – https://ps-cardiagnostics.com/all-downloads/. Please help. Thanks
You have to customize wpdm-all-downloads.php template file to change the download button behavior. Create a custom template file for all downloads table to keep the changes even after the plugin update. Here is how you can do that,
1 ) Copy the /download-manager/tpls/wpdm-all-downloads.php file.
2 ) Place it in /active-theme/download-manager/ directory.
3 ) Replace echo $download_link; with echo "<a target='_blank' href='".\WPDM\Package::getDownloadURL($data['ID'])."'>Download</a>"; in line no 355
When I use [wpdm_category] it generates a login box (.w3eden div with a #wpdmlogin and a login form) in the header for every download on the page. It works fine while logged in, but visitors see the login boxes and it breaks styling on the page.
I’ve tried other shortcodes such as [wpdm_all_packages] for the same categories and these display fine, the issue only happens with [wpdm_category].
I need to use [wpdm_category] because I need the “AND” operator to display only downloads that fall within 2 categories.
All packages are Allow Access: All Visitors, I’ve even set each category to “All Visitors” and still can’t get the login box to go away.
Here is a short code that will show similar posts with thumbnails. Can you let me know what I have to update to include Downloads / All packages in the results too. Or if there is a better way to show similar downloads please let me know.
<?php $orig_post = $post;
global $post;
$tags = wp_get_post_tags($post->ID);
if ($tags) {
$tag_ids = array();
foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
$args=array(
‘tag__in’ ► $tag_ids,
‘post__not_in’ ► array($post->ID),
‘posts_per_page’►5, // Number of related posts that will be shown.
‘caller_get_posts’►1
);
$my_query = new wp_query( $args );
if( $my_query->have_posts() ) {
I’m trying to display all of the downloads available and also remove the “Display ## downloads per page” located at the top left and also remove “Previous 1 Next” at the bottom right of the page.
Category archive template is controlled by your theme. But you can partially control it from Downloads Settings Frontend Access Category Page Options. Chech the avilable option there.
Another option is using a custom taxonomy archive template in your theme. The file name is taxonomy-wpdmcategory.php and you have to place it in your active theme directory. Implementing this requires PHP coding experiences.
The code counts the number of packages and downloads correctly, but it sticks results to the top of the article, and not where the shortcode really is.
I also get “Updating failed” error every time I try saving the page. It seems the page actually does get saved though despite the error.
It generates this kind of HTML: <a class="wpdm-download-link btn btn-primary " rel="nofollow" href="#" onclick="location.href='https://mysite.com/?wpdmdl=5286&refresh=5c6d13a29aef41550652322';return false;"><span>Download</span></a>
In the <a> tag, I would like to add a data-url attribute that will contain the href to the file. How can I do that? How can I get only the url, not the full <a> tag ?
In fact, I need that because I want to create a “Download selected files” button, that will launch multiple downloads at once, depending on selected packages. (not all-in-one ZIP, but trigger each download separately). How would you do that?
Could you please check the PHP error log or send me the log file. It should indicate where the issue is. Downloads are actually logged as I see the count is increasing.
So, You are using the default category archive template provided by your theme to display downloads. If you want to modify the ordering in this case, you have to customize the category archive template of your theme.
You can’t yet import the exported CSV to transfer your downloads. Because some column names don’t match the import file structure and some values are still exported in a serialized state. We are working on making this more useful. Currently, you have to change the column names and remove some CSV columns to make the exported CSV import ready.
For now, your best option is using the WordPress default exporter/importer to transfer the downloads. That works fine when you are transferring all your downloads.
We have just migrated multiple WordPress sites which use the Download Manager plugin to a new server with php 7.1.26 installed (the old server used 5.3). Ever since, the download buttons on WPDM package pages do not work – they do change the url of the window, but nothing downloads. However, if you remove the “WPDM Package URL Base” and the package name from the URL in the address bar, you not only get the download, but also the BEHAVIOUR configured in Download Manager settings (eg. if it is configured to try and open the file in browser, it does so, otherwise it simply downloads).
Can you please advise why this has happened, and is there a simple config change we can make to correct it?
I have installed the Form Lock addon on your site. Using this add-on you can lock a package behind a form. Just enable the Form Lock and select the form when creating or editing the package. Please check the screenshot below.
Summary
The site runs “Download Manager” 4.7.3 with FacetWP 3.3.1. The site has more than 140 downloads. The “downloads” archive page display well all my downloads.
After updating “Download Manager” 4.7.3 to 4.9.2, I have a big issue : the “downloads” archive page displays nothing under the header, where the downloads should appear (no footer neither). I opened my PHP file to manually limit the number of downloads in the query to 90. Than everything was working fine again. If I change that number to 100, the issue is back.
So I guess that the way things are done in 4.9.2 are more ressources “greedy” ? What server configurations do you recommend ? Do you know what can cause that between 4.7.3 and 4.9.2 ?
There is JS error in console. Please send temporary admin login info in private reply. The issue may be related to the error. Although the publish date works fine in my setup. Did you customize the all downloads table template? There is no built-in support for “download_link_blank”.
All new uploads to my site have recently encountered this error:
<b>Notice</b>: A non well formed numeric value encountered in <b>/public_html/people/wp-content/plugins/download-manager/libs/class.DownloadStats.php</b> on line <b>35</b><br />
Line 35 of the mentioned file:
$udl[“”.$index] = isset( $udl[“”.$index] ) && is_int( $udl[“”.$index] ) ? $udl[“”.$index] + 1 : 1;
This has meant that all PDF previews do not work. I can still download the document, .docx previews do not work either.
The attached screenshot is what the preview is rendering the PDF as with the error at the top.
line 35 mentioned above was double checked with a previous post to ensure it was the same as required. I updated the plugin as well to see if that would fix it and it has not.
Need some help with this asap. Thanks.
Author
Search Results
Viewing 25 results - 2,401 through 2,425 (of 4,476 total)