• skyfly024

    (@skyfly024)


    Hello dear development team,
    can you please extend the plugin with <section>
    So embed the player in an additional section tag with an id and class? I need this to tell my GDPR plugin (Weepie Cookie Allow) to hide the player by default.
    I did it myself first. With the next update my code is gone again.
    I would be very happy. thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    if you’re using LYTE and if you have “cache thumbnails locally” active, then the video should be GDPR compliant actually as YouTube will only get info from the user when (s)he clicks play? ??

    Thread Starter skyfly024

    (@skyfly024)

    And I think that’s where the problem lies. The user does not actively and explicitly consent to the storage of YouTube cookies or a data connection to YouTube. This can only be achieved by taking appropriate measures to obtain confirmation beforehand. For me (I have already adjusted your plugin), the YouTube area is blocked with the notice that you have to agree first.
    So it would be great if you could put that in a <section> tag again.

    Example for me:
    Beginning ca. 337
    } else {
    $wrapper = '<section class="lyte-video-wrapper"><div class="lyte-wrapper' . $l..........
    
    end about 364
    ....$yt_resp_array["description"] . '"></div></div></section>' . $lytelin....
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    what people usually do is use the “Text to be added under every LYTE video.” field on the LYTE settings page to warn users that clicking “play” will share their data with YT.

    re. adding the section; not convinced as the fix is very specific to “Weepie Cookie Allow” (which I did not know), but you could use the LYTE API (specifically the lyte_match_postparse_template filter) to alter the LYTE output as you wish without having to change LYTE-code itself? ??

    Thread Starter skyfly024

    (@skyfly024)

    Ah… cool thought. Do you have an example of the lyte_match_postparse_template filter or instructions?

    Thank you also for the quick response. great support

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, the principle is pretty straightforward;

    add_filter( 'lyte_match_postparse_template', function( $lyteHtml ) {
        $lyteHtml = str_replace( '<section class="lyte-video-wrapper"><div class="lyte-wrapper', '<div class="lyte-wrapper', $lyteHtml );
    
        return $lyteHtml;
    });

    that should add the opening <section>, you would need a similar str_replace line to add the closing section? ??

    (warning: untested code, just a quick example)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘For GDPR please expand with’ is closed to new replies.