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

As designed Duplicate embed videos when the option for Auto-embed link is enable

kkm323

Well-known member
#1
When this option is enable
---- Auto-embed media, and add a link to the content within this BB code

if you edit your post and hit submit the post creates a duplicate embed videos
 

Jake Bunce

XenForo moderator
Staff member
#2
That's why that option has a warning:

Screen shot 2013-01-01 at 1.52.27 PM.png

To avoid this problem I suggest modifying the replacement of the media site itself. For example:

Admin CP -> Home -> BB Code Media Sites -> YouTube -> Embed HTML

Add the red code:

Code:
<iframe width="500" height="300" src="http://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>

<br />

<a href="http://www.youtube.com/watch?v={$id}" target="_blank">Watch on YouTube</a>