WordPress.org

Support

Support » Plugins and Hacks » Viper's Video Quicktags » Hide related videos on You Tube

Hide related videos on You Tube

Viewing 8 replies - 1 through 8 (of 8 total)
  • I am experiencing the same issue. I have the checkbox unchecked in the settings panel and I am sure I saved but still see related videos on all embeds throughout the site.

    A solution would be much appreciated!
    Thanks!
    **Kristin**

    Same here. Need a solution!

    Same problem for me!

    Me too. I finally just used the YouTube embed code, as it was for just one video on the whole site.

    Found a (dirty) solution. Go to “vipers-video-quicktags.php” and edit line 2992.

    Change “&rel=0” to “?rel=0”.

    Worked for me!

    Clean (non-tweaking plugin source) solution:

    Make sure that youtube videos are set to not play related videos in your Viper plugin settings, then go to the video on youtube. Click the “Share” tab, then click the “Embed” option. Check “Use old embed code”. Copy everything from the value parameter after “//www.youtube.com/v” and paste in between the youtube shortcode tags. Then change the & a m p ; to &.

    Should look like this:
    [youtube]/aBcDeFg123?hl=en_US&version=3[/youtube]

    I fixed this problem doing that on the vipers-video-quicktags.php

    line 2988:

    $url = 'http://www.youtube.com/' . $embedpath . $color1 . $color2 . $border . '&rel=' . $rel . '&fs=' . $fs . '&showsearch=' . $showsearch . '&showinfo=' . $showinfo . $autoplay . $loop . $hd;
    		$url = (strpos($url, '?') === false) ? preg_replace('/&/', '?', $url, 1) : $url;
    $this->swfobjects[$objectid] = array(
    			'width' => $atts['width'],
    			'height' => $atts['height'],
    			'url' => $url,
    		);

    line 3851 (more or less):
    $content .= ' swfobject.embedSWF("' . $this->wpuntexturize(esc_url($embed['url'])) . '", "' . esc_js( $objectid ) . '", "' . esc_attr( absint( $embed['width'] ) ) . '", "' . esc_attr( absint( $embed['height'] ) ) . '", "10", vvqexpressinstall, ';

    dloxton

    @dloxton

    Thank you @rafaelmoraesdefreitas – that worked for me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hide related videos on You Tube’ is closed to new replies.
Skip to toolbar