I’ve similar issue to this…but its not category ….its a page so what files does our theme use for download manager page template?
Is it single.php or loop.php?
Are you looking for single page or details page?
@sai-parthiv, Please give me your URL to check.
@nayeem_riddhi I want page template like this https://demo.wpdownloadmanager.com/wpdmpro/download/premium-images-demo-product/ … which template does wordpress theme uses to display page template?
@admin I’m testing on localhost
The template name is “Premium Package”.
However, there you need it apply it in a full width page to look exactly same.
You also may implement that template with custom post type template single-wpdmpro.php
Doc: https://www.wpdownloadmanager.com/doc/template-files/
@orion I have renamed it to exactly single-wpdmpro.php (which contains modified single.php code).. however the theme is still using single.php code instead of single-wpdmpro.php. I guess its not recognizing single-wpdmpro.php file or another file is taking priority.
May you please zip your theme and send me to check, as your site is on localhost and I can’t check it online.
@orion I’ve sort of fixed that issue however I have another issue.. I want tags created in download manager admin menu to be available in upload form just like wpdm categories but right now users can create their own tags…is there anyway to prevent users from adding their own tags and only select from available tags list?
That will require customization of file tpls/wpdm-add-new-file-front.php
, around line# 156 ~ 190
@orion The uploader shows ‘Update Package’ even if i pressed create new package… it should show update package only for packages being updated.
Edit: When I try to remove added tags, i am unable to do so and when i check console, it shows this
?adb_page=edit-package/92/:1 Uncaught TypeError: $ is not a function
at HTMLElement.onclick
Sorry, that is our fault, please find:
" <i class=\"fa fa-times-circle\" onclick=\"$('#tag_" + tid + "').remove();\"></i>\n" +
and replace it with:
" <i class=\"fa fa-times-circle\" onclick=\"jQuery('#tag_" + tid + "').remove();\"></i>\n" +
Also, adjusted in our side for the next update.
Is there a way to disable zipping of files and serve download of whatever the user uploaded? I want users to upload already zipped files (.7z,.rar,.zip) so right now the plugin is zipping the file twice.
Hi,
WPDM only create a zip when there are multiple files with a package. For the packages with multiple files, you can to use link and page template where you need to use [file_list] tag, but skip using [download_link] tag.
[download_link] tag creates a download link to download the full package, and [file_list] shows download button next to the file name to download individual file when single file download is enabled.
Demo: https://demo.wpdownloadmanager.com/wpdmpro/download/multi-file-package/
Alternatively, you can enable “Cache ZIP file” option, which will keep the zip file created from initial download request of a multi-file package, and serve it for the every other download request without creating new one.
when i use [wpdm_package_form] shortcode on a page…and when i entire title and press continue i get shown this error on a blank page
{"result":"_ap_wpdm","id":111}
Please use [wpdm_frontend]
instead of that shortcode.
@admin I only want to show upload form since [wpdm_frontend] has lot of clutter like all items, edit profile etc…sort of confusing for users who just want to upload… is there a way to make [wpdm_package_form] or is it deprecated?
The shortcode is deprecated, as all of our users are only user [wpdm_frontend] we stopped maintaining [wpdm_package_form], however, if you think, you will need that, we shall recheck it and make it available with the next update.
@admin thank you!! that would be awesome
The topic ‘theme page templates’ is closed to new replies.