-
AuthorSearch Results
-
Oct 6, 2021 at 4:38 pm #162909
In reply to: How to upload the files of a package using REST API
Nayeem RiddhiModeratorHello @jrpajr,
Hope you are well. The code sample is here, the response code for any API should be like this,
The JSON response will look like the following example:
{ "id": 6488, "title": "The Alchemist", "slug": "the-alchemist", "description": "The Alchemist follows the journey of an Andalusian shepherd boy named Santiago.", "excerpt": "The Alchemist is a novel by Brazilian author Paulo Coelho.", "author": 1, "status": "publish", "parent": 0, "tags": [ "novel", "paulo-coelho" ], "categories": [ 16 ], "thumbnail": "https://example.com/wp-content/uploads/2019/01/the-alchemist.jpg", "additional_previews": [ "https://example.com/wp-content/uploads/2019/03/the-alchemist-cover.jpg", "https://example.com/wp-content/uploads/2019/03/the-alchemist-map.jpg" ], "version": "3.0.0", "link_label": "Download", "quota": 0, "download_limit_per_user": "100", "view_count": 80, "download_count": 14, "package_size": "811.84 KB", "access": [ "guest", "subscriber", "administrator" ], "user_access": [ "admin" ], "individual_file_download": "1", "cache_zip": "-1", "template": "link-template-calltoaction1", "page_template": "page-template-1col-flat", "files": { "1": "The Alchemist.pdf" }, "fileinfo": { "1": { "title": "The Alchemist", "password": "", "license_price": { "statdard": "", "extended": "", "unlimited": "" }, "price": "" } }, "package_dir": "", "publish_date": "2019-04-01 12:00 am", "expire_date": "2019-08-31 12:00 am", "terms_lock": "1", "terms_title": "Agree to terms", "terms_conditions": "You can't redistribute without prior authorization.", "terms_check_label": "Checkbox Label", "password_lock": "1", "password": "[123][456]", "password_usage_limit": "2", "linkedin_lock": "1", "linkedin_message": "LinkedIn Share Lock message", "linkedin_url": "https://www.wpdownloadmanager.com/", "tweet_lock": "1", "tweet_message": "Custom tweet message", "twitterfollow_lock": "1", "twitter_handle": "Shahriar", "facebooklike_lock": "1", "facebook_like": "", "email_lock": "1", "email_lock_title": "Subscribe To Download", "email_lock_msg": "", "email_lock_idl": "0", "icon": "https://example.com/wp-content/plugins/download-manager/assets/file-type-icons/arrow.png", "base_price": "12.00", "sales_price": "10.00", "sales_price_expire": "2019-08-31 12:00 am", "pay_as_you_want": "0", "license": { "statdard": { "active": "1" }, "extended": { "price": "22", "active": "1" }, "unlimited": { "price": "32", "active": "1" } }, "discount": { "subscriber": "10", "contributor": "20", "author": "30", "editor": "40", "administrator": "50" }, "enable_license": "1", "enable_license_key": "1", "free_downloads": [ "/Applications/XAMPP/wpdm/wp-content/uploads/2019/04/The-Alchemist-free-sample.pdf" ], "meta_input":{ "meta_key" : "Hello" } }here file attach should be like this,
"files": { "1": "The Alchemist.pdf" }And for this default format, the file should be residing in
wp-content/uploads/download-manager-files, thus the package should create with fa file. Please let me know if you have other queriesThank you and regards
Oct 6, 2021 at 8:10 am #162858In reply to: settings issue
HumayonSpectatorHello,
Please check now I have adjusted the colours from blue to pink by adding CSS inDashboard>Appearance>Customize>Additional CSS.
The option to change the colours in the settings will affect floated Chatbox only. Hope you understand.
However, You can capture screenshots by using this app and send the URL here.
RegardsOct 5, 2021 at 6:14 am #162775In reply to: wordpress download manager upload box disappear
TanvirSpectatorHello @eidattia,
Sorry for this inconvenience.
Make sure that WPDM and all add-ons you are using of WPDM are in the latest version.
If, still the problem exists Could you please share the related page/file/package URL with us?
However, it will be very cooperative if you record me reproducing your issue using a tool like this?Best Regards
Oct 4, 2021 at 12:19 pm #162695In reply to: How to upload the files of a package using REST API
Jose Renato PintoParticipantHello Nayeem.
I did not understood how I’m gona to attach the files.
I alread saw the “files” object and could not use it for uploading files, only to make reference to files that were alread uploaded previously (that are on the Media of Worpress).
The description of “files” object is: “Array of attached file names key by file ids.”
What kind of “file names” I’m supoused to put there? The local path of my PC? (like C:\TEMP\file_to_upload.jpg)
And what about the “id”? What kind of Id?
Do you have any example to give me?
I alread tried to put the local path there (like the above example), but the files were not uploaded to the server.
Here is a snippet code of what I’m doing:
import jakarta.ws.rs.client.Client; import jakarta.ws.rs.client.ClientBuilder; import jakarta.ws.rs.client.Entity; import jakarta.ws.rs.client.Invocation.Builder; import jakarta.ws.rs.client.WebTarget; import jakarta.ws.rs.core.HttpHeaders; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; public class Test { public String createPackage( final String name, final long categoryId, final String fileName ) { try { final Map params = new HashMap<>(); params.put( "title", name ); //$NON-NLS-1$ final List<Long> categoryIdList = new ArrayList<>(); categoryIdList.add( categoryId ); params.put( "categories", categoryIdList ); //$NON-NLS-1$ if ( null != fileName && ( !fileName.isEmpty() ) ) { final List<String> files = new ArrayList<>(); files.add( fileName ); params.put( "files", files ); //$NON-NLS-1$ } params.put( "status", "private" ); //$NON-NLS-1$ //$NON-NLS-2$ final List<String> access = new ArrayList<>(); access.add( "guest" ); params.put( "access", access ); //$NON-NLS-1$ final Entity entry = Entity.json( params ); final Client wpdmClient = ClientBuilder.newClient(); WebTarget wpdmPackagesTarget = wpdmClient.target( wpdmPackagesUrl ); String wpdmAuthorizationKey = "Bearer xxxxxxx"; //$NON-NLS-1$ final Builder builder = wpdmPackagesTarget.request( MediaType.APPLICATION_JSON ).header( HttpHeaders.AUTHORIZATION, wpdmAuthorizationKey ); final JSONObject response = builder.post( entry, JSONObject.class ); return response.toJSONString(); } catch ( Exception e ) { e.printStackTrace(); } return null; } }Oct 4, 2021 at 10:39 am #162685In reply to: wp_logout_url() redirect param broken
Christophe BarbierParticipantHello,
I am running into the same issue. It looks like the source code is now located in (PRO version):
download-manager\src\User\Login.php
Line 44:
add_filter(“logout_url”, [$this, ‘logoutURL’], 999999, 2);This filter has the highest priority, which will override other plugins. In our case, we are using “OpenID Connect Generic Client”:
When calling this PHP function to get the “log out” URL:
wp_logout_url(get_permalink())WPDM changes URL which look like this:
/wp-login.php?action=logout&redirect_to=
to
?logout?…Because of that, as Nicholas said, the “action” parameter is ignored by WordPress, which never even gets in wp-login.php to apply other logic (such as the “logout_redirect” filter). In our case, when WPDM is activated, the log out function of our website doesn’t work anymore !
Worst thing is, we don’t even use the WPDM login function, and we still get that issue.There is probably a better way to disable it (apart from changing the source code of WPDM), but we added this custom to our child theme :
# fix issue with WPDM adding custom logout filter # see https://www.wpdownloadmanager.com/support/topic/wp_logout_url-redirect-param-broken/ function remove_filters_with_method_name( $hook_name = '', $method_name = '', $priority = 0 ) { global $wp_filter; // Take only filters on right hook name and priority if ( ! isset( $wp_filter[ $hook_name ][ $priority ] ) || ! is_array( $wp_filter[ $hook_name ][ $priority ] ) ) { return false; } // Loop on filters registered foreach ( (array) $wp_filter[ $hook_name ][ $priority ] as $unique_id ► $filter_array ) { // Test if filter is an array ! (always for class/method) if ( isset( $filter_array['function'] ) && is_array( $filter_array['function'] ) ) { // Test if object is a class and method is equal to param ! if ( is_object( $filter_array['function'][0] ) && get_class( $filter_array['function'][0] ) && $filter_array['function'][1] == $method_name ) { // Test for WordPress >= 4.7 WP_Hook class (https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/) if ( is_a( $wp_filter[ $hook_name ], 'WP_Hook' ) ) { unset( $wp_filter[ $hook_name ]->callbacks[ $priority ][ $unique_id ] ); } else { unset( $wp_filter[ $hook_name ][ $priority ][ $unique_id ] ); } } } } return false; } remove_filters_with_method_name( 'logout_url', 'logoutURL', 999999 );The code is from :
https://wordpress.stackexchange.com/a/304861/167013This successfully removed the WPDM logout filter
Please fix this issue in WPDM directly, as it will produce unexpected results with many other WP extensions.
Thanks,
Oct 4, 2021 at 9:31 am #162680In reply to: settings issue
HumayonSpectatorHi @cybergogoappsgmail-com,
Hope you are well. And sorry for the inconvenience.
First of all, make sure that you are using the latest version of the WPDM and its related add-on.
I hope it will work fine then. If it doesn’t work, please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
Also, please share the related page/file/package URL with us where the issue exists.
However, it will be very cooperative if you record me reproducing your issue using a tool like this?
It helps me to quickly figure out the issue and squash it immediately.
Thank youOct 3, 2021 at 4:33 am #162608
HumayonSpectatorHello @bostjanlaba,
Hope you are well. And sorry for the inconvenience.
Please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
Also, please share the related page/file/package URL with us where the issue exists.
However, it will be very cooperative if you record me reproducing your issue using a tool like this?
It helps me to quickly figure out the issue and squash it immediately.
However, Auto-update sometimes fails due to auth error or server file permission issue, however, you always can download any add-on from here and install it.
Thank youSep 29, 2021 at 4:51 pm #162478In reply to: Frontend Access – dont work correctly
Nayeem RiddhiModeratorThis reply has been marked as private.Sep 29, 2021 at 7:32 am #162429In reply to: Why lazy download is changing the extension name ?
TanvirSpectatorHello @Amevoice,
Sorry for this inconvenience.
Make sure that WPDM and all add-ons you are using of WPDM are in the latest version.Latest version of lazy download is 2.7.0.
If the problem still persists, could you please share the related page/file/package URL with us?
If possible please also share the admin access of your website in a private reply.It helps us to quickly figure out the issue and resolve it immediately.
Best RegardsSep 29, 2021 at 4:52 am #162424In reply to: Critical error when upgrading to Pro
HumayonSpectatorHi @callerpatty,
Hope you are well. And sorry for the inconvenience.
According to the latest update of WPDM PRO, you also need to update the other add-ons as well. Please update the WPDM Directory Add-on and it’s latest version is right now4.3.2, or you can download them from here.
I hope it will work fine then. If it doesn’t work, please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
Also, please share the related page/file/package URL with us where the issue exists.
Thank youSep 29, 2021 at 4:08 am #162421In reply to: Extendend short codes desn’t run …
HumayonSpectatorHello @peter_diethelm,
Hope you are well. And sorry for the inconvenience.
Make sure that you are using the latest version of the WPDM Pro and WPDM Extended Short-codes add-on.
I hope it will work fine then. If it doesn’t work, please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
It helps me to quickly figure out the issue and squash it immediately.
Thank youSep 28, 2021 at 7:32 am #162378
Nayeem RiddhiModeratorHello @ntech21,
Hope you are well. And sorry for the inconvenience. Can you please tell us which add-on you have upgraded to the latest version? please share the related URL. if possible, please, give your temporary wp-admin login details in a private reply for checking the issue.
Thank you and regards
Sep 27, 2021 at 5:37 pm #162355In reply to: Facebook Like Lock Not Working
TanvirSpectatorHello,
I have just checked. It is working fine with the wpdm
6.0.8version
First of all you have to add app id and app secret properly and your site url in the facebook app. You need the app to make live by adding privacy and tos page.

Then you have to add the page url in the same way with https and www in the facebook lock “url to like” option

It should work now. If still the problem persists, please provide temporary admin access of your website.
Thanks
Sep 23, 2021 at 5:00 am #162132In reply to: add on Dropbox
HumayonSpectatorHello @pluk64,
Hope you are well. And sorry for the inconvenience.
Make sure that you are using the latest version of the WPDM and dropbox add-on.
I hope it will work fine then. If it doesn’t work, please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
Also, please share the related page/file/package URL with us where the issue exists.
However, it will be very cooperative if you record me reproducing your issue using a tool like this?
It helps me to quickly figure out the issue and squash it immediately.
Thank youSep 21, 2021 at 4:10 pm #162052
ClearTouchParticipantThis reply has been marked as private.Sep 20, 2021 at 9:14 am #161959In reply to: How to hide expired download ?
Nayeem RiddhiModeratorHello @ultimatelab,
Hope you are well. please add the following code to your
wpdm_change_download_expired_messagefunction,I hope it will work fine then
$package['download_url'] = '#'; $package['link_label'] = "your custom message"Thank you and regards
Sep 18, 2021 at 7:34 am #161880In reply to: Cannot view download stats
HumayonSpectatorHello @yumaworks,
Hope you are well. And sorry for the inconvenience. We have released the latest version6.0.8of the WPDM PRO plugin and add-ons. According to the latest update of WPDM PRO, you also need to update the other add-ons as well. Please update them, or you can download them from here.
I hope it will work fine then. If it doesn’t work, please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
Thank youSep 16, 2021 at 10:25 am #161790
Nayeem RiddhiModeratorHello @mfirwana,
Hope you are well. The issue is related to google drive. There is a workaround that allows you to bypass Google Drive’s 24-hour limit. How that is done depends largely on what you see on the screen.
The most common error is shown on the screenshot above. It simply shows the error message but no other controls or options.
1. Locate the “uc” part of the address, and replace it with “open”, so that the beginning of the URL reads https://drive.google.com/open?.
2.Load the address again once you have replaced uc with open in the address.
3.This loads a new screen with controls at the top.
4.Click on the “add to my drive” icon at the top right.
5.Click on “add to my drive” again to open your Google Drive storage in a new tab in the browser.
6.You should see the locked file on your drive now.
7.Select it with a right-click, and then the “make a copy” option from the menu.
8.Select the copy of the file with a right-click, and there download to download the file to your local system.For more details please check this article too, https://www.ghacks.net/2017/04/14/fix-google-drive-sorry-you-cant-view-or-download-this-file-error/
Thank you and regards
Sep 16, 2021 at 9:00 am #161783In reply to: Fatal Error
HumayonSpectatorHello @pixelproduction,
Sorry for the inconvenience.
Make sure that you are using the latest version of the WPDM Pro and WPDM Directory Add-on.
I hope it will work fine then. If it doesn’t work, please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
Also, please share the related page/file/package URL with us where the issue exists.
Thank YouSep 15, 2021 at 3:57 am #161695
HumayonSpectatorHello @mtsdcm,
Hope you are well.
Make sure that you are using the latest version of the WPDM Pro and PDF Stamper add-on. Please update them, or you can download them from here.
I hope it will work fine then. If it doesn’t work, please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
Also, please share the related page/file/package URL with us where the issue exists.
With RegardsSep 14, 2021 at 11:56 am #161657In reply to: Redirects to Homepage on Click
TBMemberThis reply has been marked as private.Sep 14, 2021 at 9:00 am #161647In reply to: Issue with Category Restrictions
Nayeem RiddhiModeratorHello @designhub again,
With default value add-on, bulk apply to allow accces it is working fine too here, please check the URL
https://staging.5healthytowns.org/download/wpdm-test/
please let me know if you have other queries
Thank you and regards
Sep 14, 2021 at 6:37 am #161631
HumayonSpectatorHello @dshank,
Hope you are doing great.
Please share your site URL too.
However, make sure that you are using the latest version of the WPDM Pro and its related add-on.
I hope it will work fine then. If it doesn’t work, then please share the related page/file/package URL with us where the issue exists.
Thank YouSep 14, 2021 at 6:31 am #161630In reply to: Advanced Search (Left) Shortcode doesn’t work.
HumayonSpectatorHello @26enterprises,
Hope you are well. And sorry for the inconvenience.
In our test environment, the shortcode is working fine.
However, make sure that you are using the latest version of the WPDM Pro and WPDM Directory Add-on.
I hope it will work fine then. If it doesn’t work, please, provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
Also, please share the related page/file/package URL with us where the issue exists.
Thank YouSep 12, 2021 at 2:34 pm #161457In reply to: Error after update to verion 6.0.5
ShahjadaKeymasterThe point is how are you reaching the URL
https://www.ifiar.org/page/3/?wpdmdl. Manually, you can add any parameter, exhttps://www.ifiar.org/page/3/?abcd -
AuthorSearch Results
