Shahriar

Forum Replies Created

Viewing 25 posts - 751 through 775 (of 12,513 total)
Oct 31, 2019 at 9:37 pm
#114211
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 31, 2019 at 9:28 pm
#114210
Moderator
Shahriar
Staff OP

Yes, you can update the plugin. View details modal won’t show anything becasue the plugin is not hasted in the wp.org

Oct 31, 2019 at 9:21 pm
#114209
Moderator
Shahriar
Staff OP

Yes, you have to add this again after the update. But we have the plan to take the date format from the setting, if that happens no changes will be necessary after the update.

Oct 31, 2019 at 9:19 pm
#114208
Moderator
Shahriar
Staff OP

This message will be shown to visitors when the package requires signup to access the download ( allow access option is set to some use roles ).

Also, you have to uncheck the “Show Only Login Form Instead of Login Required Message ” option, if this option is checked a login form will be shown instead.

I have tested this with one of your packages and it works http://prntscr.com/pqucq7

Oct 31, 2019 at 9:12 pm
#114206
Moderator
Shahriar
Staff OP

Not possible when “Login redirect” is deactivated. You can activate the login redirect but use the following URL when you want to access the admin side, the skipwpdm=1 parameter bypasses the login redirect.

https://cigwpstaging.wpengine.com/wp-login.php?skipwpdm=1

Oct 31, 2019 at 8:58 pm
#114204
Moderator
Shahriar
Staff OP

Added the following JS in /tpls/metaboxes/attach-file.php to fix the tab conflict with your theme.

jQuery('#ftabs ul.nav-tabs li a').on('click', function () {
        var tab = jQuery(this).attr('href'); //alert(tab);

        jQuery('#ftabs ul.nav-tabs li.active').removeClass('active');
        jQuery(this).parent().addClass('active');

        jQuery('#ftabs .tab-content .tab-pane.active').removeClass('active');
        jQuery(tab).addClass('active');
});

By default, the frontend uploader doesn’t have the “Download Availability Period” feature. But I have added this on your site by editing /tpls/wpdm-add-new-file-front.php

To keep this customization safe from plugin update created custom template for both files and placed those in /divi-child/download-manager/ directory.

Adding stats in frontend uploader required detailed code customization https://www.wpdownloadmanager.com/download/custom-upgrade-service/

Oct 31, 2019 at 8:14 pm
#114202
Moderator
Shahriar
Staff OP

Password locked files are opening in a new tab by default. Please send temporary wp-admin login info in private reply if it acts differently on your setup.

Oct 31, 2019 at 7:43 pm
#114199
Moderator
Shahriar
Staff OP

Please send me those values to check. Create 2 separate text files.

Oct 31, 2019 at 7:41 pm
#114198
Moderator
Shahriar
Staff OP

@bgmarketing, thanks a lot for your kind support.


@kodo
, Please send temporary wp-admin login info in private reply. It looks like an issue related to theme or plugin conflict.

Oct 31, 2019 at 7:37 pm
#114197
Moderator
Shahriar
Staff OP

If you add the ID column then import process will update the package ( it will find the package using ID ), no new package will be created if the ID column exists in the CSV. Also, if there is no existing package of provided ID nothing will happen.

Oct 31, 2019 at 7:33 pm
#114196
Moderator
Shahriar
Staff OP

Hi,

Please remove <div>{{ user.email }}</div> from line 36 in /wpdm-private-message/tpls/message-form.php file. That will remove the email.

Thanks.

Oct 31, 2019 at 7:27 pm
#114194
Moderator
Shahriar
Staff OP

Everything looks okay there.

Oct 31, 2019 at 7:21 pm
#114193
Moderator
Shahriar
Staff OP

Thanks, noted.

Oct 31, 2019 at 7:17 pm
#114191
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 31, 2019 at 7:11 pm
#114190
Moderator
Shahriar
Staff OP

1 ) You don’t have to change any part of the provided code. Use it as is. wpdm_package_membership_levels is just function name which doesn’t have any relation to membership plugin. 10 is action priority and 1 is accepted arguments, these are technical things. If you want to know more please check action hook documentation from wp.org

To show only the lowest required role, first, you have to rank them then pick the lowest one. And obviously that would required further customization of the code. But try this code first.

2 ) yes, you have to add this code to your theme’s functions.php file.

3 ) This code will take care of all membership levels. The rendered value of [membership_levels] will come from package settings “Allow Access” option.

Oct 31, 2019 at 6:51 pm
#114188
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 31, 2019 at 6:47 pm
#114187
Moderator
Shahriar
Staff OP

1 ) When there are multiple categories separate categories using a comma. You have to warp all categories inside double quotations. Usually, CSV editors take care of that automatically.

2 ) If you want to update the old package by importing CSV add another column with ID title ( http://prntscr.com/pqsfvh ) and for each package set the package ID there.

Oct 31, 2019 at 6:34 pm
#114185
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 30, 2019 at 9:21 pm
#114153
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 30, 2019 at 8:23 pm
#114152
Moderator
Shahriar
Staff OP

You can use the following code to replace default [tags] template tag,

function wpdm_custom_template_tags($vars){
    $vars['tags'] = get_the_tag_list( '', ', ', '', $vars['ID'] );
    return $vars;
}
add_filter( 'wdm_before_fetch_template', 'wpdm_custom_template_tags', 10, 1 );
Oct 30, 2019 at 8:14 pm
#114151
Moderator
Shahriar
Staff OP

You can modify the link to open in a new tab when there is a package-lock. Do you want to open the file in the browser? If not after unlocking package you can just download the file and your page will still be there with other downloads.

Oct 30, 2019 at 7:47 pm
#114146
Moderator
Shahriar
Staff OP

Please check now. Added the following code in wpdm_show_acf_groups function to change date format.

if( strtotime( $vars["acf_{$group}_{$field}"] ))
$vars["acf_{$group}_{$field}"] = date("m-d-Y", strtotime( $vars["acf_{$group}_{$field}"] ) );
Oct 30, 2019 at 6:44 pm
#114142
Moderator
Shahriar
Staff OP

In your active theme’s functions.php file. Please keep in mind you have to write the Render_Content to populate the tab area with your data.

Oct 30, 2019 at 6:40 pm
#114141
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 30, 2019 at 6:34 pm
#114139
Moderator
Shahriar
Staff OP

Yes, the code above just takes the WordPress role and asssigns them to template tag. There is not relation to the WP Pro Membership with this code.

Viewing 25 posts - 751 through 775 (of 12,513 total)