Log in to the ACP.
Management.
Add new BBCode.
Custom BBCode Title = YouTube BBCode
Custom BBCode Description = To embed a YouTube link
Custom BBCode Example =
Code: Select all
[youtube]9pKujuTgtL0[/youtube]
Use Option in tag? = No
Custom BBCode Replacement =
Code: Select all
<object width="425" height="350" autostart="0"><param name="movie" value="http://www.youtube.com/v/{content}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{content}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Code: Select all
<object width="425" height="350" autostart="0"><param name="movie" value="http://www.youtube.com/v/{content}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{content}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object><br /><br /><a href="http://www.youtube.com/v/{content}">http://www.youtube.com/v/{content}</a>
Stops pages being plagued with autostarts. When I figure out the code that hides them. I'll post that. That's actually better.autostart="0"