You can add the following code before die('ok'); in createPackage ( file: wpdm-file-hosting.php ) to send an email to admin when a new package is created.
\WPDM\Email::send("new-package-frontend", array( 'package_name' ► $pack['post_title'], 'name' ► $current_user->user_nicename, 'author' ► "<a href='".admin_url('user-edit.php?user_id='.$current_user->ID)."'>{$current_user->user_nicename}</a>", 'edit_url' ► admin_url('post.php?action=edit&post='.$id)));
This reply has been marked as private.
1 ) Looks like you have installed the PayPal Pro add-on. Please save your Live API credentials in PayPal Pro settings ( Settings > Premium Package > Payment > PayPal Pro ). Follow the link in the settings page to get the keys.
2 ) Modified the search behavior to add matches from all post types. One thing to consider though, all your posts don’t have the same metadata. So, when displaying search result some cards might lack few metadata.
function wpdmpro_search_filter($query) {
if ($query->is_search && !is_admin() ) {
$query->set('post_type', array('post','page','wpdmpro') );
}
return $query;
}
add_filter('pre_get_posts','wpdmpro_search_filter');
3 ) Updated header image by editing #featured-slider-container div homepage-blocks/homepage-top.php file. Here is the updated style for future reference.
background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('<?php echo WPEdenThemeEngine::NextGetOption('header_bg'); ?>') center;
Looks like it isn’t possible to fix the URL without code customization. You have to add this code
if( is_tax('wpdmcategory') ) $burl = get_term_link(get_queried_object());
right after $burl = get_permalink(); in /download-manager/wpdm-functions.php file.
Another option is available which doesn’t involve changing the core plugin code. But it is a bit lengthy. Create a new category shortcode using wpdm_category and wpdm_embed_category functions. You just have to replace the $burl = get_permalink(); part as I suggested above.
This reply has been marked as private.
This reply has been marked as private.
Hi,
Thanks for reporting the issue. There is a bug in the AJAX request we are sending to generate the URL. It is always sending 3 ( Usage Limit ) & 60 ( Expire After ). Adding a patch in next release to fix this. Next version is coming pretty soon.
Best regards.
This reply has been marked as private.
Go to Downloads > Settings > Basic > Access Settings > When user is not allowed to download: option and set “Hide Everything” as active value. Now users won’t be able to see other’s files.
About the login redirect. It is also possible using custom code. Set the login page URL in Downloads > Settings > Frontend and add the following code to your theme’s functions.php file. Replace the place_your_url_here with the actual redirect destination URL. Now users will be redirected to this URL after login.
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( "place_your_url_here" );
exit();
endif;
}
BTW you can use this URL: yourdomain.com/user-profile/?user=*name* but I wanted to add more information on the seller!
Most online stores usually have the option to see all the items from a Seller FROM a single item page. FWIW here is how I implemented this feature using Verse Theme.
1. I use the ‘jabber’ field to create a unique 10-digit code for each Seller (not going to use this field for anything else)
2. I create a unique ‘Category’ for each Seller
3. I then create a Seller Page using the ‘jabber’ code as the permalink and WPDM shortcode to display all items from the sellers category.
4. When a new package is created, simply add it to the seller’s unique Category and it is now automatically added to the list display on the Seller Page.
Verse only ever uses one page to display an item – singel-wpdmpro.php which can run in the child theme.
5. Edited so that instead of just showing the ‘Display Name’ of the package author, IF there is text in the ‘jabber’ field it displays the name as a link to the Seller Page simply appending the ‘jabber’ field to the link URL.
——————-
Yes it’s a bit of a hack, yes I could have used unique ID’s, yes I could have messed around with functions and a whole lot more. But since I have to create a Seller page manually anyway, none of that really makes any significant difference to the effort.
It works perfectly fine, worst case scenario is a 404 AND it doesn’t require any core code edits – but if anyone has a more elegant solution I’m all ears.
1 ) Your server is blocking the saving operation. If you are hosting on Siteground add following rule in your .htaccess file to fix the issue,
<IfModule mod_security.c>
SecFilterRemove 001868
</IfModule>
2 ) You need Advanced Access Control add-on. Using this add-on you can assign package based on username. Please check details here https://www.wpdownloadmanager.com/download/advanced-access-control/
3 ) You can paste URL and save settings. I see there is an issue with the button, will fix it soon. The profile image comes from gravatar. User can set their gravatar from https://en.gravatar.com/ It is a service that globally sets you avatar based on the email address.
4 ) Please try deactivating other plugins. Maybe one of those restricting the password reset for specific roles.
You can add redirect URL in registration form shortcode. User will be redirected to that page after registration. You can also add autologin="true" with the shortcode. It will automatically log the user.
[wpdm_reg_form redirect="http://www.cbsconsulting.com.au/dashboard/" autologin="true"]
You can see the registered user in WordPress users page. Downloads > Subscribers list the info collected from email lock, not your users.
Thanks
You’re right. The solution above won’t work on the Image Button add-on. Please send me the page URL to check your use case. Are you trying to open files in the browser?
1 ) It is not possible yet to add category slug in the package URL.
2 ) Category URL base is different than the package URL base. Please check it from Basic > URL Structure option or just go to Downloads > Categories page and visit a category page. It will reveal the category URL base.
3 ) Category pages use your theme’s category archive template. If you want a custom category archive for packages then create one. The file name is taxonomy-wpdmcategory.php You can download one of our free themes and take a look at a sample of this template.
This reply has been marked as private.
I added the patch to line 778 and password lock still does not work. Other ideas? This is getting really annoying.
$_data[‘downloadurl’] .= ‘&ind=’.$_POST[‘wpdmfile’];
So you want to redirect the user to different pages after logout based on user role. This is not a plugin feature nor it should be one. Anyway, I have added the following code to your theme’s functions.php file to implement it.
function wpdm_custom_redirect_after_logout() {
if (!current_user_can('manage_options')) {
$url = '/login-page/';
} else {
$url = '/wp-login.php';
}
$redirect_url = home_url( $url );
wp_safe_redirect( $redirect_url );
exit;
}
add_action( 'wp_logout', 'wpdm_custom_redirect_after_logout' );
The problem appears to be related to the “ID” attribute in the Database. When I added the file through the browser on the User interface, it assigned the following ID: 1565127651367
a:1:{i:1565127651367;s:133:”/nas/content/live/vbvprod/wp-content/uploads/TechnicalData/Electric Actuators/EOM Nema 4x/BVC EOM PB CONTROL CARD SETUP PROCEDURE.doc”;}
This corresponds with the ID at the end of the URL for direct access: https://valuebutterflyvalves.com?wpdmdl=4541&ind=1565127651367
The problem, however, is that there currently exist IDs from the development site database, all of which are 0.
How do I get around this issue?
Best,
Brennen
Please use following CSS to change button hover style,
.w3eden a.btn:hover, .w3eden a.btn:hover {
border: 1px solid #ef3d24 !important;
color: #ef3d24 !important;
border-radius: 0px;
background: transparent;
box-shadow: none;
}
Use custom link/page template to add icon. Replace the [download_link] with the following code,
<a href="[download_url]" class="btn btn-primary"><i class="fas fa-download"></i>[link_label]</a>
This reply has been marked as private.
This reply has been marked as private.
Temporary user doesn’t have access to the plugin editor, so couldn’t add the patch there.
Please add the following code after line 777 in /download-manager/libs/class/Apply.php. Single file download in a password locked package should work after that.
$_data['downloadurl'] .= '&ind='.$_POST['wpdmfile'];
You can use support@wpdownloadmanager.com for temp admin or use one of your address. Just send me the username, password and login URL.
In multisite setup, each subsite has it’s own /uploads/download-manager-files/ directory. Could you please check if you subsite /uploads/download-manager-files/ directory contains the attached file. Maybe the file is available only in main /uploads/download-manager-files/
Copying the files from the main /uploads/download-manager-files/ to subsite /uploads/download-manager-files/ will fix the issue for old packages.
And for new packages, the file will be uploaded the subsite directory automatically.
1 ) Free Download Button takes the label from “Link Label” option of package settings. As a premium package doesn’t have another download button ( Main download button is “add to cart” button ) unless you are using Membership add-on. In case of membership, both button shows the same label when the user has access to the package from a subscription.
The solution is using [free_download_url] template tag in your custom link/page template instead of [free_download_btn]. When using [free_download_url] you can define the button label from your shortcode.
<a href="[free_download_url]" class="btn btn-lg btn-info btn-block">Download Free File</a>
2 ) It is not possible to hide the free download button for subscribers. You need a custom template tag for that. Use wdm_before_fetch_template hook to create a custom template tag https://www.wpdownloadmanager.com/doc/filter-reference/wdm_before_fetch_template/
3 ) Individual download for free files: Not possible yet but noted for implementation.