Embedded Youtube video guide.

Discussion in 'Site News & Suggestions' started by dullonien, Nov 17, 2009.

  1. dullonien

    dullonien Guest

    I was having serious problems embedding youtube video's into my posts. Everyone else seemed to be able to just copy the embed code from the video page on youtube, switch HTML on - auto Linebreak mode, and they had it working. None of mine worked doing that, and looking back at previous posts, Gay Guy was also having serious problems.

    I'm not sure where the problem was coming from, but here's the fix...

    This was the code I was getting from youtube:

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/7jxvy7W9bqo&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7jxvy7W9bqo&hl=en_GB&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

    For some reason, the things I've noted in red, to do with script access is what's buggering this up. Deleting those two pieces of code sorts out the problems. Below is what the code should look like to get youtube videos to work embedded in posts.

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/7jxvy7W9bqo&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/7jxvy7W9bqo&hl=en_GB&fs=1&rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

    Hope that helps someone. Below I've posted an example of the two pieces of code posted above with HTML set to Auto Linebreak mode.
     
  2. Forum Ad Advertisement

  3. dullonien

    dullonien Guest

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/7jxvy7W9bqo&h...am><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7jxvy7W9bqo&h...;fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/7jxvy7W9bqo&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/7jxvy7W9bqo&hl=en_GB&fs=1&rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
     
Enjoyed this thread? Register to post your reply - click here!

Share This Page