Philippe Bonneau

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 87 total)
Feb 20, 2023 at 7:27 pm
#183929
Participant
Philippe Bonneau
OP

I need the plugin rto work properly everywhere with every device Nayeem. I need a fix.

Feb 9, 2023 at 2:10 pm
#183568
Feb 9, 2023 at 1:54 pm
#183566
Participant
Philippe Bonneau
OP

Hi Nayeem. As I say, yesterday my client android phone was not able to see the preview of Word documents. I have not access to an android phone today. Here is an example of a Word doc with no preview on phone https://mrckamouraska.com/documentation/formulaire-programme-de-soutien-de-ledc/

Feb 9, 2023 at 1:04 pm
#183563
Participant
Philippe Bonneau
OP

Hi Nayeem. I clear everything in the cache many times by working sessions. I have also tried to solve this with all plugins deactivated but the WPDM ones. Same thing, I can see all documents format but the Word documents.

This problen is only on phones. Computer and tablet can preview Word docs.

Feb 8, 2023 at 11:38 pm
#183524
Participant
Philippe Bonneau
OP

Hi Nayeem. The only bug that persist on my side and my client is Word .doc or .docx preview on cellphones, my iphone and my client android phone. We can preview PDF and Excel files correctly.

Word file

PDF file

Excel file

I have emptied my iPhone browser cache with no change.

Help me fix that please.

Feb 1, 2023 at 4:30 pm
#182987
Participant
Philippe Bonneau
OP

I have recreated the code from the page template MRC + apperçu with the code from the code from the Single Column with Doc Preview page template. Now the problem is fixed in Safari for iPhone.

The problem in Chrome for iPhone is the same and Firefox for iphone too.

Feb 1, 2023 at 3:56 pm
#182985
Participant
Philippe Bonneau
OP

I have a Iphone 11 with the latest OS. The previous screenshot is from Safari. In chrome the document is opened without the webpage

Chrome iPhone view

In Firefox the viewer is empty like in Safari

Firefox view

On my iPad every thing work well.

I need help to solve this problem please.

Feb 1, 2023 at 3:13 pm
#182976
Participant
Philippe Bonneau
OP

The problem seems to be only hapenning with .docx and .doc Word documents.

I can see Excel and PDF documents with my iPhone.

Feb 1, 2023 at 2:55 pm
#182972
Participant
Philippe Bonneau
OP

Hi Nayeem. If I deactivate the cache plugin the preview zone does not appear on my iPhone. iphone view

It was the same thing when I was excluding URIs with the string /?wpdmdl=* and /documentation/ in the LiteSpeed Cache exclusion settings

Feb 1, 2023 at 1:48 pm
#182962
Participant
Philippe Bonneau
OP
This reply has been marked as private.
Jan 31, 2023 at 11:53 pm
#182908
Participant
Philippe Bonneau
OP
This reply has been marked as private.
Oct 5, 2021 at 12:59 pm
#162804
Participant
Philippe Bonneau
OP

Thank you @Humayon. Tell me what you have done please so I can fix that myself the next time.

Oct 4, 2021 at 10:47 pm
#162751
Participant
Philippe Bonneau
OP
This reply has been marked as private.
May 7, 2021 at 5:22 pm
#152176
Participant
Philippe Bonneau
OP

The edit are on line 59, 87 and 199

const { __, _x, _n, sprintf } = wp.i18n;

function wpdmapPagination(current, last) {
    var delta = 2,
        left = current - delta,
        right = current + delta + 1,
        range = [],
        rangeWithDots = [],
        l;

    for (let i = 1; i <= last; i++) {
        if (i === 1 || i === last || i >= left && i < right) {
            range.push(i);
        }
    }

    for (let i of range) {
        if (l) {
            if (i - l === 2) {
                rangeWithDots.push(l + 1);
            } else if (i - l !== 1) {
                rangeWithDots.push('...');
            }
        }
        rangeWithDots.push(i);
        l = i;
    }
    var html = "<ul class='pagination wpdm-pagination pagination-centered text-center'>";
    console.log(current);
    if(current > 1)
        html += "<li><a href='#' data-page='"+(current-1)+"' class='async_page page-numbers'><i style=\"display: inline-block;width: 8px;height: 8px;border-right: 1px solid;border-top: 1px solid;transform: rotate(-135deg);margin-left: -2px;margin-top: 2px;\"></i></a></li>"
    for(i = 0; i < rangeWithDots.length; i++){
        var cclass = parseInt(rangeWithDots[i]) === current ? 'current-page' : '';
        if(rangeWithDots[i] !== '...')
            html += "<li><a href='#' data-page='"+rangeWithDots[i]+"' class='async_page page-numbers "+cclass+"'>"+rangeWithDots[i]+"</a></li>";
        else
            html += "<li><a class='page-numbers dot'>"+rangeWithDots[i]+"</a></li>";
    }
    if(current < last)
        html += "<li><a href='#' data-page='"+(current+1)+"' class='async_page page-numbers'><i style=\"display: inline-block;width: 8px;height: 8px;border-right: 1px solid;border-top: 1px solid;transform: rotate(45deg);margin-left: -2px;margin-top: -2px;\"></i></a></li>"
    html += "</ul>";
    return "<div class='text-center'>"+html+"</div>";
}

jQuery(function ($) {

    function htmlEncode(value) {
        return $('<div/>').text(value).html();
    }

    var wpdmac_category = '', wpdmac_tags = '';

    function getDownloads(cp, container) {

        WPDM.blockUI('#wpdm-archive-page');
        var scode_params = typeof wpdmap_params !== 'undefined' ? wpdmap_params : '';
        jQuery('#wpdm-downloads').prepend('<div class="wpdm-loading">'+wpdm_asset.spinner+' '+__('Chargement', 'wpdm-archive-pae')+'...</div>');
        jQuery.post(location.href, {
            action: 'get_downloads',
            cp: cp,
            search: jQuery('#src').val(),
            category: wpdmac_category,
            tags: wpdmac_tags,
            orderby: jQuery('#order_by').val(),
            order: jQuery('#order').val(),
            sc_params: scode_params
        }, function (response) {
            if(typeof container === 'undefined') container = '#wpdm-downloads';
            jQuery(container).html(response.html+wpdmapPagination(cp, response.last));

            WPDM.unblockUI('#wpdm-archive-page');
        });
    }

    function setParentCat(cat_id) {
        jQuery.ajax({
            type: "post",
            dataType: "json",
            url: wpdm_url.ajax,
            data: {action: "wpdm_change_cat_parent", cat_id: cat_id},
            success: function (response) {
                console.log(response);
                if (response.type === "success") {
                    if (jQuery('#src').val() !== '')
                        jQuery('#inp').html(__('R&eacute;sultat de recherche pour', 'wpdm-archive-pae')+' <b>' + htmlEncode(jQuery('#src').val()) + '</b> '+__('in category', 'wpdm-archive-pae')+' <b>' + response.parent + '</b>');
                    else
                        jQuery('#inp').html(response.parent);
                }
            }
        });
    }

    function selectedCats() {
        var _items = [];
        $('#wpdmcat-tree input[type=checkbox]').each(function (index, item) {
           if($(this).is(":checked")) _items.push($(this).val());
        });
        return _items;
    }
    function selectedTags() {
        var _items = [];
        $('#wpdm-tags input[type=checkbox]').each(function (index, item) {
            if($(this).is(":checked")) _items.push($(this).val());
        });
        return _items;
    }

    var $body = $('body');

    /*$body.on('click', '.pagination a', function (e) {
        e.preventDefault();
        $('#wpdm-downloads').prepend('<div class="wpdm-loading">'+wpdm_asset.spinner+' '+__('Loading', 'wpdm-archive-pae')+'...</div>').load(this.href);
    });*/

    $('.wpdm-cat-link').click(function (e) {
        e.preventDefault();
        $('.wpdm-cat-link').removeClass('active');
        $(this).addClass('active');
        var cat_id = $(this).attr('rel');
        wpdmac_category = cat_id;
        setParentCat(cat_id);
        getDownloads(1);

    });

    $('#wpdm-cats-compact').on('change', function (e) {
        var cat_id = $(this).val();
        if (cat_id == -1) cat_id = 0;
        $('#initc').val(cat_id);
        var sfparams = $('#srcp').serialize()
        wpdmac_category = cat_id;
        setParentCat(cat_id);
        getDownloads(1);
    });

    $('#wpdmcat-tree input[type=checkbox], #wpdm-tags input[type=checkbox]').on('change', function (e) {
        wpdmac_category = selectedCats();
        wpdmac_tags = selectedTags();
        $('#initc').val(wpdmac_category);
        var sfparams = $('#srcp').serialize()
        getDownloads(1);
    });

    $body.on('click', '.async_page', function (e){
        e.preventDefault();
        e.stopPropagation();
        getDownloads($(this).data('page'));
        return false;
    });

    $body.on('click', '.wpdm-cat-link2', function (e) {

        e.preventDefault();
        $('.wpdm-cat-link').removeClass('active');
        var new_rel = $(this).attr('test_rel');
        if (new_rel !== 'undefined') {
            $('a[rel=' + new_rel + ']').addClass('active');
        }

        var cat_id = jQuery(this).attr('rel');
        wpdmac_category = cat_id;
        setParentCat(cat_id);
        getDownloads(1);

    });

    $body.on('click', '.w3eden a.btn-clps[data-toggle="collapse"]', function () {
        $(this).children('.fa').toggleClass('fa-chevron-down');
        $(this).children('.fa').toggleClass('fa-chevron-up');
        $(this).toggleClass('active');
    });

    $body.on('click', '#reset-filter', function (e) {
        e.preventDefault();
        $('#wpdmcat-tree input[type=checkbox], #wpdm-tags input[type=checkbox]').removeAttr('checked');
        $('#src').val('');
        $('#srcp').resetForm();
        wpdmac_category = '';
        wpdmac_tags = '';
        getDownloads(1);
    });

    $('#order_by, #order').on('change', function () {
        getDownloads(1);
    });

    $('#srcpss').submit(function (e) {
        e.preventDefault();
        getDownloads(1);
    });

    $('#srcp').submit(function (e) {
        e.preventDefault();
        $('.wpdm-cat-link').removeClass('active');
        $('#inp').html(__('R&eacute;sultat de recherche pour', 'wpdm-archive-pae')+' <b>' + htmlEncode($('#src').val()) + '</b>');

        getDownloads(1);

    });

    $('#wpdm-archive-page-home').click(function (e) {
        e.preventDefault();
        $('.wpdm-cat-link').removeClass('active');
        $('#inp').html(__('All Downloads', 'wpdm-archive-pae'));
        wpdmac_category = '';
        $('#src').val('');
        getDownloads(1);
    });

    $body.on("keyup", "#cat_src", function() {
        var value = $(this).val().toLowerCase();
        $("#wpdmcat-tree li").filter(function() {
            $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
        });
    });
    $body.on("keyup", "#tag_src", function() {
        var value = $(this).val().toLowerCase();
        $("#wpdm-tags .wpdm-tag").filter(function() {
            console.log($(this).text());
            $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
        });
    });

    if($('#wpdm-downloads').length > 0)
        getDownloads(1);

});
May 7, 2021 at 5:11 pm
#152173
Participant
Philippe Bonneau
OP

I know. I hahe translated directly the wpdm-archive-page/assets/js/scripts.js file. This fix will be undune with the next update. I need a permanent fix please.

May 7, 2021 at 2:36 pm
#152148
Participant
Philippe Bonneau
OP

I am completely lost!

May 7, 2021 at 1:29 pm
#152139
Participant
Philippe Bonneau
OP

There is no [TMPL]/views/

What do you mean?

Is [TMPL] the name of the template that I use?

May 7, 2021 at 1:15 pm
#152130
Participant
Philippe Bonneau
OP

Do I have to replicate the folder/subfolder… path? By the way there is no /[TMPL]/views/ in the Templates folder of wpdm-archive-page/src/Templates. I have /public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/Category
/public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/Compact
/public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/Filter
/public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/Flat
/public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/Simple
/public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/SimpleSearch
/public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/Singular
/public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/Starter
/public_html/mrck/wp-content/plugins/wpdm-archive-page/src/Templates/Tags

Secondly: Can you be more precise please. I am not a programer.

And finaly why did you tell me to edit this file wpdm-archive-page/assets/js/scripts.js to translate the text and do not tell me to put this file im my child theme folder?

May 6, 2021 at 11:29 pm
#152075
Participant
Philippe Bonneau
OP

Is there a way to edit a file and put it in my child theme folder to have this text translated?

May 5, 2021 at 7:53 pm
#151980
Participant
Philippe Bonneau
OP

No this is not. Can you solve this problem quickly please?

Loading in english

Apr 26, 2021 at 10:21 pm
#151242
Participant
Philippe Bonneau
OP

French. Hey Nayeem?

Apr 23, 2021 at 5:58 pm
#151056
Participant
Philippe Bonneau
OP

I need it to display Chargement in frecch

Apr 21, 2021 at 1:10 pm
#150854
Participant
Philippe Bonneau
OP

Login is already in the #148954 REPL. I use WPML to translate. I can install an other tool that can fix that. WPDM should be compatible with WPML.

Apr 20, 2021 at 11:54 pm
#150815
Participant
Philippe Bonneau
OP

@Nayeem 20 days later!!! Very long. This is not good for your karma!

Mar 30, 2021 at 9:49 pm
#149625
Participant
Philippe Bonneau
OP

@Nayeem? Support team? 10 days without support!!!

Viewing 25 posts - 1 through 25 (of 87 total)