• 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

#1
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.
 

Mike

XenForo developer
Staff member
#4
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...
 

Brogan

XenForo moderator
Staff member
#7
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>
 

Mike

XenForo developer
Staff member
#8
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.