Code: Select all
[youtube]{TEXT}[/youtube]
Code: Select all
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
DualFusion wrote:I hope you know how to add bbcodes
Youtube:
BBCODE:HTML REPLACEMENT:Code: Select all
[youtube]{TEXT}[/youtube]
Code: Select all
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
If it worked for me, twfansite, and others, it must be working. Do you know how to add bbcodes?azzurri wrote:doesnt work for me. Is the code correct?
Exactly! Must be with video URL otherwise there is no point.Xabi wrote:That code is useless from a user-friendly point of view because it's based on the video ID and not on the video URL.We would need a BBCode based on the video URL.
Code: Select all
[youtube]{TEXT}[/youtube]
Code: Select all
<object width="425" height="350"><param name="movie" value="{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Excuse me for "complaining", but your code does not work in phpBB3 RC1. The embed youtube code uses a different URL (watch?v=XXX - /v/XXXX). Also, phpBB parses the youtube URL before parsing the BBCode, so at this point we CAN'T use the Youtube URL and we have to put the video ID, wich is a useless solution from the user point of view.WillSWC wrote:Ya know guys you could really stop complaining and spend 5 minutes doing it yourself. Here's the BBcode for the Full YouTube URL.
Code: Select all
[youtube]{TEXT}[/youtube]
Code: Select all
<a href="http://youtube.com/watch?v={TEXT}">Click here to view this video on Youtube.com</a>
Code: Select all
<a href="{TEXT}">Click here to view this video on Youtube.com</a>
Code: Select all
[youtube]{TEXT}[/youtube]
Code: Select all
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{TEXT}"></param>
<embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
</object><br />
<a href="http://youtube.com/watch?v={TEXT}" target="_blank">Youtube</a><br />
Code: Select all
[youtube]FWOsbGP5Ox4[/youtube]