Shahriar

Forum Replies Created

Viewing 25 posts - 776 through 800 (of 12,513 total)

Shahriar
Moderator

Please send temporary wp-admin login info in private reply to check the issue.


Shahriar
Moderator

Please try this solution. You have to add this code to your active theme’s functions.php file.

function wpdm_sanitize_chinese_user( $username, $raw_username, $strict ) {
    if ( $username != $raw_username ) {
        $username = $raw_username;
    }
    $username = strip_tags( $username );

    // Kill Chinese characters
    $username = preg_replace( '|[^a-z0-9 _.\-@一-龥]|ui', '', $username );

    // Consolidate contiguous whitespace
    $username = preg_replace( '|\s+|', ' ', $username );

    return apply_filters( 'sanitize_chinese_user', $username, $raw_username, $strict );
}
add_filter( 'sanitize_user', 'wpdm_sanitize_chinese_user', 1, 3 );

Shahriar
Moderator

Please install and activate the WPDM REST API add-on https://www.wpdownloadmanager.com/download/wpdm-api/ to fix the issue.

in reply to: Hiding sidebar in PDF Preview #114126

Shahriar
Moderator
This reply has been marked as private.
in reply to: showcount hide if 0 #114123

Shahriar
Moderator

It is the WPDM – Archive Page add-on.

in reply to: Download stats not working/displaying #114120

Shahriar
Moderator

Please send temporary wp-admin login info in private reply to check the issue.

in reply to: Multiple Issues Need Looking Into #114119

Shahriar
Moderator

Take a look at the same document with [excerpt_250] tag adds a portion of the description instead of the excerpt.

That how [excerpt_250] tag works, please check my second reply above. You can show the actual excerpt with [excerpt] ( without any number )

in reply to: Edit Tag Styling #114109

Shahriar
Moderator

If you are using the [wpdm-tags cols="4" icon="tag" btnstyle="default"] shortcode then it is possible to change the icon by using a different class for icon parameter. But you can’t remove it. Keeping the icon empty hides the icon although it is still there. In the next version, we will add the option to skip icon completely.

in reply to: showcount hide if 0 #114108

Shahriar
Moderator

Sorry, It is not possible yet as the code is not in a template file.


Shahriar
Moderator

description field can’t be empty http://prntscr.com/pq5yiv Please try again after adding few words in description.

in reply to: HTTP ERROR 500 when using Tweet Lock Feature #114105

Shahriar
Moderator
This reply has been marked as private.
in reply to: "File not found or deleted from server" #114104

Shahriar
Moderator

You have attached files from /www/asset-downloads/ directory. Maybe those files don’t exist anymore in that dir. I need FTP info to check the directory and confirm if the files exist there or not. You can also check the directory.

If files are missing there then just put those files in that directory to resolve the issue Or reattach files from wherever they are by editing the packages.

It is better to keep all your files under the same parent dir for better management. By default Download Manager stores uploaded files in /wp-content/uploads/download-manager-files/ dir. So, you can move files from other directories in this dir as I see you have already uploaded some files there.


Shahriar
Moderator

Yes, I can help you to restore the old custom templates. Do you have a staging server?

in reply to: Multiple Issues Need Looking Into #114101

Shahriar
Moderator

Sorry for the delayed reply.

Dynamic Excerpt is working fine. I have created a custom page template “Dynamic Excerpt” and applied it here https://cioindex.com/reference/sample-it-governance-implementation/ Try changing the number in [excerpt_200] tag. Please read this post to understand template customization.

Bulk Import issue could be related to CSV formatting. Please send me the CSV file to check. You can upload it somewhere and share the link in reply.

in reply to: Date Format Shortcode Output #114097

Shahriar
Moderator

Hi,

Page and Link templates take the date form from WordPress settings. Please check your date format settings from the general settings page. If the rendered format is different then settings please send temporary wp-admin login info in private reply.

Best regards.


Shahriar
Moderator

Add the following CSS to limit the max image height,

#wpdm-downloads img {
    max-height: 200px;
}

Shahriar
Moderator

Hi,

I checked the Database table wp_options table for _fm_link_templates and _fm_page_templates records but found no custom template code there. I am not exactly sure which plugin modified these entries. In most cases, this kind of change is made by a plugin that does backup/restore or bulk DB changes ( search& replace etc ). Really sorry about the inconvenience but I couldn’t find any reason that points the issue being originated from WPDM.

Now best option is creating template files for your custom link/page templates as the issue may occur again if you use the template editor. You have to put the files in /active-theme/download-manager/page-templates/ and /active-theme/download-manager/link-templates/ directory ( I have already created those directories in your child theme ). The file name will be used as the template id in this approach. And you have to set a template name at the top of the file. Please check any existing template file from /download-manager/tpls/link-templates/ directory.

Here is a custom link template https://www.dropbox.com/s/upop791l1slse20/alameensoft.php?dl=1 Download the file and place it in /active-theme/download-manager/link-templates/ dir. This template is the same one used here http://prntscr.com/pq3h3e but without the download button.

Let me know if you have a further query or I can help you in any other way.

Thanks.


Shahriar
Moderator

The errors in the query monitor actually created by itself. The page isn’t using WPDM login from so there is no chance of triggering errors from the login template. Anyway, Please download the following file and place it /active-theme/download-manager/ directory to fix all warnings.

https://www.dropbox.com/s/th0sg8gs5gfjt3k/wpdm-login-form.php?dl=1


Shahriar
Moderator

It is very easy to setup a package with 2 options. Install and activate the Premium Package and set a price for the package. That’s all. Now users can either buy the single package or subscribe to plan to access the package when the package is part of a plan.

You have to use a custom page template if you want to represent the options in a customized way. By default, Download Manager just display the “Add to cart” option when the user doesn’t have the subscription.

in reply to: Purchases not showing up in User dashboard #114089

Shahriar
Moderator

Download Manager’s user dashboard does list all purchases. You are using the AAC shortcode for the dashboard. The shortcode for the user dashboard [wpdm_user_dashboard]

I have created a new page ( Dashboard ) with the dashboard shortcode. You do not need the separate page for Advanced Access Controls add-on ( to list user assigned downloads ) as Dashboard provided a tab ( My Downloads ) for those downloads.

in reply to: Differentiating Files by Membership Level #114088

Shahriar
Moderator

Hi,

You can label the membership plan of the package using a custom template tag. For example, check this demo URL. The last package is labled “Sale!” You can use something similar to display membership levels.

To create a custom template tag we have to use wdm_before_fetch_template hook ( documentation ).

Please check the Downloads > Settings > User Interface tab to test various button styles.

Thanks.

in reply to: Conflict Causing Blog issue on Impreza #114086

Shahriar
Moderator

Could you please send a zipped version of your active theme? I want to test it locally with Download Manager to figure out the issue. The issue may come from the theme too. Also, is your job vacancy a normal page or created by another plugin?


Shahriar
Moderator

Please send the login URL too.


Shahriar
Moderator

Hi,
I have just completed an order #WPDMPP5DB94E870D830 using Test Payment. Everything went well. Could you please try again?
Best regards.


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