WordPress.org

Ready to get started?Download WordPress

Forums

Hide YouTube Related Videos
[resolved] Does not work with Easy FancyBox (5 posts)

  1. RonDsy
    Blocked
    Posted 1 year ago #

    Unfortunately the plugin does not work with "Easy FancyBox." I have been manually adding "&rel=0"

    http://wordpress.org/extend/plugins/hide-youtube-related-videos/

  2. sparkweb
    Member
    Plugin Author

    Posted 1 year ago #

    @RonDsy, yeah, the plugin isn't designed for doing a full find and replace on all youtube links -- it's just for injecting the "&rel" into the oembed return which is something that you don't get access to in the editor. I'd have some concern about automatically changing all the links from the_content() as that could have some unintended consequences.

    So bottom line: this plugin is designed to do one very specific thing - just change the oembed return.

  3. RonDsy
    Blocked
    Posted 1 year ago #

    Hi Sparkweb,

    Adding, "&rel=0?autoplay=1" is not difficult. One solution would to find a plugin which has a notepad like function so that you can conveniently append the Youtube functions. The other option is to have FancyBox append the functions within the embed.

    Here are some examples on how the web team at Talking Manuals are using the FancyBox with the appended Youtube functions: "&rel=0?autoplay=1" http://talkingmanuals.com/how-to/photo/how-to-shoot-jewelry

    Kind regards,

    Ron

  4. titus dart
    Member
    Posted 1 year ago #

    I use 'my youtube playlist' plugin;
    I installed the plug in but it doesn't chance anything
    when I add &rel=0 to the code it stops showing related videos at the end but no I got blank thumbnails on my site any idea what I can do about this ? thnx titus

  5. sparkweb
    Member
    Plugin Author

    Posted 1 year ago #

    This plugin only handles the oembed. My YouTube Playlist does a direct embed on its own. You would have to manually add &rel=0 in a few places on line 16 of myYoutubePLaylist.php.

    <noscript><object width=\"500\" height=\"307\" data=\"http://www.youtube.com/v/###STARTVIDEO###&rel=0&hl=en&fs=1\" type=\"application/x-shockwave-flash\"><param name=\"movie\" value=\"http://www.youtube.com/v/###STARTVIDEO###&rel=0&hl=en&fs=1\"/><param name=\"allowFullScreen\" value=\"true\"/><param name=\"allowscriptaccess\" value=\"always\"/><embed src=\"http://www.youtube.com/v/###STARTVIDEO###&rel=0&hl=en&fs=1\" type=\"application/x-shockwave-flash\" width=\"500\" height=\"307\" allowscriptaccess=\"always\" allowfullscreen=\"true\"/></object></noscript>

    But I can't really support that plugin so.... good luck!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.