Shahriar

Forum Replies Created

Viewing 25 posts - 551 through 575 (of 12,513 total)
Nov 14, 2019 at 8:51 am
#114878
Moderator
Shahriar
Staff OP

By content do you mean some texts? You can use a custom template tag to show/hide messages based on visitors’ login status. Here is an implementation using wdm_before_fetch_template hook. You have to add the code to your theme’s functions.php file. Use the tag [message_to_visitors] in your custom link/page template.

function wpdm_message_to_visitors($vars){
    global $current_user;

    if( ! is_user_logged_in() )
        $vars['message_to_visitors'] = "Only a guest ( not logged in ) will see this message.";
    else
        $vars['message_to_visitors'] = "";

    return $vars;
}
add_filter('wdm_before_fetch_template', 'wpdm_message_to_visitors');
Nov 14, 2019 at 8:13 am
#114877
Moderator
Shahriar
Staff OP

Added the following code to your child theme’s functions.php This changes the post status to “schedule” when a future date is sent from the frontend uploader as post date,

function wpdm_change_post_status($id, $post){
    $publish_date = $_POST['post_date'];
    $post->post_date = $publish_date;
    $post->post_date_gmt = $publish_date;
    wp_update_post($post);
}
add_action('edit_package_frontend', 'wpdm_change_post_status', 10, 2);
add_action('create_package_frontend', 'wpdm_change_post_status', 10, 2);
Nov 13, 2019 at 9:21 pm
#114868
Moderator
Shahriar
Staff OP

Please send temporary wp-admin login info as a private reply. I will adjust the code there to add the feature.

Nov 12, 2019 at 9:07 pm
#114841
Moderator
Shahriar
Staff OP

Hi,

If you save only PayPal email address in the settings you have to Enable PayPal IPN Notification to complete the payment. In this approach user is redirected to the PayPal site to complete the paymet.

If you have created a PayPal app ( https://developer.paypal.com/developer/applications/create ) then get app credential from App settings. You have to save both Live and Sandbox Client ID and Client Secret. When these options are saved in Premium Package settings, you do not have to set up IPN. This checkout method is inline, which means the user stays on your site during checkout. If everything is okay with settings then you will see the “PayPal Checkout” button when selecting the PayPal option in checkout page http://prntscr.com/poquyv

Setting up PayPal smart button for Premium Packages – Digital eCommerce plugin

Thanks.

Nov 12, 2019 at 8:01 pm
#114836
Moderator
Shahriar
Staff OP

Please add the following code to your active theme’s functions.php file to remove the title prefix,

function wpdm_remove_the_title_prefix($title) {
    $findthese = array(
        '#Protected: #',
        '#Private: #'
    );
    $replacewith = array(
        '', // What to replace "Protected: " with
        '' // What to replace "Private: " with
    );
    $title = preg_replace($findthese, $replacewith, $title);
    return $title;
}
add_filter('the_title', 'wpdm_remove_the_title_prefix');

By the way, you can restrict the download without setting the package as private. Utilize the pacakge access permissions.

Nov 12, 2019 at 7:54 pm
#114835
Moderator
Shahriar
Staff OP

Hi,

Masterkey is meant to override the permission settings. If you want to share the download only restricted roles then use just a simple download link without the masterkey.

Thanks.

Nov 12, 2019 at 7:36 pm
#114834
Moderator
Shahriar
Staff OP

Hi,
If you want to make any change to the template then clone it and edit the cloned copy. Here is a detailed tutorial on that https://www.wpdownloadmanager.com/building-a-wordpress-download-manager-link-template-from-scratch/
Thanks.

Nov 12, 2019 at 7:33 pm
#114833
Moderator
Shahriar
Staff OP

Please install and activate the WPDM REST API to fix the issue.

Nov 12, 2019 at 7:28 pm
#114832
Moderator
Shahriar
Staff OP

Sorry for the delay. It is a bug in the template file. The tag should be [file_list_extended_64x64x3] The numbers represent width, height, columns. Please modify the template file /tpls/page-templates/page-template-1col-ex.php to fix the issue or edit a cloned copy.

Nov 12, 2019 at 7:20 pm
#114831
Moderator
Shahriar
Staff OP

We have the plan to implement this feature in Download Notifications add-on https://www.wpdownloadmanager.com/download/download-notifications/ Currently the add-on sends a notification to admin when someone downloads a package.

Nov 12, 2019 at 7:19 pm
#114830
Moderator
Shahriar
Staff OP

Do you want to target the file upload or package update? It is easier to target the package update action. You can use the save_post hook in that case.

Nov 12, 2019 at 7:15 pm
#114829
Moderator
Shahriar
Staff OP

Please add the following code in importRow function. Import process will skip the pacakge if another package exists with same title.

$title_match = get_page_by_title($csv_row['title'],ARRAY_A,'wpdmpro');
        if( is_array( $title_match ) ) return;

http://prntscr.com/pw1tx0

Nov 12, 2019 at 7:00 pm
#114825
Moderator
Shahriar
Staff OP

Okay, We will add a cart widget in the next release of the Premium Package. For now link the cart page as menu item.

Nov 12, 2019 at 6:50 pm
#114824
Moderator
Shahriar
Staff OP

Please check now http://prntscr.com/pw1i8m

Nov 12, 2019 at 5:51 pm
#114823
Moderator
Shahriar
Staff OP

Does this change solve the issue in your case?

Nov 12, 2019 at 5:46 pm
#114822
Moderator
Shahriar
Staff OP

I have to check your package to find out what’s going on. Please send temporary wp-admin login info in private reply.

Do you want to show the package count? I can also hide it using another link-template if you want.

Nov 12, 2019 at 5:44 pm
#114821
Moderator
Shahriar
Staff OP

There should be a notification of update operation http://prntscr.com/pw0jnu If you can’t see this on your site, maybe there is a CSS/JS issue. Also deleted files are removed from the list after package update. Please send temporary wp-admin login info in private reply if you want me to take a look there.

Nov 12, 2019 at 5:37 pm
#114819
Moderator
Shahriar
Staff OP

Yes, that’s the patch.

Nov 12, 2019 at 5:36 pm
#114818
Moderator
Shahriar
Staff OP

Hi,

It is not possible yet to modify the name from outside. The renaming is done by $filename = time().'wpdm_'.$name; You will find this code in /download-manager/admin/menus/class.Package.php file.

Best regards.

Nov 12, 2019 at 5:32 pm
#114816
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Nov 12, 2019 at 5:22 pm
#114815
Moderator
Shahriar
Staff OP

Added custom code to display a message instead of a download button for this specific download. We will add a filter in the next version to modify the after submission message which you can utilize to personalize any specific package submission.

Nov 12, 2019 at 4:36 pm
#114811
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Nov 12, 2019 at 4:29 pm
#114810
Moderator
Shahriar
Staff OP

1 ) Download limit doesn’t apply on packages you purchased means you can download your purchased files as many times as you want from Dashboard > Purchases tab.

2 ) Yes, it is possible in Pre Paid credits using a combination of Rollback and Karma Points features. Please create a new ticket if you have further queries about this.

Nov 12, 2019 at 4:04 pm
#114809
Moderator
Shahriar
Staff OP

1 ) Add window.scrollTo(10, 10); to scroll to the top http://prntscr.com/pvz57x

2 & 3 ) No easy way, require extended customization.

Nov 12, 2019 at 3:49 pm
#114808
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Viewing 25 posts - 551 through 575 (of 12,513 total)