I know a little SQL, it’s basically looking for file types of flame, and then adding a url to point to the image for the icon. My problem is I am not sure which tables I should be looking at to query and which to update. How does it work normally for things like zip files or doc files etc, they bring up their own icon.
I thought it was just a case of adding the extension name as a file name, so zip.png or doc.png etc so for me would be flame.png. Doesn’t work that way.
You can check it by uploading it to the media library and then giving the URL path here. And also you can make icons in the default format, put it in the file-type-icons folder, and then select them. For all downloads package, you can check this add on for this, https://www.wpdownloadmanager.com/download/wpdm-default-values/
Thanks.
Hi, I have found the solution to the problem I had if someone else will have the same issue it might be helpful.
So after updating Download Manager from version 5.0.8 to version 5.1.2 all download links send to the email address were invalid.
To solve this issue I have logged in into my WordPress Admin go to the Settings and I have put completely random
WordPress Address (URL) and Site Address (URL)
When I saved changes WordPress kicked me out and everything started to work
(the WordPress Address (URL) and Site Address (URL) has not been changed). So I assume there were some settings which have not been refreshed or well I do not know, but even now when I do the staging copy of my website with Download Manager 5.1.2 installed I need to do this steps in order to make this plugin work.
So this is something that someone from support could look at.
Hope this will be useful for someone.
I can close this issue as now everything works just fine.
Thanks for your help.
This reply has been marked as private.
hi,
trying to create a new package – having updated from WPDM free to WPDM Pro
If I try to create a new package using ‘Add New’ – I give the post a title and add a file, but the then I can’t save the Package – either as Draft or Published.
The Url for the new post is /wp-admin/post-new.php?post_type=wpdmpro
If I click on Publish nothing happens an it’s just appending ‘&wp-post-new-reload=true’ to the url after every click
-
This topic was modified 5 years, 2 months ago by
phil2pint.
Hi Nayeem,
Thanks for this!
I understand that I can add files that are already uploaded to another server using the Insert URL field.
But is it possible to have new files uploaded to a different domain than the local WordPress installation? So if I use the “SELECT FILES” button, these could go a different website, instead of the local /uploads/ folder.
For example, by default my files go to:
https://www.main-website.com/wp-content/uploads/…
Can I instead have them going to:
https://files.main-website.com/uploads/…
?
This reply has been marked as private.
I am trying to get an inline link. I want to be able to add a link to a package within a sentence.
Is there any way to remove the wrapper div on line 543 in
/download-manager/libs/class.Shortcodes.php
function package($params)
{
extract($params);
if (!isset($id)) return '';
$id = (int)$id;
if (get_post_type($id) != 'wpdmpro') return '';
$postlink = site_url('/');
if (isset($pagetemplate) && $pagetemplate == 1) {
$template = get_post_meta($id, '__wpdm_page_template', true);
$wpdm_package['page_template'] = stripcslashes($template);
$data = \WPDM\Package::fetchTemplate($template, $id, 'page');
$siteurl = site_url('/');
return "<div class='w3eden'>{$data}</div>";
}
$template = isset($params['template']) ? $params['template'] : get_post_meta($id, '__wpdm_template', true);
if ($template == '') $template = 'link-template-calltoaction3.php';
$html = "<div class='w3eden'>" . \WPDM\Package::fetchTemplate($template, $id, 'link') . "</div>";
//wp_reset_query();
//wp_reset_postdata();
return $html;
}
-
This topic was modified 5 years, 2 months ago by
LMB.
Have you the earlier version of PHP or old version of add on. please give the specific issued URL page. and if possible, Please, give your temporary wp-admin login details in a private reply for checking the issue.
Thanks.
This reply has been marked as private.
This reply has been marked as private.
That option is not available for now, the default redirect page is the dashboard membership plan page. However, a new and major update of membership plugin is coming within this month, we shall add those options there.
However, you can track stripe successfull subscription payments using the following code:
add_action("plugins_loaded", function(){
if (wpdm_query_var('wppmaction') === 'stripe-new-subscription') {
$url = "your tracking url"; //Set you tracking url
$params = [ ]; // Additional Parameters
$params = $params + $_REQUEST;
wpdm_remote_post($url, $params);
}
});
Hi,
You. can use the following code to push the data to a remote URL:
add_action( 'gform_after_submission', 'handle_api_request', 10, 2 );
function handle_api_request( $entry, $form ) {
//Handle your remote. api request here
}
Doc: https://docs.gravityforms.com/gform_after_submission/
Hi,
the following shortcode is not doing what expected:
[wpdm_category id="plat-dak" order_by="title" order="ASC" template="57a1e62f72598" cols=1 colspad=1 colsphone=1 items_per_page="100"]
-> URL: https://be.iko.com/technische-fiches/#1591104323246-d0083ace-f5ff
(VLOEIBARE ACCESSOIRES -> TAB ‘plat dak’)
It’s not ordering alphabetical as expected.
All addvice is welcome
thanks
I am using:
WP Download Manager Pro
Gravity Forms
WPDM Form Lock
Everything works as it should, as far as I can see. However, I want to send data to our marketing automation system, Pardot.
Normally, that would be an easy task in Gravity Forms, as I can simply add an URL to the confirmation as a redirect.
But if I do that when the form is used as a form lock, the redirect with disrupt the form lock flow, and redirect the user away from the download option.
Is it possible to trigger the URL some other way upon form completion? Perhaps using your Web hooks add-on?
I have the same problem with this shortcode;
[wpdm_all_packages items_per_page="20" jstable=0 cols="title,file_count,download_count|categories|download_link" colheads="Title|Categories|Download"]
All downloads are given #-url’s instead of downloads. Adding a single file to a page with [wpdm_package id='4483'] code works for me (tested one document). Also notice that the title of the document is no longer a hyperlink but only a title.
Thanks for helping us out
This reply has been marked as private.
Hi Greg Harte,
Sorry for the inconveniences. For purchase security reason, it is not convenient to send the user the direct download link of the purchase.
However, you can easily achieve guest purchase functionality.
#1
create a guest purchase page. put the shortcode [wpdmpp_guest_orders] in the page. NOTE THE GUEST PURCHASE PAGE URL
#2
Enable guest checkout from downloads > settings > Premium Package > Basic tab> Frontend settings
#3
Modify the Purchase Confirmation - Guest ( To: Customer ) email template from Downloads > templates > email templates > to remove the signup link and insert the purchase page URL you have created at #1. save it.
(Please don’t forget to use insert link button in the editor, this will make a clickable link. we will add a template variable tag in next update to make this easier.)
NOW the customer will get the guest order page URL in the email when they purchase.
Please let us know if you face any problem.
thanks
I am the developer, the server is on AWS we didn’t have 500 error in other places but only for this instnace.
Here is the complete WP error log when you click on the red link (URL) on your Chrome:
link
Fatal error: Uncaught Stripe\Error\InvalidRequest: Checkout does not support plans with the value 0 foramountinsubscription_data[items][0]. in /*******/wp-content/plugins/wpdmpp-stripe/libs/vendor/stripe/stripe-php/lib/ApiRequestor.php:210 from API request ‘req_IvPrCRHaOg61o5’ Stack trace: #0 *******/wp-content/plugins/wpdmpp-stripe/libs/vendor/stripe/stripe-php/lib/ApiRequestor.php(173): Stripe\ApiRequestor::_specificAPIError(‘{\n “error”: {\n…’, 400, Object(Stripe\Util\CaseInsensitiveArray), Array, Array) #1 /*******/wp-content/plugins/wpdmpp-stripe/libs/vendor/stripe/stripe-php/lib/ApiRequestor.php(473): Stripe\ApiRequestor->handleErrorResponse(‘{\n “error”: {\n…’, 400, Object(Stripe\Util\CaseInsensitiveArray), Array) #2 /*******/wp-content/plugins/wpdmpp-stripe/libs/vendor/stripe/stripe-php/lib/ApiRequestor.php(126): Stripe\ApiRequestor->_interpretResponse(‘{\n “error”: {\n…’, 400, Object(Stripe\Uti in /*******/wp-content/plugins/wpdmpp-stripe/libs/vendor/stripe/stripe-php/lib/ApiRequestor.php on line 210
When the API is coming back from Stripe servers, it can’t complete the payment process due to the error (there is a parameter that cannot be passed when its value is empty or zero) from Stripe.
Also, I added another plan that has 1 year interval and it works perfectly fine with Stripe Test mode.
Can you please take a closer look at your code (where Stripe API is set)? When you choose the lifetime option, maybe it should use a different method (function) not to pass the data for recurring payment method to stripe, but ONE time payment method.
Does that make sense for you?
Thanks for your help.
-
This reply was modified 5 years, 4 months ago by
Ali Khansari.
Can you provide the package URL for watching how you are trying to add the images? There are lots of packages in your site
Thanks.
This reply has been marked as private.
This reply has been marked as private.
In Korea, many people still use MS-Explorer.
So there is a problem when downloading a file in Korean.
But there’s no problem with Google’s Chrome.
So I have to change the file class.FileSystem.php from line 111 to the next code whenever WPDM version up.
if (!isset($extras['play'])) {
if (get_option('__wpdm_open_in_browser', 0) || wpdm_query_var('open') == 1)
header("Content-disposition: inline;filename=\"{$filename}\"");
else
$ua = htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, 'UTF-8');
if (preg_match('~MSIE|Internet Explorer~i', $ua) || (strpos($ua, 'Trident/7.0') !== false && strpos($ua, 'rv:11.0') !== false)){
header("Content-disposition: attachment;filename=".iconv('utf-8', 'euc-kr', $filename)."");
}else if(preg_match("/Edge/",$ua)){
// do stuff for EDGE
header("Content-disposition: attachment;filename=".rawurlencode($filename)."");
}else{
// safari, chrome and firefox, etc...
header("Content-disposition: inline;filename=\"{$filename}\"");
}
header("Content-Transfer-Encoding: binary");
}
Could you add this code to next version-up for Korean?
-
This topic was modified 5 years, 4 months ago by
Jaewon Kim.
Hi,
We have a site that has installed inside it as a plugin WPML and DOWNLOAD MANAGER.
An android application has also been created to display the site as an application.
Android to display the pdf requires that the download link be added to the download link “https://docs.google.com/gview?embedded=true&url=”.
We have modified the custom template so that that string is automatically added before the [download_url] tag.
The problem arises in English language which is added after the lang=en download link.
This generates the wrong display of the pdf.
How can we make sure that it is automatically removed from every link that has the string “lang=en”?
Working link:
https://docs.google.com/gview?embedded=true&url=https://www.rallydiromacapitale.it/download/hotel-booking-form-english-version/?wpdmdl=727&refresh=5ee0a6e8cd9d11591781096
Link is not working:
https://docs.google.com/gview?embedded=true&url=https://www.rallydiromacapitale.it/download/hotel-booking-form-english-version/?lang=en&wpdmdl=727&refresh=5ee0a6e8cd9d11591781096
Thanks in advace
Hi there,
Yes possible, need to attach as URL and the video is mp4, then the preview will work then. And there is also a chance for showing via the template, you need to add [product_preview] tag or [video_player_900x600] for showing that
Thanks.