스케치북 유튜브 게시판에서 유튜브 주소란에 http와 https를 함께 작동시키는 방법
_read.html 파일에서
<!-- 유투브 -->
{@
$extras = $oDocument->getExtraVars();
$youtube_url = $extras[1]->value;
}
<iframe class="youtube-player" type="text/html" width="640" height="480" src="{str_replace('http://youtu.be/', 'http://www.youtube.com/embed/',$youtube_url)}?rel=0&wmode=opaque" frameborder="0" allowfullscreen="true"></iframe>
<!--// 유투브 -->
이부분을 지우고
<!-- 유투브 -->
{@ $youtube_url = str_replace('https://youtu.be/', 'https://www.youtube.com/embed/', $oDocument->getExtraValueHTML(1));
$youtube_url1 = str_replace('http://youtu.be/', 'http://www.youtube.com/embed/', $youtube_url); }
<iframe class="youtube-player" type="text/html" width="640" height="480" src="{$youtube_url1}?rel=0&wmode=opaque" frameborder="0" allowfullscreen="true"></iframe>
<!--// 유투브 -->
이것으로 교체