Quote:
Originally Posted by passwords
Is there any way to stop " related videos " from youtube ?
|
Quote:
Originally Posted by passwords
Hello ..
at the end of youtube videos it show the related videos ( attached pic ) , some times the related video is for adult ( sex, vlc, etc .. ) and i dont want to show that on my forum ..

|
Quote:
Originally Posted by doc1975
I second that, only to keep the adult videos from being displayed... haven't noticed any myself as of yet, but lord I'd hate to have a member stumble across one.
|
Quote:
Originally Posted by Surviver
That has nothing to do with this hack - we use the default YouTube player - you'd have ro ask youtube.com 
|
Actually....
For those who want to turn of the related YouTube videos, modify your /forums/includes/xml/videohoster-YouTube.xml and scroll down to near the bottom (with the current version it is the second to last function in the file) and find this bit of code:
Code:
function fetch_embedcode($videoid = '')
{
$videoid = $videoid ? $videoid : $this->video_id;
return '<object width="425" height="373"><param name="movie" value="http://www.youtube.com/v/' . $videoid . '&rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $videoid . '&rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="373"></embed></object>';
}
In that code several options are passed into the YouTube player via the query string. In this case, it is the "rel" option that needs to be changed. On the line that starts with "return" find the *two* instances of "&rel=1" and change the "1" (true) to be a "0" (false) instead ("&rel=0").
Save the file and refresh your page; the related videos should now be turned off.