Matt Lambert

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
in reply to: Show the attached file when visit the package page #207100

Matt Lambert
Participant
This reply has been marked as private.
in reply to: Show the attached file when visit the package page #207088

Matt Lambert
Participant
This reply has been marked as private.
in reply to: Show the attached file when visit the package page #207068

Matt Lambert
Participant

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?


Matt Lambert
Participant

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 4 years, 5 months ago by Matt Lambert. Reason: Add login required message to settings page
Viewing 4 posts - 1 through 4 (of 4 total)