Shahriar

Forum Replies Created

Viewing 25 posts - 551 through 575 (of 12,513 total)
in reply to: Restrict Content to Visitors only #114878

Shahriar
Moderator

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');
in reply to: Publish Date Picker on Front End #114877

Shahriar
Moderator

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);
in reply to: Email lock – user one time subscription #114868

Shahriar
Moderator

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

in reply to: Auto download after paying via paypal #114841

Shahriar
Moderator

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.

in reply to: How to remove "Private:" from Download title #114836

Shahriar
Moderator

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.


Shahriar
Moderator

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.

in reply to: change template #114834

Shahriar
Moderator

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.

in reply to: Category options no longer available in new package #114833

Shahriar
Moderator

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


Shahriar
Moderator

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.

in reply to: notifications for a new downloads? #114831

Shahriar
Moderator

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.

in reply to: Action (send E-Mail) on Upload in Backend #114830

Shahriar
Moderator

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.


Shahriar
Moderator

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

in reply to: Checkout or Cart shortcode #114825

Shahriar
Moderator

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

in reply to: WordPress in Subdirectory #114823

Shahriar
Moderator

Does this change solve the issue in your case?

in reply to: Packages Not Showing #114822

Shahriar
Moderator

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.


Shahriar
Moderator

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.

in reply to: Warning: count(): Parameter #114819

Shahriar
Moderator

Yes, that’s the patch.

in reply to: Filename prefix #114818

Shahriar
Moderator

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.


Shahriar
Moderator
This reply has been marked as private.
in reply to: Form Lock not working (again) #114815

Shahriar
Moderator

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.

in reply to: Download Link is expired #114811

Shahriar
Moderator
This reply has been marked as private.
in reply to: Allow paid purchases after download limit reached #114810

Shahriar
Moderator

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.

in reply to: Questions About Pagination #114809

Shahriar
Moderator

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

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


Shahriar
Moderator
This reply has been marked as private.
Viewing 25 posts - 551 through 575 (of 12,513 total)