Matt Lambert

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
Jun 12, 2025 at 11:03 am
#207100
Participant
Matt Lambert
OP
This reply has been marked as private.
Jun 11, 2025 at 8:19 am
#207088
Participant
Matt Lambert
OP
This reply has been marked as private.
Jun 10, 2025 at 11:20 am
#207068
Participant
Matt Lambert
OP

Hi Tahasin,

We are implementing a login or register function to view some of the files. This does not work as intended when you link directly to the file itself using ?wpdmdl or the direct link shortcode. As a permission denied txt file is downloaded, which bypasses any login or register ability by the user. So we are forced to link to the Package URL.

All packages only have one file attached. We want reduce the amount of clicks user needs to do when trying to view our files. We want to eliminate the need for user then click Download button on the package URL if there is only one file. Can the Package URL display (if PDF) or download the file on the package url page if there is only one file?

Feb 26, 2021 at 10:27 am
#147465
Participant
Matt Lambert
OP

Hello Nayeem, thanks for coming back to me. I have checked the documentation and it doesn’t help with my issue. I need WPDM to provide the package id that can be used in the redirect url we provide to the login page. I.E. we want the redirect URL to include ‘wpdmdl=9607’. Where ‘9607’ is the package id.

On the plugins setting page we are using the following code for the ‘Login Required Message’:
<a href="/login/?action=mepr_unauthorized&redirect_to=[this_url]">DOWNLOAD NOW</a>

This is working fine for redirecting back to the page after login, but requires the user to click the link again to download.

If we could append the package id (wpdmdl=9607) to our ‘redirect_to’ querystring, this would redirect the user back to the page and start/display the download.

Is this possible, thanks.

  • This reply was modified 5 years ago by Matt Lambert. Reason: Add login required message to settings page
Viewing 4 posts - 1 through 4 (of 4 total)