Support » Plugin: WP YouTube Lyte » foreign iframes are lost

  • Resolved Daniel Pardella

    (@toxicdemon)



    On one of our websites we use the Plugin for the youtube videos. but if a different iframe is loaded before the YouTube videos, it disappears if the plugin is active and the text disappears until the first YouTube iFrame. Then the videos are loaded correctly with YouTube Lyte.

    any idea?

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

    (@optimizingmatters)

    no idea at all I’m afraid. could you share a URL where I could see this happening?

    frank

    Hi Frank,

    you can watch it without the Plugin here: https://www.junge-gruender.de/gbr-gruenden/

    At point 5 (Schritt 5: Geschäftskonto eröffnen) comes the first iframe. thats a financeAds iframe.

    at the point “Nachteile einer GbR” comes the first youtube iframe.

    everything seems normal and coded correctly.

    if we activate the plugin, the text and iframe between point 5 and the first youtube video are lost.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ok, think I (you) have found a bug; can you open up wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php and on line 105

    change
    if ( apply_filters( 'lyte_eats_yframes', true ) && preg_match_all('#<iframe(?:.*)?\ssrc=["|\']https:\/\/www\.youtube(?:-nocookie)?\.com\/embed\/(.*)["|\'](?:.*)><\/iframe>#Usm', $the_content, $matches, PREG_SET_ORDER)) {

    into
    if ( apply_filters( 'lyte_eats_yframes', true ) && preg_match_all('#<iframe(?:[^<]*)?\ssrc=["|\']https:\/\/www\.youtube(?:-nocookie)?\.com\/embed\/(.*)["|\'](?:.*)><\/iframe>#Usm', $the_content, $matches, PREG_SET_ORDER)) {

    and let me know what happens?
    frank

    Hi Frank,

    that works fine 🙂

    After update the code we have no more problems.

    thanks!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    thanks for the feedback, I’ll make sure this goes in next version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.