• Resolved Yrmegard

    (@yrmegard)


    Hey,

    I have another question. Is there a way to protect translated pages with a password? I have a few original pages that ask for a password to be opened, but the translated versions don’t ask anything and can be accessed freely. I use basic WordPress capability for password protection, but I also tried using more sophisticated password plugins – and the result is still the same and translated pages can be opened without entering the password. Can you please advise is there a way to protect them.

    Thanks for all your help so far!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author sbouey

    (@sbouey)

    Hi, i don’t know this feature about password protection on page , this is strange falang don’t ask for password.

    Do you have a link to a documentation to configure my dev site and see why it’s not working

    Thread Starter Yrmegard

    (@yrmegard)

    Hey, I couldn’t find any specific documentation for WordPress default password protection, just this very basic tutorial. No specific configuration needed, the feature is just there within usual WP installation and can be set up either while editing the page (screenshot from my site is here) or through quick edit of the page (another screenshot from my site). Please let me know if there’s anything else I could add to help you look into the issue.

    Plugin Author sbouey

    (@sbouey)

    Hi, i have reproduce the problem and i think i have a solution , i have tested it , it’s seem to work perfectly

    in the file wp-content\plugins\falang\public\class-falang-public.php line 1063 add the code like this

    if ($post && !$this->is_default() && $falang_post->is_post_type_translatable($post->post_type)){

    $content = $falang_post->translate_post_field($post, 'post_content', $this->current_language, $content);

    /*
    * @since 1.3.27 add filter for content (use for readmore text)
    */
    $content = apply_filters( 'falang_translate_post_content', $content );

    /*
    * @since 1.3.62 add password protection
    */
    if ( post_password_required( $post ) ) {
    return get_the_password_form( $post );
    }

    }

    Thread Starter Yrmegard

    (@yrmegard)

    Works like a charm! Thanks a lot!

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

The topic ‘Password protected pages’ is closed to new replies.