Kane Leins

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 29 total)
Dec 22, 2021 at 7:02 pm
#165945
Participant
Kane Leins
OP
This reply has been marked as private.
Dec 22, 2021 at 3:14 pm
#165936
Participant
Kane Leins
OP
This reply has been marked as private.
Dec 22, 2021 at 2:36 pm
#165935
Participant
Kane Leins
OP
This reply has been marked as private.
Apr 13, 2021 at 7:41 pm
#150436
Participant
Kane Leins
OP
This reply has been marked as private.
May 21, 2020 at 3:52 pm
#128835
Participant
Kane Leins
OP
This reply has been marked as private.
Nov 6, 2019 at 9:36 pm
#114585
Participant
Kane Leins
OP

Hey Shahriar, sorry if I wasn’t clear in my previous message. Between the time I sent in first ticket today, and your reply I made the changes in the code sample above. That FIXED MY ISSUE and caused the files to download with the file name IE (filename.zip) instead of 015265498.zip.

When I updated to latest version last week, the functionality to use file name was overwritten. The code looks different so I sent in a ticket asking for help, but figured it out myself. WITHOUT the fix I applied, I was getting downloads with names like 015265498.zip

Nov 6, 2019 at 9:07 pm
#114580
Participant
Kane Leins
OP

We have only one file per package. Here is a link -> https://ninjatraderecosystem.com/user-app-share-download/pricevoice/

I was able to modify it from code previously sent like this:

$filepath = str_replace(‘\\’,’/’, $filepath );
$filename = wpdm_basename($filepath);

//modified to get the file name instead of random number
$tmparr = explode(‘.’, $filename );
$filename = get_the_title( $package[‘ID’] ) . “.” . end($tmparr);
wpdm_download_file($filepath, $filename, $speed, 1, $package);

Is there a better way to do this? Also, you had previously said a filter with the ability to use the download file name would be added to the front end, is that still a possibility?

Nov 6, 2019 at 5:22 pm
#114562
Participant
Kane Leins
OP

This code no longer works in the latest update. The code block is now:
//$plock = get_wpdm_meta($file[‘id’],’password_lock’,true);
//$fileinfo = get_wpdm_meta($package[‘id’],’fileinfo’);

$filepath = str_replace(‘\\’,’/’, $filepath );
$filename = wpdm_basename($filepath);
$filename = preg_replace(“/([0-9]+)[wpdm]+_/”, “”, $filename);

wpdm_download_file($filepath, $filename, $speed, 1, $package);
//@unlink($filepath);

What do I modify to use the file name instead of the string of numbers as before?

Sep 10, 2019 at 12:40 pm
#112277
Participant
Kane Leins
OP
This reply has been marked as private.
Sep 10, 2019 at 12:40 pm
#112276
Participant
Kane Leins
OP
This reply has been marked as private.
Nov 5, 2018 at 5:06 pm
#89065
Participant
Kane Leins
OP
This reply has been marked as private.
Oct 29, 2018 at 5:08 pm
#88793
Participant
Kane Leins
OP
This reply has been marked as private.
Oct 23, 2018 at 9:23 pm
#88554
Participant
Kane Leins
OP

We had to add rel=”noreferrer” to our links on external domains. Is there a better solution or setting we can adjust on the WPDM side so I don’t have to add the rel tag to all links on other domains we own?

Oct 18, 2018 at 2:47 pm
#88311
Participant
Kane Leins
OP

WPDM admin did something and sent an email telling me to try again, I did and it worked. Wish there was more to it, but thats what resolved my issue.

Oct 17, 2018 at 8:12 pm
#88296
Participant
Kane Leins
OP
This reply has been marked as private.
Jul 10, 2018 at 8:02 pm
#80606
Participant
Kane Leins
OP
This reply has been marked as private.
Jul 8, 2018 at 2:59 pm
#80438
Participant
Kane Leins
OP
This reply has been marked as private.
Feb 3, 2018 at 10:37 pm
#69049
Participant
Kane Leins
OP

Scott, can confirm you won’t lose any data – I didn’t. You have to deactivate the plug in, delete it (make sure it is deleted in your directory via ftp) then upload new one. Not ideal, but it is what it is.

Feb 3, 2018 at 2:56 am
#69015
Participant
Kane Leins
OP
This reply has been marked as private.
Feb 3, 2018 at 2:53 am
#69014
Participant
Kane Leins
OP
This reply has been marked as private.
Feb 1, 2018 at 4:02 pm
#68925
Participant
Kane Leins
OP
This reply has been marked as private.
Jan 28, 2018 at 9:10 pm
#68698
Participant
Kane Leins
OP
This reply has been marked as private.
Jan 28, 2018 at 7:47 pm
#68689
Participant
Kane Leins
OP
This reply has been marked as private.
Jan 7, 2018 at 10:18 pm
#67616
Participant
Kane Leins
OP
This reply has been marked as private.
Jan 5, 2018 at 8:17 pm
#67573
Participant
Kane Leins
OP
This reply has been marked as private.
Viewing 25 posts - 1 through 25 (of 29 total)