Download modal

Viewing 10 posts - 1 through 10 (of 10 total)
#136789

Dan Gauc
Participant

Hi,
I have done settings to enable the following in the Lock options:
– Must Agree with Terms
– Enable Captcha Lock

When a user clicks to download a file the download modal is loaded. Users agrees to terms and the re-captcha is loaded successfully. User is allowed to download file multiple times until the user gets a message to save a file link-expired.txt which contains this message:
Download link is expired. Please get new download link.

Is it possible to set the modal that once the user clicks on download, the modal closes, and user is redirected back to a specific page?

Thank you.

D

#136808

Nayeem Riddhi
Moderator

Please, give your temporary wp-admin login details in a private reply for checking the issue.

Thanks.

#136924

Dan Gauc
Participant
This reply has been marked as private.
#136938

Nayeem Riddhi
Moderator

The download is working fine from my side. I have attached URL for this,

please check

Thanks.

#136944

Dan Gauc
Participant
This reply has been marked as private.
#136953

Nayeem Riddhi
Moderator

You can simply close the modal pressing the close icon of the model.

Thanks.

#136955

Dan Gauc
Participant

Yes, I know but I thought it would be better if it closed automatically once the download is complete – can this be done?

Also, I would like to avoid user pressing download button multiple times – can this be done? At the moment user can continue clicking (until session closes, for example three times) then they get a windows pop-up to open or save link-expired.txt. The text file contains this message:

Download link is expired. Please get new download link.

I do not feel that it is right – what do you think? Thank you!

#137015

Nayeem Riddhi
Moderator

Yes possible,

please put the below code after this line,

jQuery('#reCaptchaLock_<?php echo $package['ID']; ?>').html('<a href="'+res.downloadurl+'" class="wpdm-download-button btn btn-secondary btn-lg"><?php _e( "Download" , "download-manager" ); ?></a>');

like

jQuery('#reCaptchaLock_<?php echo $package['ID']; ?>').html('<a href="'+res.downloadurl+'" class="wpdm-download-button btn btn-secondary btn-lg"><?php _e( "Download" , "download-manager" ); ?></a>');

 setTimeout(function () {
                    jQuery('#wpdm-locks').modal('hide');
                }, 5000);

from this path plugins\download-manager\tpls\lock-options\recaptcha-lock.php file.

The modal will close after 5 sec. downloading the file.

And for making back-up the tpls file, you can follow this doc, https://www.wpdownloadmanager.com/doc/template-files/

Thanks.

#137039

Dan Gauc
Participant

Thank you.
It worked perfectly!

#137108

Nayeem Riddhi
Moderator

You are most welcome. we are always here for giving you services. If you like our services, if you have free time, please give us a 5* here, https://wordpress.org/support/plugin/download-manager/reviews/, we will be very encouraged in our work.

Thanks.

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

The topic ‘Download modal’ is closed to new replies.