Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ab22375

    (@ab22375)

    I have been working a little further on it.
    I have solved in this way:

    Replaced http with https in this line :

    $embed_code = '<iframe src="https://www.youtube.com/embed/' . $video_id . '?feature=oembed" width="' . $width . '" height="' . $height . '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';

    of file
    [wordpress]/wp-content/plugins/maxgalleria/addons/media-sources/youtube/youtube.php

    it becomes therefore

    $embed_code = '<iframe src="https://www.youtube.com/embed/' . $video_id . '?feature=oembed" width="' . $width . '" height="' . $height . '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';

    Then when I add links to youtube videos from maxgalleria I choose this format:

    https://www.youtube.com/v/video_id

    where video_id is the id of my video in youtube.

    In this way, maxgalleria saves the links correctly with https.

    Plugin Author arcware

    (@arcware)

    Thanks for the info, we’ll look to see if we can make this more seamless so that you don’t have to edit one of the plugin files.

    I did had the issue as well, in the exception that in order to fix it I had to edit the addons/templates/video-tiles/video-tiles.php file at line 148 to replace:

    $video_url = str_replace('https://', 'https://', get_post_meta($attachment->ID, 'maxgallery_attachment_video_url', true));

    with

    $video_url = get_post_meta($attachment->ID, 'maxgallery_attachment_video_url', true);

    May I ask why you replaced https with http?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘blocked youtube’ is closed to new replies.