Viewing 4 replies - 1 through 4 (of 4 total)
  • I’ve added a few lines of code to take care of youtu.be urls. Just add the code below in vipers-vide-quicktags.php on line #2871

    // Short/Share url ( http://youtu.be/videoid[?whatever=xx] )
    elseif ( FALSE !== stristr( $content, 'youtu.be' ) ) {
    	$parsed_url=parse_url($content);
    	$videoid=basename($parsed_url['path']);
    	$embedpath = 'v/' . $videoid;
    	$fallbacklink = 'http://www.youtube.com/watch?v=' . $videoid;
    	$fallbackcontent = '<img src="http://img.youtube.com/vi/' . $videoid . '/0.jpg" alt="' . __('YouTube Preview Image', 'vipers-video-quicktags') . '" />';
    }

    It also ignores query string parameters like t=xx added by youtube when a user selects a start time in the video.

    Hope the plugin author could add those patch to the source code.

    Thread Starter novakpeter

    (@novakpeter)

    Wooow, thank you, I will test it. Great…

    Thread Starter novakpeter

    (@novakpeter)

    Yeah, it works 100 %! Thank you!

    There must be some thing not rite. How do I get YouTube Link for WordPress , and where do I paste it

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Viper's Video Quicktags] BUG: Youtube "Share" short address doesnt work’ is closed to new replies.