http/https - Youtube not displaying on Echelon Slider

open (6 posts) (3 voices)

  1. kaganwine
    Member

    Hello,

    Our site https://zephyrorganics.com/ is not displaying YouTube sliders on the home page.

    Here is the Youtube video:
    https://www.youtube.com/watch?v=9Q-cbNjULik

    There are two slides. The first is an image and the second is a Youtube Video.

    When I use https the slider won't advance to the second slider showing the YouTube video.

    When I use http the slider goes to the second slider but the YouTube video is just a blank box; see attached zephyr-youtube-slider.jpg

    I'm using Echelon – 2.7

    Thanks,

    Attachments

    1. zephyr-youtube-slider.jpg (79.1 KB, 0 downloads) 1 year old
    Posted 1 year ago #
  2. gabeizrad
    Member

    Hey Kaga,

    Looks like MSMY is done and no longer offering support.....kind of a bummer, but I figured your should know.

    Posted 1 year ago #
  3. kaganwine
    Member

    Thanks Gabeizrad.

    I was thinking the same, but just in case I'm throwing it out there.

    I'm assuming it's a conflict with another plugin because it's working fine on our other sites.

    Thanks for chiming in Gabeizrad

    Posted 1 year ago #
  4. Nozzy
    Member

    Hey Kaga,

    For what its worth, I use revolution slider and always disable the native slider. It works a treat with these themes.

    Noz.

    Posted 1 year ago #
  5. kaganwine
    Member

    Good idea, thanks Nozzy

    Posted 1 year ago #
  6. kaganwine
    Member

    For those that are interested, I decided to fix this myself.

    If you have a website that is https:// and you want to play YouTube videos from within the banner, then replace these 4 files with the ones attached:

    .\lib\shortcodes\21-video.php
    .\lib\scripts\custom.js
    .\lib\scripts\galleria\galleria-1.2.7.js
    .\lib\scripts\galleria\galleria-1.2.7.min.js

    There are limitations on upload, so I added the set above as a zip (lib.zip)

    Edit:: the uploads were rejected. Here are the changes I made to the files.

    Essentially each of those files have changes to anything YouTube from http to https

    .\lib\shortcodes\21-video.php
    Line 160
    Change:
    src='http://www.youtube.com/embed/{$video_id}
    To:
    src='https://www.youtube.com/embed/{$video_id}

    .\lib\scripts\custom.js
    Line 987
    Change:
    a.src = 'http:' + '//s.ytimg.com/yts/jsbin/www-widgetapi-vflSEIUSR.js';a.async = true;

    To:
    a.src = 'https:' + '//s.ytimg.com/yts/jsbin/www-widgetapi-vflSEIUSR.js';a.async = true;

    .\lib\scripts\galleria\galleria-1.2.7.js
    Line 119
    Change:
    return 'http://www.youtube.com/embed/'+id;

    To:
    return 'https://www.youtube.com/embed/'+id;

    .\lib\scripts\galleria\galleria-1.2.7.min.js
    Line 8
    Change:

    function(
    a){return"http://www.youtube.com/embed/"+a},getThumb:function(b,c,d){d=d|
    |n,a.getJSON("http://gdata.youtube.com/feeds/api/videos/"+b+"?v=2&alt=
    json-in-script&callback=?",function(a){try{c(a.entry.media$group.media$
    thumbnail[0].url)}catch(b){d()}}).error(d)}},vimeo:{reg:/https?:\/\/(?:
    www\.)?(vimeo\.com)\/(?:hd#)?([0-9]+)/i,embed:function(a){return"http://
    player.vimeo.com/video/"+a},getThumb:function(b,c,d){d=d||n,a.getJSON("
    http://vimeo.com/api/v2/video/"+b+".json?callback=?",function(a){try{c(a[
    0].thumbnail_medium)}catch(b){d()}}).error(d)}},dailymotion:{reg:/https?:\
    /\/(?:www\.)?(dailymotion\.com)\/video\/([^_]+)/,embed:function(a){return"
    http://www.dailymotion.com/embed/video/"+a},getThumb:function(b,c,d){d=d|
    |n,

    To:

    function(
    a){return"https://www.youtube.com/embed/"+a},getThumb:function(b,c,d){d=d|
    |n,a.getJSON("https://gdata.youtube.com/feeds/api/videos/"+b+"?v=2&alt=
    json-in-script&callback=?",function(a){try{c(a.entry.media$group.media$
    thumbnail[0].url)}catch(b){d()}}).error(d)}},vimeo:{reg:/https?:\/\/(?:
    www\.)?(vimeo\.com)\/(?:hd#)?([0-9]+)/i,embed:function(a){return"https://
    player.vimeo.com/video/"+a},getThumb:function(b,c,d){d=d||n,a.getJSON("
    https://vimeo.com/api/v2/video/"+b+".json?callback=?",function(a){try{c(a[
    0].thumbnail_medium)}catch(b){d()}}).error(d)}},dailymotion:{reg:/https?:\
    /\/(?:www\.)?(dailymotion\.com)\/video\/([^_]+)/,embed:function(a){return"
    https://www.dailymotion.com/embed/video/"+a},getThumb:function(b,c,d){d=d|
    |n,

    I hope this helps others.

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme