Support » Plugin: All Video Gallery Plugin for WordPress » [Plugin: All Video Gallery Plugin for WordPress] Youtube thumbnail generation

  • Resolved jezz947

    (@jezz947)


    Hello,

    Thanks for the plugin. 🙂

    YouTube thumbnail generation is not working if the url starting with https://
    So I have replaced the code in videos/_add.php and videos/_edit.php

    preg_match('/http\:\/\/www\.youtube\.com\/watch\?v=([\w-]{11})/',$_POST['video'], $youtubeID)

    to

    preg_match('%^(?:https?://)?(?:www\.)?(?:youtu\.be/|youtube\.com(?:/embed/|/v/|/watch\?v= ))([\w-]{10,12})$%x',$_POST['video'], $youtubeID);

    Thanks and Regards,
    Jaseem V A

    http://wordpress.org/extend/plugins/all-video-gallery/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: All Video Gallery Plugin for WordPress] Youtube thumbnail generation’ is closed to new replies.