theme page templates

in Download Manager Free

Viewing 18 posts - 1 through 18 (of 18 total)
Dec 13, 2019 at 6:36 pm
#116738
Participant
Sai Parthiv
OP

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?

Dec 14, 2019 at 9:09 am
#116759
Moderator
Nayeem Riddhi
Staff

Are you looking for single page or details page?

Dec 14, 2019 at 9:31 am
#116760
Keymaster
Shahjada
Staff


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

Dec 14, 2019 at 11:11 am
#116765
Participant
Sai Parthiv
OP

@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 6 years, 2 months ago by Sai Parthiv.
Dec 14, 2019 at 12:56 pm
#116769
Moderator
Shafayet
Staff

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/

Dec 14, 2019 at 2:12 pm
#116771
Participant
Sai Parthiv
OP

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

Dec 14, 2019 at 6:55 pm
#116774
Moderator
Shafayet
Staff

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

Dec 15, 2019 at 7:09 am
#116784
Participant
Sai Parthiv
OP

@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 6 years, 2 months ago by Sai Parthiv.
Dec 15, 2019 at 7:26 am
#116787
Moderator
Shafayet
Staff

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

Dec 15, 2019 at 10:12 am
#116789
Participant
Sai Parthiv
OP

@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 6 years, 2 months ago by Sai Parthiv.
Dec 15, 2019 at 12:45 pm
#116792
Keymaster
Shahjada
Staff

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.

Dec 15, 2019 at 2:21 pm
#116794
Participant
Sai Parthiv
OP

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.

Dec 15, 2019 at 2:34 pm
#116795
Keymaster
Shahjada
Staff

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

Dec 15, 2019 at 6:50 pm
#116801
Participant
Sai Parthiv
OP

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 6 years, 2 months ago by Sai Parthiv.
Dec 15, 2019 at 6:51 pm
#116803
Keymaster
Shahjada
Staff

Please use [wpdm_frontend] instead of that shortcode.

Dec 15, 2019 at 7:26 pm
#116805
Participant
Sai Parthiv
OP

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

Dec 15, 2019 at 7:48 pm
#116806
Keymaster
Shahjada
Staff

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.

Dec 16, 2019 at 2:50 am
#116810
Participant
Sai Parthiv
OP

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