theme page templates

Viewing 18 posts - 1 through 18 (of 18 total)
#116738

Sai Parthiv
Participant

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?

Change Category Header

Is it single.php or loop.php?

#116759

Nayeem Riddhi
Moderator

Are you looking for single page or details page?

#116760

Shahjada
Keymaster


@sai-parthiv
, Please give me your URL to check.

#116765

Sai Parthiv
Participant

@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

  • This reply was modified 5 years, 4 months ago by Sai Parthiv.
#116769

Shafayet
Moderator

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/

#116771

Sai Parthiv
Participant

@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.

#116774

Shafayet
Moderator

May you please zip your theme and send me to check, as your site is on localhost and I can’t check it online.

#116784

Sai Parthiv
Participant

@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?

Image preview

  • This reply was modified 5 years, 4 months ago by Sai Parthiv.
#116787

Shafayet
Moderator

That will require customization of file tpls/wpdm-add-new-file-front.php , around line# 156 ~ 190

#116789

Sai Parthiv
Participant

@orion The uploader shows ‘Update Package’ even if i pressed create new package… it should show update package only for packages being updated.

image

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
  • This reply was modified 5 years, 4 months ago by Sai Parthiv.
#116792

Shahjada
Keymaster

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.

#116794

Sai Parthiv
Participant

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.

#116795

Shahjada
Keymaster

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.

Cache Zip

#116801

Sai Parthiv
Participant

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}

  • This reply was modified 5 years, 4 months ago by Sai Parthiv.
#116803

Shahjada
Keymaster

Please use [wpdm_frontend] instead of that shortcode.

#116805

Sai Parthiv
Participant

@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?

#116806

Shahjada
Keymaster

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.

#116810

Sai Parthiv
Participant

@admin thank you!! that would be awesome

Viewing 18 posts - 1 through 18 (of 18 total)

The topic ‘theme page templates’ is closed to new replies.