Shahriar

Forum Replies Created

Viewing 25 posts - 1,051 through 1,075 (of 12,513 total)
Oct 8, 2019 at 2:37 pm
#113309
Moderator
Shahriar
Staff OP

We will review the implementation of a hook to change the page template on the fly. In the meantime, I have a suggestion for your membership area implementation. Instead of linking to the details page, use a shortcode with link-template which will provide instant download without visiting the package details page. This will make things easier for your members.

Oct 8, 2019 at 2:21 pm
#113308
Moderator
Shahriar
Staff OP

Download Limit add-on doesn’t require the WP Pro Membership add-on or any other membership plugin. It set’s the download limit based on user roles. Our WP Pro Membership just integrates the add-on with membership plans.

Oct 8, 2019 at 2:12 pm
#113306
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 8, 2019 at 9:45 am
#113299
Moderator
Shahriar
Staff OP

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

Oct 8, 2019 at 9:43 am
#113298
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 8, 2019 at 9:16 am
#113297
Moderator
Shahriar
Staff OP

Hi Ian, Which shortcode are you using there?

Oct 8, 2019 at 9:14 am
#113296
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 5, 2019 at 9:44 pm
#113264
Moderator
Shahriar
Staff OP

Could you please send temporary wp-admin login info as a private reply? I have to check the issue on your setup.

Oct 5, 2019 at 9:42 pm
#113263
Moderator
Shahriar
Staff OP

There are 2 access options for view and managing custom fields groups. You missed those options.

“Who can view?” and “Who can manage?”

http://prntscr.com/pfddqo

Oct 5, 2019 at 9:38 pm
#113261
Moderator
Shahriar
Staff OP

Please ignore the previous reply. It was meant for the add-on.

How do you want to display the date file-meta? As these fields are in text format, the data will be displayed just like they are inserted.

Oct 5, 2019 at 9:24 pm
#113260
Moderator
Shahriar
Staff OP

The generate download button is right under the package name. This is a live feature, we have no plan to remove it. Maybe you are logged in as editor. The button is available only to the administrator role.

Oct 5, 2019 at 9:20 pm
#113259
Moderator
Shahriar
Staff OP

Yes, you need ImageMagick to use the dynamically sized featured images.

Oct 5, 2019 at 9:18 pm
#113258
Moderator
Shahriar
Staff OP

Sorry, it isn’t possible. What is a possible scenario where you want to use a different page template?

Oct 5, 2019 at 9:11 pm
#113257
Moderator
Shahriar
Staff OP

Hi,

If you want to show packages from a specific category then just define the category in the archive shortcode category="slug" As you want to create different pages for different categories then use the same shortcode with different category parameters.

Please let me know if you wanted to know something else.

Thanks.

Oct 5, 2019 at 8:53 pm
#113256
Moderator
Shahriar
Staff OP

Use PoEdit https://poedit.net/ to create translation from the pot file.

Oct 5, 2019 at 8:49 pm
#113255
Moderator
Shahriar
Staff OP

Please update the “Button Template Clone” with the following code. Adjust the image src to set your own image.

<a class="wpdm-download-link" href="[download_url]"><img src="https://img.icons8.com/nolan/50/000000/download.png"></a>

Oct 5, 2019 at 8:38 pm
#113254
Moderator
Shahriar
Staff OP

Define your tags inside the tags parameter. Check out the following example shortcode,

[wpdm_category id="free," tags="plugin" cols="1" toolbar=1 desc=1 item_per_page=10 paging=1 template="link-template-calltoaction3" order_by="publish_date" order="desc"]

Oct 5, 2019 at 8:23 pm
#113253
Moderator
Shahriar
Staff OP

Hi,

Yes, it is possible to use different featured image styles for package and post.

Use custom post type template single-wpdmpro.php for your packages to apply a unique style to package featured image. Currently, the packages are using the same template as posts which is single.php

You can copy the single.php ( this is a template file inside your active theme ) and rename it single-wpdmpro.php. Then make the necessary changes to your new template.

Thanks.

Oct 3, 2019 at 9:01 pm
#113227
Moderator
Shahriar
Staff OP

Add the code to your theme’s functions.php file and visit any page just once. Then delete this code.

function wpdm_bulk_update_access(){

    $params = array(
        'post_type' ► 'wpdmpro',
        'posts_per_page' ► -1,
    );

    $packs = new WP_Query( $params );

    while( $packs->have_posts() ) {
        $packs->the_post();
        $access = array('subscriber');
        update_post_meta(get_the_ID(),'__wpdm_access',$access );
    }
}
add_action('init', 'wpdm_bulk_update_access');
Oct 3, 2019 at 8:56 pm
#113225
Moderator
Shahriar
Staff OP

Here is a quick solution. Add the code to your theme’s functions.php file and visit the blog posts page just once. Then delete this code.

function update_file_path(){
    if( ! is_home() ) return;
    $params = array( "post_status" ► "publish", "post_type"►"wpdmpro","posts_per_page"► -1 );
    $q = new WP_Query($params);

    while ( $q->have_posts() ) {
        $q->the_post();

        $files = maybe_unserialize(get_post_meta(get_the_ID(), '__wpdm_files', true));
        if ( ! is_array( $files ) ) $files = array();

        foreach ($files as $key ► $file):
            $files[$key] = str_replace('/lyngsoes/','/lyngsoe2/', $file);
        endforeach;

        update_post_meta(get_the_ID(),'__wpdm_files', $files );
    }
}
add_action('init','update_file_path');
Oct 3, 2019 at 8:50 pm
#113224
Moderator
Shahriar
Staff OP

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

Oct 3, 2019 at 8:49 pm
#113223
Moderator
Shahriar
Staff OP

You can use the /download-manager/languages/download-manager.pot file to create the Italian translation file.

Another option is creating a custom template of /download-manager/tpls/lock-options/email-lock-form.php. You have to copy this file and place it in /active-theme/download-manager/lock-options/email-lock-form.php. Then add your changes in this new template.

Oct 3, 2019 at 8:10 pm
#113220
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 3, 2019 at 8:09 pm
#113219
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Oct 3, 2019 at 8:05 pm
#113218
Moderator
Shahriar
Staff OP

Yes, member-only or subscriber access is the same thing.

Viewing 25 posts - 1,051 through 1,075 (of 12,513 total)