1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Broken media tag causes redirect to YouTube

Discussion in 'Resolved Bug Reports' started by DarkUnderlord, Jan 4, 2012.

  1. DarkUnderlord

    DarkUnderlord Member

    Sticking this in our forum:
    Code:
    [media=youtube] [/media[/media]
    ... causes the page with that message in it to be re-directed to YouTube. It even happens so fast it's sometimes hard to catch-it in order to edit / deal with the message.
     
  2. Vincent

    Vincent Well-Known Member

  3. Brogan

    Brogan XenForo Moderator Staff Member

    Confirmed if the Auto-embed media, and add a link to the content within this BB code option is selected.
     
    Vincent likes this.
  4. Mike

    Mike XenForo Developer Staff Member

    This happens when you use the iframe version of the embed. I think this is actually a YT bug. Not sure what we can do about it yet...
     
  5. Mike

    Mike XenForo Developer Staff Member

    Darkimmortal and Vincent like this.
  6. DarkUnderlord

    DarkUnderlord Member

    Yeah, we're using the iframe. Does anyone have some alternative embedding code we can use in the interim?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Try this:
    Code:
    <object width="640" height="385" data="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash">
    <param name="movie" value="http://www.youtube.com/v/{$id}&amp;fs=1" />
    <param name="allowFullScreen" value="true" />
    <param name="wmode" value="transparent" />
    <embed src="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="640" height="385" />
    </object>
     
    DarkUnderlord likes this.
  8. Mike

    Mike XenForo Developer Staff Member

    I've done a hacky workaround for this by stripping out / from YouTube links specifically (as other sites may need it). Hopefully they'll fix it though so I can remove it.
     

Share This Page