-
AuthorSearch Results
-
Oct 21, 2021 at 7:08 am #163628
In reply to: display categories left sidebar
HumayonSpectatorHello,
Thank you for contacting the support forum.
Are you using the WPDM Directory add-on and[wpdm_archive_filter items_per_page="10" template="default" cols=1]shortocde?
I hope it will work fine then. If it doesn’t work, then 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.
RegardsOct 20, 2021 at 4:37 pm #163593In reply to: IP Addresses not exporting in History csv
Theresa Stacy-RyanParticipantThis reply has been marked as private.Oct 19, 2021 at 1:05 pm #163500In reply to: audio player not working. just buffers…
kevin elliottParticipantThis reply has been marked as private.Oct 19, 2021 at 9:43 am #163483Topic: Plugin conflict UM
in forum Download Manager Pro
Edouard BoissetParticipantHello,
Would you be willing to look into a conflict between your plugin and Ultimate Member plugin ?
when both are installed on the same wp, the ‘forgotten password’ > ‘password reset’ link doesn’t work.
It is because of the ‘key’ param in the url.
The problem is fixed by renaming the parameter in two files \plugins\download-manager\src\User\Login.php Line 226 from
$reseturl = add_query_arg(array('action' ► 'rp', 'key' ► $key, 'login' ► $user_login), wpdm_login_url());To
$reseturl = add_query_arg(array('action' ► 'rp', 'wpdm-key' ► $key, 'login' ► $user_login), wpdm_login_url());and the file download-manager\src\User\views\reset-password-form.php Line 15 from
$user = check_password_reset_key(__::query_var('key'), $login);To
$user = check_password_reset_key(__::query_var('wpdm-key'), $login);I know it’s not really a bug on your side, but it would be really kind if you could add this small change 🙏
Thanks
Regards
Oct 18, 2021 at 7:39 am #163432
HumayonSpectatorHello,
Sorry for the inconvenience.
Archive one is named as WPDM Directory Add-on.
Also, please don’t use the WPDM – TinyMce Button add-on as we are going to remove it ASAP. Because everyone is tending to use Gutenberg and WordPress is also recommending to use it.
However, if you cooperate with us by providing your admin login credentials and related page/package URL then we will set up the shortcode for you. Maybe you are inserting the shortcode wrong that’s why it’s not working.
Please, copy and use the exact shortcode from the add-on page or let us do it for you.
RegardsOct 17, 2021 at 2:13 pm #163401In reply to: Plugin Conflict with Fluent CRM
Webmaster CioindexMemberThis reply has been marked as private.Oct 17, 2021 at 12:42 pm #163380
HumayonSpectatorHi @poppydesignstudio,
Sorry for the inconvenience.
In that case, 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.
It will be very cooperative if you share your order ID and associated email address as well.
Thank You
HumayonSpectatorHello @nydunes,
Hope you are well. And sorry for the inconvenience.
According to the latest update of WPDM PRO, you also need to update the Advanced Access Control add-on as well. Please update it, or you can download them from here.
I hope it will work fine then. If it doesn’t work, then 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 youOct 13, 2021 at 3:10 pm #163210In reply to: PDF viewer // Preview image // Link template
TanvirSpectatorHello,
Sorry to hear about the issues.
-
1. You can install pdf viewer from
Downloads > settings > Updatesoption from your WordPress dashboard. If you can’t update it directry from WordPress dashboard, Please update from here.
Here is the url of the addon
2. To set preview image for each download you have to set featured image for package and then[thumb_widthxheight]in link template or page template to show preview image in the list.
To set preview image for category, you have to set image for each category from Downloads>Categories option.
Then you have to use this shortcode withtitle=1parameter andid=''parameter
https://www.wpdownloadmanager.com/doc/short-codes/wpdm_category-query-all-downloads-from-one-or-more-categories/
3. I have just tested this issue and I think it is a bug. I will forward the issue to the developer team. In the meantime you can add template parameter in shortcode to use template.Please let me know if you have any quries or if you have got all the answers.
Thanks
Oct 13, 2021 at 12:25 pm #163200In reply to: Archive page not working
HumayonSpectatorHello @webmasteraci,
Sorry for this inconvenience.First of all please make sure that you are using the quote
"instead of comma”in the shortcode parameter.However, You are using the latest WPDM Free version but since you have posted in the PRO forum SO I assume that you have the Pro plugin access.
Make sure that WPDM and all of its related add-ons you are using are in the latest version.
The current version of WPDM Pro is6.0.8.
The current version of the WPDM directory (Archive Page) add-on is4.3.2.If you can’t update it directry from WordPress dashboard, Please update from here.
If, still the problem exists then please share your admin login credentials with us in a private reply so that we can debug and give you a better solution about it?
Also, please share the related page/file/package URL with us where the issue exists.Best Regards
Oct 13, 2021 at 2:07 am #163175In reply to: How to clear old download
HumayonSpectatorHello @nvision,
Hope you are doing great.
Currently, there is no option to clear the old/outdated files. However, we are going to add a new option in the next/future update under the settings/package edit section like thisdelete associated files when the package gets deleted.
So, please cooperate and spare us some time.
Also, if you remove/delete files from theuploads->download-manager-filesthen it should showSorry! File not found!instead of going to wp-admin.
Make sure that there is no redirection applied.
If still, the problem exists then please provide us with your temporary wp-admin login details and site URL in a private reply for checking the issue.
RegardsOct 11, 2021 at 10:22 am #163110
TanvirSpectatorHello ,
Sorry for this inconvenience.
Make sure that WPDM and all add-ons you are using of WPDM are in the latest version. If you can’t update it directry from WordPress dashboard, Please update from here.
If still the problem persists, Could you please share the related page/file/package test 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.
Thank you
Oct 10, 2021 at 4:12 am #163039
HumayonSpectatorHello @ikram_dirujii,
It’s working fine in our test environment.
Are you using the latest version of both WPDM Pro and Download limit addon?
If still, 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 7, 2021 at 9:40 pm #162991In reply to: Dashboard after Login
Ikram DirujiiParticipantSir, I installed the Ultimate member plugin, so my problem is solved.
one question sir, I have already added 3k plus packages, with all users access, so now it is not possible individually, one by one to change from all users to subscribers. I tried the Better search-replace plugin, but I think it is working only for URL replacement.
i also tried manually replace the string guest to the subscriber through notpade++ but when I am uploading the modified DB file to the database, it is changing my admin access to the subscriber. i mean upter that I can use my website as a subscriber, not as an admin.so any way to change the access condition from guest to subscriber for my previous packages?
Oct 6, 2021 at 9:03 pm #162925In reply to: How to upload the files of a package using REST API
Jose Renato PintoParticipantI’m not sure if I missed something… maybe I am…. because I still not able to upload files to this folder using a Java Client with REST API.
Maybe you are suggesting me to upload the files to wp-content/uploads/download-manager-files via FTP? Is that it?
Because reading your answer, I’m not able to find any clue about how to upload the files to this folder.
I’m sorry for beeing this persistent, but I’m realy need to understend how this works.
I was expecting some code like this to upload the files:
import java.io.File; import java.io.IOException; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.Entity; import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.glassfish.jersey.media.multipart.MultiPart; import org.glassfish.jersey.media.multipart.MultiPartFeature; import org.glassfish.jersey.media.multipart.file.FileDataBodyPart; public class JerseyFileUpload { private final static String contentType = "multipart/mixed"; public static void test(){ postFile("http://mypage.com/wp-json/wpdm/v1/package", "c:\\TEMP\\File.jpg"); } public static void postFile(String serverURL, File imgFile) { MultiPart multiPart = null; try { Client client = ClientBuilder.newBuilder(). register(MultiPartFeature.class).build(); WebTarget server = client.target(serverURL); multiPart = new MultiPart(); FileDataBodyPart imgBodyPart = new FileDataBodyPart("imgFile", imgFile, MediaType.APPLICATION_OCTET_STREAM_TYPE); // Add body part multiPart.bodyPart(imgBodyPart); Response response = server.request(MediaType.APPLICATION_JSON_TYPE) .post(Entity.entity(multiPart, contentType)); if (response.getStatus() == 200) { String respnse = response.readEntity(String.class); System.out.println(respnse); } else { System.out.println("Response is not ok"); } } catch (Exception e) { System.out.println("Exception has occured "+ e.getMessage()); } finally { if (null != multiPart) { try { multiPart.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }Oct 6, 2021 at 4:38 pm #162909In 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 you -
AuthorSearch Results
Search Results for 'Add Url'
-
Search Results
-
Topic: Plugin conflict UM
Hello,
Would you be willing to look into a conflict between your plugin and Ultimate Member plugin ?
when both are installed on the same wp, the ‘forgotten password’ > ‘password reset’ link doesn’t work.
It is because of the ‘key’ param in the url.
The problem is fixed by renaming the parameter in two files \plugins\download-manager\src\User\Login.php Line 226 from
$reseturl = add_query_arg(array('action' ► 'rp', 'key' ► $key, 'login' ► $user_login), wpdm_login_url());To
$reseturl = add_query_arg(array('action' ► 'rp', 'wpdm-key' ► $key, 'login' ► $user_login), wpdm_login_url());and the file download-manager\src\User\views\reset-password-form.php Line 15 from
$user = check_password_reset_key(__::query_var('key'), $login);To
$user = check_password_reset_key(__::query_var('wpdm-key'), $login);I know it’s not really a bug on your side, but it would be really kind if you could add this small change 🙏
Thanks
Regards