Paul

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)

Paul
Member

Will any customised or new templates be overwritten by doing this please?


Paul
Member

Apologies – the problem was caused by the change in the physical path on the new server.
Download manager is working correctly on the existing licence for this domain.


Paul
Member

Thanks, how can I remove the site URL which is suffixed by “/wpdmpro/wpdmpro/”
http://www.whyonearthareyouhere.com/wpdmpro/wpdmpro/


Paul
Member

Apologies Shaon – the code above is working fine.
The “Download Limit Exceeded” error was because I set the download limit to 1 per user and I was using the same email address to test it.
The link in the code above has not reproduced correctly, wrapping the code in a tag does not stop the browser from rendering the link.


Paul
Member

Thanks for the reply – it’s nearly working.
Made the modification to getlink() as below (no other changes to this function were made other than the below).
Stopped the mail function being called and now include $download_url in “alert-success”
The link produced looks like this: ?wpdmdl=1&_wpdmkey=511a48072ee28
Clicking on it takes you to a page saying “Download Limit Exceeded” and the document does not download.
How I can fix this please?

// wp_mail( $_POST['email'], stripcslashes($eml['subject']), stripcslashes($message), $headers, $attachments );
$data['downloadurl'] = "";
$data['error'] = 'Click on this link to complete your download';
header('HTTP/1.0 200 OK');
header("Content-type: application/json");
echo json_encode($data);
die();


Paul
Member

Okay great.
I would like to disable the email send and just allow access to the file when the name and email address have been entered.
Please can you give me a steer on the customisation – I am happy to change the code.

Viewing 6 posts - 1 through 6 (of 6 total)