WordPress.org

Ready to get started?Download WordPress

Forums

Smart YouTube PRO
Vimeo doesn't work (2 posts)

  1. talesrj
    Member
    Posted 2 years ago #

    Tried to use the Vimeo embed today per your instructions. Didn't work. After saving the post as a draft, all that displayed was:

    httpv://vimeo.com/[vimeo file number]

    Rather than the player.

    When I used the Vimeo iframe embed, it worked fine.

    http://wordpress.org/extend/plugins/smart-youtube/

  2. Jorge
    Member
    Posted 1 year ago #

    Yeah, I know where the problem resides. It's line #669 of smartyoutube.php:

    preg_match_all( "/((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtu\.be\/([a-zA-Z0-9\-\_]{11}))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?metacafe\.com\/watch\/([a-zA-Z0-9\-\_]{7})\/([^<^\/\s]*)([\/])?)|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?vimeo\.com\/([a-zA-Z0-9\-\_]{8})([\/])?)|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?liveleak\.com\/view(\?i\=)([a-zA-Z0-9\-\_]*))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?facebook\.com\/video\/video.php\?v\=([a-zA-Z0-9\-\_]*))|((http(vp|vhp)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/(view_play_list\?p\=|playlist\?list\=)([a-zA-Z0-9\-\_]{18,34})([^<\s]*))/", $the_content, $matches, PREG_SET_ORDER );

    This line searches for http://vimeo.com/XXXXXXXX, eight digits video id. When video id is shorter you must fill it with zeroes in leftmost positions: 1234567 -> 01234567.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags