Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I believe this problem is back.
    We are using WPML with French as a first language and English as the second language.

    One folder is empty in French (default) but it contains 7 files in the English.
    The folder has the same name in French and English.

    And drag-and-drop of file often fails in French but appear to work fine in English.

    wp: 5.2.2
    wpml: 4.2
    filebird: 2.2

    Thanks,
    Claude

    Thanks. The javascript modification has been rollout in version 1.3.3

    The PHP modification is required for the “Page Analysis” Tab.

    It turns the following yellow warning :
    The keyword / phrase does not appear in the URL for this page. If
    you decide to rename the URL be sure to check the old URL 301
    redirects to the new one!
    to this green message:
    The keyword / phrase appears in the URL for this page.

    Regards

    I had the same problem.
    I solved the problem by adding the following code in 2 files.

    *** function testFocusKw() in file wp-seo-metabox.js ***
    Replace the function with this code:


    function testFocusKw() {
    // Retrieve focus keyword and trim
    var focuskw = jQuery.trim( jQuery('#yoast_wpseo_focuskw').val() );
    focuskw = focuskw.toLowerCase();

    var postname = jQuery('#editable-post-name-full').text();
    var url = wpseo_permalink_template.replace('%postname%', postname).replace('http://','');

    p = new RegExp("(^|[ \s\n\r\t\.,'\(\"\+;!?:\-])"+focuskw+"($|[ \s\n\r\t.,'\)\"\+!?:;\-])",'gim');
    str = focuskw.replace(/\s+/g,"[-_\\\//]");
    //CML remove accents from slug
    var from = "àáäâèéëêìíïîòóöôùúüûÿñçÀÂÇÉÈÊËÙ";
    var to = "aaaaeeeeiiiioooouuuuyncAACEEEEU";
    for (var i=0, l=from.length ; i<l ; i++) {
    str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i));
    }
    p2 = new RegExp(str,'gim');

    if (focuskw != '') {
    var html = '<p>Your focus keyword was found in:
    ';
    html += 'Article Heading: ' + ptest( jQuery('#title').val(), p ) + '
    ';
    html += 'Page title: ' + ptest( jQuery('#wpseosnippet .title').text(), p ) + '
    ';
    html += 'Page URL: ' + ptest( url, p2 ) + '
    ';
    html += 'Content: ' + ptest( jQuery('#content').val(), p ) + '
    ';
    html += 'Meta description: ' + ptest( jQuery("#wpseosnippet .desc span.content").text(), p );
    html += '</p>';
    jQuery('#focuskwresults').html(html);
    }
    }

    *** function score_url() in file class-metabox.php ***
    I added this code after the declaration of variable needle

    $needle = $this->strip_separators_and_fold( $job["keyword"] );
    // Remove Accented UTF-8 Characters
    $search = explode(",","ç,æ,œ,á,é,í,ó,ú,à,è,ì,ò,ù,ä,ë,ï,ö,ü,ÿ,â,ê,î,ô,û,å,e,i,ø,u,À,Â,Ç,É,È,Ê,Ë,Ù");
    $replace = explode(",","c,ae,oe,a,e,i,o,u,a,e,i,o,u,a,e,i,o,u,y,a,e,i,o,u,a,e,i,o,u,A,A,C,E,E,E,E,U");
    $needle = str_replace($search, $replace, $needle);

Viewing 3 replies - 1 through 3 (of 3 total)