Hi – I’m trying to setup the PAD importer and it all works, but I need a slight configuration change. I want just the PAD submit URL field and not the email field. Basically so anyone can just submit a PAD file rather than have to put in an email address. I know it can be done as I’ve done it before, but I cannot remember how to do it!
Any ideas?
For opening in new windows, please add this code replacing [download_link] in page/link templates PHP file as i described above,
<a href="[download_url]" onclick="window.open('[download_url]','newwindow','width=1200,height=800'); return false;" class="btn btn-primary" target="_blank">[link_label]</a>
thanks
Please add this code in your theme functions.php
add_filter( 'wp_nav_menu_items', 'wpdm_loginout_menu_link', 10, 2 );
function wpdm_loginout_menu_link( $items, $args ) {
if ($args->theme_location == 'primary') {
if (is_user_logged_in()) {
$items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("Log Out") .'</a></li>';
} else {
$items .= '<li class="right"><a href="'. wp_login_url(get_permalink()) .'">'. __("Log In") .'</a></li>';
}
}
return $items;
}
it should return login and a logout menu both
thanks
Please add this code in your theme functions.php
add_filter( 'wp_nav_menu_items', 'wpdm_loginout_menu_link', 10, 2 );
function wpdm_loginout_menu_link( $items, $args ) {
if ($args->theme_location == 'primary') {
if (is_user_logged_in()) {
$items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("Log Out") .'</a></li>';
} else {
$items .= '<li class="right"><a href="'. wp_login_url(get_permalink()) .'">'. __("Log In") .'</a></li>';
}
}
return $items;
}
it should return login and a logout menu
thanks
This reply has been marked as private.
This reply has been marked as private.
please use the below code in your theme functions.php
add_filter("wpdm_single_file_download_link", function($actions, $fileID, $package)
{
$url = add_query_arg(['wpdmdl' ► $package['ID'], 'ind' ► $fileID], home_url('/'));
$actions = "<a href='#' data-downloadurl='$url' class='btn btn-sm btn-primary wpdm-download-link download-on-click'>Download</a>";
return $actions;
}, 1, 3);
it will mask the single file download URL too
thanks
Hello,
So everything is working, checked the php file but I can not find a way to edit this space: https://pedrasriscas.pt/wp-content/uploads/2020/10/Captura-de-ecrã-2020-10-28-às-10.18.29.png
Can you please help me?
The file code is:
<!– WPDM Link Template: 1 Column, Extended –>
<div class=”link-template”>
[thumb_350x250]
<div style=”clear: both;”></div>
<h3 style=”margin: 10px 0;padding: 0;font-size: 12pt”>[title]</h3>
<table class=”table-striped table-bordered table”>
<tbody>
<tr><td>Size</td><td>[file_size]</td></tr>
<tr><td>Last Updated</td><td>[update_date]</td></tr>
</tbody></table>
</div>
please check from Settings > General WordPress Address (URL) Site Address (URL) same or not, I think this also cause the issue, please check further,
thanks
There also available default link and page template in the package settings > dropdown page or link templates, but if you want to bulk apply to the all packages, you can use this add-on, https://www.wpdownloadmanager.com/download/wpdm-default-values/, and for login issue, please share your package URL
thanks
I have the same issue, no cache turned on expect by default in browser. Perhaps the solution would be to add a random parameter at the end of url like ?random=04u3r10r032rweq to prevent browser from caching the link…
Hi,
Here are the answers to your questions:
#1. Yes, please use redirect=[URL] parameter with the login form shortcode to redreict the user to any specific [URL]. Doc: https://www.wpdownloadmanager.com/doc/short-codes/wpdm_login_form-user-login-form-short-code/
#2. Sorry, not clear, may you please explain little more.
#3. Here is the doc: https://www.wpdownloadmanager.com/doc/add-new-package/package-settings/
no! I actually added a new Volume to my digital ocean account which is /mnt/volume_nyc1_05. My default volume is full, so i want this new volume to work in your plugin. Since I configured the volume properly, I changed the directory or file browser URL to the new /mnt/volume_nyc1_05. If i upload any new file, it fails! Not uploading it to the new volume. It’s still trying to upload to the old volume.
are you looking for such add-on which will help your Digital Ocean Volume, you can elaborate more on your query, or share your page/package URL
thanks
Solved this myself by copying the code you use in wpdm-functions.php function wpdm_logout_url so my finalised code for my custom function is:
/* ADD NONCE TO LOGOUT LINK */
function change_menu($items){
foreach($items as $item){
if( $item->title == "Logout"){
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
}
}
return $items;
}
add_filter('wp_nav_menu_objects', 'change_menu');
Where the change was from
$item->url = $item->url . "=" . wp_create_nonce( 'login' );
TO
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
For anyone interested in having TWO wordpress menus – one for logged in ( named logged-in ) and one for logged out ( named logged-out ) that switch when you are logged in or not PLUS having a Logout Link that behaves just like the WPDM logout links AND the ability to display login text messages to people not logged in, the three adds to your child theme functions.php is as follows:
/* LOGGED IN / LOGGED OUT MENU */
function my_wp_nav_menu_args( $args = '' ) {
if( is_user_logged_in() ) {
$args['menu'] = 'logged-in';
} else {
$args['menu'] = 'logged-out';
}
return $args;
}
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
/* ADD NONCE TO LOGOUT LINK */
function change_menu($items){
foreach($items as $item){
if( $item->title == "Logout"){
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
}
}
return $items;
}
add_filter('wp_nav_menu_objects', 'change_menu');
/* LOGGED OUT MESSAGE TO REGISTER OR LOGIN */
add_shortcode( 'visitor', 'visitor_check_shortcode' );
function visitor_check_shortcode( $atts, $content = null ) {
if ( ( !is_user_logged_in() && !is_null( $content ) ) || is_feed() )
return $content;
return '';
}
To use the visitor only text shortcode in a page or widget just do E.G.:
[visitor]
<div class=”card card-body bg-light”>
You must register or login
to download files from this site.</div>
[/visitor]
Thanks,
Ben
Hi,
I’ve installed and activated the pdf stamper add-on on your site, it is working fine ( https://ieltstestonline.com/download/ielts-writing-ebook-general-training/ ). But, for now, you have to attach PDF file using the server file browser ( as server file path ) instead of the media library URL to stamp properly.
Hi,
please make the same URL in WordPress Address (URL) and Site Address (URL), they were not same, so the problem was creating, I hope it will resolve the problem, it is in Settings > General Settings

now while adjusting it, some problem has been created, sorry for this, for fixing this please follow below procedures,
Fix #1: Changing the WordPress Site URL by Editing the wp-config.php file
Login to your WordPress hosting cPanel.
Under the Files section, click on File Manager, OpenFile Manager and in your WP folder directory search for a file called wp-config.php and click on Edit File,
define('WP_SITEURL', 'https://www.example.com');
define('WP_HOME', ' https://www.example.com');
Fix #2: Changing WordPress site URL via phpMyAdmin
Login to your hosting cPanel and open phpMyAdmin
Select the database of your WordPress site from the left sidebar
Select wp_options table
Note: wp_ prefix may differ depending on your WordPress installation settings

edit those and save
I hope your problem will be solved,
thanks
This reply has been marked as private.
I have had two issues with the latest version of WPDM. When I tried to update to V5.2.3 automatically I got an update error from WordPress complaining about the zip file. So I downloaded the zip file manually from your website and installed it manually. It seemed to work, but…
For the two latest files I have uploaded to our website after upgrading to 5.2.3 I get the message:
This site can’t be reached
The webpage at https://acfconsultants.com/download/gsccd/?wpdmdl=33569&_wpdmkey=5f71931115258 might be temporarily down or it may have moved permanently to a new web address.
ERR_UNSAFE_REDIRECT
I noted that the wpdmkey in the above URL is different from the master key in the WPDM editor. If I substitute the Master Key for the above URL, I then get:
— Invalid download link —
Older files uploaded with the previous version of WPDM still work fine.
This reply has been marked as private.
Hi WPDM Team,
I was setting up email templates and realized that the reset link redirects the user to a wrong address. Apparently, it’s the first part of the URL (https://www.) written in the code somehow as (www.https.com/www.website.com). As suggested in the template, I am using the shortcode [#reset_password#].
I am attaching the Image below in private message.
Thank You!
For myself, nothing works in terms of attempting to add a new file on the Add New screen (i.e. drag/drop into the green shaded square, the green “Select File” button, URL, Select from Media Library or Select from Server). If I click on any of the buttons absolutely nothing happens ditto for attempting drag/drop
Are you feel comfortable looking the page now? https://readymixqatar.com.qa/download/product-technical-library/, I have added a line before attached file Go to Cart for Downloading the files, Cart Page, but one problem is still there in your cart page when somebody trying to download, the error is showing in the console as i image attached that preventing for download,

can you disable other plugins for checking if there any conflicts coming from, also you can switch theme to others for checking? hearing back from you further.
Thanks.
File Icons Issue
I found this post, and replaced pcb with flame and added where I thought it should go, didn’t make a difference. Looking at the code..
$fticon = WPDM_BASE_URL.'assets/file-type-icons/'.$ext.'.svg';
if(!file_exists(WPDM_BASE_DIR.'assets/file-type-icons/'.$ext.'.svg'))
$fticon = WPDM_BASE_URL.'assets/file-type-icons/unknown.svg';
From filelist.php that is looking for an SVG file that matches the extension of the file ? Otherwise it uses unknown.svg ? I added flame.svg to that folder, but still showing the “unknown” icon.
Hi
I have Am WP Pro Membership installed. I have one overview page with links to a couple of other pages that are assigned to a certain membership. Now, after working fine for quite some time, suddenly the links on the overview page don’t bring my to the targeted member page but somehow the overview page is showing again – although the url of the targeted member page is shown correctly in the browser address field.
Any ideas what might be the reason?
Theme is Divi.
Best