This reply has been marked as private.
1 ) Create a page with WPDM Login Shortcode [wpdm_login_form redirect="redirect_url"]
and set it as Login page in Downloads > Settings > Frontend Access page.
2 ) Add the following code to your theme’s functions.php
file,
add_action( 'template_redirect', 'wpdm_login_redirect' );
function wpdm_login_redirect(){
if( ! is_user_logged_in() && get_the_ID() != get_option('__wpdm_login_url') ):
wp_redirect( get_permalink( get_option('__wpdm_login_url') ) );
exit();
endif;
}
The login redirection loop usually appears when the site is not fully secured. In your case, the frontend is not https but after login, you are redirecting the user to an https area. Making both sides https should fix the issue.
Alternatively, you can use yoursite.com/wp-login.php?skipwpdm=1
URL to skip the WPDM login page. Adding this wp-login.php?skipwpdm=1
after site URL will bypass the WPDM Login page even when the Login Page option is set on frontend settings.
Hi,
Have you enabled the archive page from Downloads > Settings > Basic > URL Structure panel? If this option is active but still nothing in archive URL then please send temporary wp-admin login info in private reply.
You can use this addon WPDM Directory Add-on to get more advanced features like ajax search, filter, link template support etc.
Thanks
1 ) Yes, you can modify the email subject and content by customizing email template email-lock
from Downloads > Templates > Email templates Tab.
2 ) The email lock form is using the /download-manager/tpls/lock-options/email-lock-form.php
template. To customize this template, make a copy and place it in /active-theme/download-manager/lock-options/email-lock-form.php
location. Then add your customization in this new template to redirect to a thank you page.
Now, this new template will override the default one. As the file is outside the plugin directory, your customizations won’t be lost during the plugin update.
You just have to add the following line in the marked location http://prntscr.com/q07tv4
location.href = "https://www.impresadievolvere.it/";
Adjust the URL to match your redirect destination.
This reply has been marked as private.
Hi Shahriar,
I have an update on this.
I disabled the theme lazy loading option and instead used a plugin called WPMU Dev Smush. The same thing occured whereby the 48x48px thumbnails disappeared, but this plugin has an option to exclude certain IDs, classes or URLs. I’ve disabled it on the /download/ slug so the thumbs are not affected, but it is working on the main Directory view.
This seems to get around the slow loading problem, but I will have to see how it performs when we add more packages.
Do you think in the future a frontend might be possible that uses ‘actual’ pagination, rather than loading all packages at once?
Thanks,
Luther
This button is linked to a URL which is coming from the __wpdm_acf_LivePreview_sitepreview
custom field. This is useful when you want to add a demo of the product ( i.e. a WordPress theme or template or any other product demo ) you are selling.
Hi,
The fix is noted for implementation. By the way, you can remove the subdirectory from the URL if you want. Just remove the sundir part in “Site Address (URL)” settings.
Thanks.
It is not possible to use the embedded form in all packages table.
Use a custom link template with [download_link_dynamic]
template tag to render the download button based on lock status. Here is the code to implement this tag.
function wpdm_download_link_dynamic($vars){
if ( wpdm_is_locked( $vars['ID'] ) )
$vars['download_link_dynamic'] = $vars['download_link_extended'];
else
$vars['download_link_dynamic'] = "<a class='btn btn-success' href='".$vars['download_url']."' target='_blank'>".$vars['link_label']."</a>";
return $vars;
}
add_filter( 'wdm_before_fetch_template', 'wpdm_download_link_dynamic', 10, 1 );
I’m on version 5.0.2 with all the add-ons up to date and have a few undefined variables and indexes:
PHP Notice: Undefined index: page_template in /public/wp-content/plugins/wpdm-default-values/wpdm-default-values.php on line 69
PHP Notice: Undefined index: template in /public/wp-content/plugins/wpdm-default-values/wpdm-default-values.php on line 71
PHP Notice: Undefined variable: regurl in /public/wp-content/plugins/download-manager/tpls4/wpdm-login-form.php on line 114
PHP Notice: Undefined variable: log_redirect in /public/wp-content/plugins/download-manager/tpls4/wpdm-login-form.php on line 120
PHP Notice: Undefined variable: log_redirect in /public/wp-content/plugins/download-manager/tpls4/wpdm-login-form.php on line 149
Hi. I purchased your Download Manager Pro and ever since I’ve installed it, I had a lot of my guest customers ie. no signups after paypal payment, that they don’t know what to do. At the moment the customers receives an email confirmation order with the download link. Unfortunately, when they click on the link – http://ps-cardiagnostics.com/guest-orders/ they still have to enter order ID and email. At this point, they are clueless even though in the email it contains the order ID. If there an alternative way, where customers do not need to enter these details to get the pdf file. Or a better question is is it possible to include the actual pdf file attach to the email to guest customers after successful payment.
Here is the current purchase confirmation email template to guest
Hello ,
Thanks for your order at [#sitename#].
Your Order ID: [#orderid#]
Purchased Items:
[#items#]
You need to create an account to access your order and to get future updates.
Please click on the following link to create your account:
Signup
If you already have account simply click the above url and login
** If you wish to download quickly without logging in, you can click here. Please make sure that you make a note of your email address and your order ID – [#orderid#]. You need both these information to download the software
Best Regards,
Sales Team, pscardiagnostics@gmail.com
[#sitename#]
There is no global solution for that.
For open packages, If link template is involved solution is here https://www.wpdownloadmanager.com/support/topic/open-pdfs-in-new-browser-tab/
For all packages table use a custom template of wpdm-all-downloads.php
and add the following code after line 288,
if ( ! wpdm_is_locked( $data['id'] ) ){
$download_link = "<a class='wpdm-download-link btn btn-primary' target='_blank' href='".wpdm_download_url( $data['id'] )."'>Download</a>";
}
Hi,
if I add a file with password protection, the download doesn’t work anymore. Only the page opens in a new tab and the URL is extended with #locked. However, this only happens with the DIVI theme. As soon as I change the theme, the password popup works as expected.
Ok, if I use “Link Template Embedded” as the link template for this file, then the password is also asked for. This in turn only works if I enter the short code individually, but not if I use [wpdm_all_packages].
Unfortunately I can’t set up an account for you, because everything runs locally at the moment.
Yes, you can set the guest order page as the return URL. Currently, when user is redirected to the login page after purchase, the login form adds a button below that links to the guest order page. So, it is not lengthy in this way too.
By the way, if you save the Sandbox Client ID and Secret in PayPal settings ( http://prntscr.com/povcm3 ), you can use inline payment whcih is easier for your users ( no redirection to the PayPal, checkout completes on your site ).
The name in this email is mistakenly retrieved from billing info. That’s why it is addressed to the subscriber. We will fix it in the next release.
Replaced all instances of wpmp_url("account"),
with wpdm_login_url()
in /wppromembership/classwpmpemail.php
to fix the login URL.
This reply has been marked as private.
Yes, it is possible. Just have to add some CSS classes, I forgot to add the button classes there. Here is the updated code,
<a class="wpdm-download-link btn btn-primary btn-sm" href="[download_url]" target=_blank>[link_label]</a>
The button text comes from the Link Label option in package settings. Or you can just replace [link_label]
in the code with any text you want.
Hi,
Looks like you have switched to download option instead of opening the file in the browser.
When using the main download button:
To open file in new tab replace [download_link]
with <a href="[download_url]" target=_blank>[link_label]</a>
in your custom page/link template.
If you want to use single file download buttons ( you are using this now ):
Add the following code to your active theme’s functions.php
file to open single file download links in a new tab. We have added target='_blank'
in single file download button using wpdm_single_file_download_link
filter.
Filter documentation: https://www.wpdownloadmanager.com/doc/filter-reference/wpdm_single_file_download_link/
Thanks
Hi,
Download Manager doesn’t add any rule to exclude WPDM packages from google indexing. Webmaster tools won’t exclude the downloads if some kind of settings is in place to exclude those. Another thing to consider, based on site popularity google indexing time may vary. In this case, you can submit your URLs manually for indexing.
Thanks.
Hi,
Do you want to add a package from Frontend? In that case, create a page with [wpdm_frontend flaturl=0]
shortcode. The tab with “Add New” label will provide necessary options to create a new package.
Thanks.
This reply has been marked as private.
Yes, WPDM Amazon S3 add-on has the features you want. It generates a dynamic temporary download URL for S3 files. And you can restrict download access using Download Manager Pro.
Please send your page URL. Maybe adding some custom CSS will do the trick.
Yes, you can attach a URL with the package. The user will be sent to that URL in this case. Use the URL tab from Attach File meta box to add URL.