How do i fix youtube video thumbnail on Aeva Media

Started by drfun, April 26, 2017, 07:25:18 AM

Previous topic - Next topic

drfun

Hello all,
please i just fix the https:// issue on embedding youtube video, using this wonderful tutorial i found here http://www.simplemachines.org/community/index.php?topic=547900.0 , But after that, i noticed that it actually embeds the youtube videos but it cant call up the thumbnail.

i will appreciate any help on this. Bellow is the code i used for the (https://) fixing in my source/Aeva-Sites-Custom.php

// Fix for youtube.com
    if ($te['id'] == 'ytb') {
        $sites[$si]['plugin'] = 'html';
        $sites[$si]['pattern'] = 'https?://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtu(?:be\.com/[^"#[]*?(?:[&/?;]|&|%[23]F)(?:video_id=|v(?:/|=|%3D|%2F))|\.be/)([\w-]{11})';
        $sites[$si]['movie'] = '<div style="margin-top: 15px;"><iframe width="560" height="315" src="https://www.youtube.com/embed/$2" frameborder="0" allowfullscreen></iframe></div>';
        $sites[$si]['lookup-title'] = '<title>(.*?)</title>';
        $sites[$si]['lookup-title-skip'] = false;
        $sites[$si]['lookup-url'] = '';
        $sites[$si]['lookup-actual-url'] = '';
        $sites[$si]['lookup-final-url'] = '';
    }

ECLIKS -Global Online community for Questions and Answers

Advertisement: