If PayPal is redirecting to the PayPal site that means your API settings are incorrect. Please create a new app and get credentials from there.
Let me know what happens after adding new API credentials. Send temporary wp-admin login info in private reply, after checking I can provide you more details about the issue. But first, please try new PayPal app credentials.
It is based on the default tag. There is no shortcut to support your custom tag. [similar_downloads]
template tag is implemented by the wpdm_similar_packages
function in wpdm-functions.php
file. You can try to tweak that one to create a new template tag. Basically, it requires extensive customization.
Please check if you have [wpdm_direct_link]
shortcode in that page. Maybe id
value is missing from the shortcode.
[wpdm_direct_link] – Embed direct download link as a simple text link
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;
}
Hi,
It is possible but requires a custom solution. You have to create a new template tag based on the file_list_extended
tag. This requires coding experience.
Thanks.
Do you encounter the same issue in new packages? I have tested the apostrophe in the filename. It doesn’t act the way you explained above. Maybe those packages were created using an older version.
Anyway, you can use the following code to bulk update file title based on a match, this will remove all apostrophe and \
from all file names. Run this only once ( visit any page after adding the code to fuunctions.php ) then remove the code.
function wpdm_update_file_title(){
$params = array( "post_status" ► "publish", "post_type"►"wpdmpro","posts_per_page"► -1 );
$q = new WP_Query($params);
while ( $q->have_posts() ) {
$q->the_post();
$filesinfo = maybe_unserialize( get_post_meta( get_the_ID(), '__wpdm_fileinfo', true ) );
if ( ! is_array( $filesinfo ) ) $filesinfo = array();
foreach ($filesinfo as $key ► $fileinfo):
$filesinfo[$key]['title'] = stripslashes( str_replace("'","", $filesinfo[$key]['title'] ) );
endforeach;
update_post_meta(get_the_ID(),'__wpdm_fileinfo', $filesinfo );
}
}
add_action('init','wpdm_update_file_title');
The dropdown is coming from /wpdm-archive-page/tpls/archive-page-extended.php
file. If you want to remove some items then copy this file and place it here /active-theme/download-manager/archive-page-extended.php
and make necessary changes.
https://drive.google.com/uc?id=18sm_ClwrclN-H6VnvygCgqmgEL8R1Du8
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.
Please try activating Bootstrap 3 from Downloads > Settings > User Interface Tab. That should fix the issue. Bootstrap 4 version lacks a template that handles the emailed download link.
Hi,
Default Values doesn’t support the Bulk Import yet but it is in our feature list. Currently, you can bulk update package settings of imported packages using the Dfault Values add-on.
Thanks.
1 ) Use the [free_download_btn]
template tag in your custom page template to display the download button for free files.
2 ) Limit the free download button only to specific user roles. Set your membership roles in the $membership_roles
array.
function wpdm_free_download_btn_restriction($vars){
global $current_user;
$membership_roles = array('role1', 'role2');
if( count( array_intersect( $current_user->roles, $membership_roles ) ) > 0 )
$vars['free_download_btn'] = $vars['free_download_btn'];
else
$vars['free_download_btn'] = "<div class='alert alert-warning'>Subscribe to a membership plan to download free file.</div>";
return $vars;
}
add_filter( 'wdm_before_fetch_template', 'wpdm_free_download_btn_restriction', 10, 1 );
Hi,
The Image Button option is still under development. We will release it as soon as possible. For now, you can use the following code in a custom template to use an image for download button,
<a href="[download_url]"><img src="url_here"/></a>
Thanks.
Please activate the Bootstrap 3 from Downloads > Settings > User Interface Tab. That will fix the issue.
1 ) Select Files using file cart
2 ) Go to the file cart page which will show the list of selected files with a form right below the list. You will select this form in file cart settings.
3 ) After submitting the form a download button will appear which servers all files as a zipped package.
Hi,
This file class.FileList.php
is not a template file, so we can’t override it. But there are other options available to modify the file list.
If you look at the code you will find some filters there to modify various parts. This one individual_file_action
might be useful for you. Using this you can add additional UI after the single file download button in each row.
If that doesn’t work for you, we can override the [file_list]
tag or create a new template tag to show the file description. We will utilize the wdm_before_fetch_template
hook like the following example.
You have to copy the Table
function from class.FileList.php
and place it in your active theme’s functions.php file. Then rename the function to wpdm_file_list
and add the following code right below it,
function wpdm_file_list_tag_mod($vars){
$vars['file_list'] = wpdm_file_list( $vars );
return $vars;
}
add_filter('wdm_before_fetch_template', 'wpdm_file_list_tag_mod');
The new wpdm_file_list
function has a foreach
loop which is rendering the file list, use this $fileinfo[$fileID]['file_description']
to get the file description insdie that loop.
Thanks.
Hi, Canceled auto-renewal of your order. -Best regards.
Please send temporary wp-admin login info in private reply.
The siteowner role’s saving/publishing operation was being blocked by WordFence. Changing the Firewall to “Learning Mode” fixed that. Please try now and let me know the update.
I have updated the code to add time with [update_date]
template tag. Please replace old code with this new version.
Then you can use a package shortcode for each video you want to display. The main point is to create one package for each video. Using package shortcode you can insert relevant videos in your stories.
Hi,
We are looking into this bug. Most probably API version related issue. Google Drive add-on update is coming soon.
Thanks.
You can set template in package shortcode. Use the shortcode with the Button Template [wpdm_package id='2145' template='link-template-button']