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


Well-known member
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
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:

Rich (BB code):
<iframe width="500" height="300" src="{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>

<br />

<a href="{$id}" target="_blank">Watch on YouTube</a>