How to add youtube clips in phpBB3 posts with BBcodes

How to add youtube clips in phpBB3 posts with BBcodes

This tutorial will show you how to add youtube-, break- or any flash-video that you want show in your forum post with bbcodes.

First you got to go into the ACP (Admin Control Panel) and then you have to press the “Posting”-tab. You will then get straight in to the BBCodes-page. Press then the Add a new BBCode.
You have now got 3 textboxes and 1 checkbox in your window. In the first you paste this:

[utube]{TEXT}[/utube]

In the next box you paste this:
<embed src="{TEXT}" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed>

In the next box you can write “For flash videos!” And then check the checkbox. And then you are finished with the BBCode.

But you can’t post the url to a youtube in between the [utube]-boxes. What you have to do is simple copy the url, then press the utube button or write the code yourself. [utube][/utube].

Then paste the url in between like this
[utube]http://www.youtube.com/watch?v=jsjAAc2P33E[/utube]


For it to get the flash file remove watch? and replace = with a / so you end up with this:
[utube]http://www.youtube.com/v/jsjAAc2P33E[/utube]

Comments

Gravatar

Chris

YouTube BBCode Best Method!


Hello!

This bbcode snippet here will allow your users to paste the WHOLE YOUTUBE LINK. I use this on my phpbb3 forums over at http://www.aintnobullshit.com and it works great!


BBcode usage:
[youtube]http://www.youtube.com/watch?v={TEXT}[/youtube]


HTML Replacement:
<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>



This is a much easier method than having the users copy and paste a small ID #.......and this method even works if you add the "&feature=related" thing on the end, too.


Happy phpbbing!
~f13
Gravatar

Dan

Hello, Chris! Thank you for sharing that!

That is the best way if you only want youtube clips to be shown! If you use my moethod you can paste in all kinds of different flash movies, for example break.com.

But again, thank you for sharing the simplest way of using bbcodes for youtube videos.

Write a comment

Name *

Mail (will not be published) *

five plus five *

http:// Website

rss

Flickr Pool