Code: Select all
[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]
Code: Select all
<object width="425" height="350"><param name="movie" value="https://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="https://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Code: Select all
[youtube]{TEXT1}youtube.com/watch?v={IDENTIFIER}{TEXT2}[/youtube]
Code: Select all
<iframe width="560" height="315" src="//www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
Code: Select all
[youtube]{IDENTIFIER}[/youtube]
Code: Select all
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{IDENTIFIER}" width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
Code: Select all
[youtube]{IDENTIFIER}[/youtube]
Code: Select all
<iframe width="560" height="315" src="https://www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
That didn't work for me. My videos still don't embed or show up. Only newly posted ones do. Is there any other way? Can a database command do it?GandalfleGris wrote:My solution :
BEFORE :
Code: Select all
[youtube]{IDENTIFIER}[/youtube]
AFTER :Code: Select all
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{IDENTIFIER}" width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" /> <param name="wmode" value="transparent" /> </object>
(same)Code: Select all
[youtube]{IDENTIFIER}[/youtube]
On my forum, it works for old AND new embedded videos. \o/Code: Select all
<iframe width="560" height="315" src="https://www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
http://www.youtube.com
whilst others are using http[b][color=#FF0000]s[/color][/b]://www.youtube.com
so I really need a BBCode which can handle for formats of URLs.Code: Select all
BBCode usage: [video]{TEXT}[/video]
HTML replacement: <script type="text/javascript" src="video.php?link={TEXT}"></script>
I still will need a valid BBCode to display youtube videos.baller1234 wrote:use STK to reparse your topics.
Code: Select all
[youtube]{IDENTIFIER}[/youtube]
Code: Select all
<iframe width="640" height="360" src="https://www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>