How to Add YouTube Videos to phpBB
- 45 Comment
With bulletin boards such as phpBB, you can’t embed videos just by copying and pasting the embed code in a post. With the new PHPBB3 they have a feature that allows you to create custom BB code tags, which I did for a forum so I could embed YouTube Videos in a post, and I’ll show you how to create a custom BBcode tag so you can easily embed YouTube Videos in your posts on your phpbb3 forum (See alternate instructions at bottom of this post if you need to use the full YouTube URL to add YouTube videos on your phpBB forum)
(1) Log in to your Administrative Control Panel (ACP) and click on the Posting tab on the top menu…

(2)Click the Add a new BBCode button in the bottom right hand corner…
(note: The “youtube”, as shown in the photo below, won’t appear at this point on your forum)

(3a)Enter the following in the “BBCode usage” box:
(3b)Enter the following in the “HTML replacement” box (note: you can adjust the width and height to what you want):

(3c)Enter the following in the “Help line text” box:
(3d)Ensure that “Display on posting page” is checked.
(3e)Click Submit

That’s it!
The new custom [youtube][/youtube] BBcode tag option you just created will now appear in the posting editor for you and your phpbb3 forum community members to use.

Now, to use the new [youtube][/youtube] BB code tags you just created, you just need to insert the YouTube Video ID of the YouTube video you want to add in between the tags.
The Video ID is the #’s and letters after the =
For Example: The Video ID in the YouTube Video link below is: xmLa_W_afH4
www.youtube.com/watch?v=xmLa_W_afH4
To post the video you would then put the Video ID in between the tags like this:
[youtube]xmLa_W_afH4[/youtube]
You will now be able to embed YouTube videos on your phpbb3 forum.
If you found this post useful please leave a comment and linking back to this tutorial would be great. If you have any questions or need help, please feel free to ask and I’ll answer or help if I can.
Alternate Instructions to embed YouTube Videos on Your phpBB forum:
I have been asked to provide alternate instructions for those who want to use the FULL YouTube URL – http://www.youtube.com/watch?v=xmLa_W_afH4 – instead of just the Video ID – xmLa_W_afH4 — The only changes needed are to these two parts as follows:
(3a)Enter the following in the “BBCode usage” box:
(3c)Enter the following in the “Help line text” box:
You will then use the YouTube BBcode tags as follows to embed YouTube videos in your phpBB forum using the full youtube URL:
[youtube]http://www.youtube.com/watch?v=xmLa_W_afH4[/youtube]
The above two parts (3a) and (3c) of the tutorial are the only parts you’ll need to change to use the full YouTube URL and you can follow the rest of the instructions exactly as they appear in the main “How to Add YouTube Videos to phpBB3″ tutorial above.
45 Comments on this post
Trackbacks
-
WAYNE WRX said:
Hello, this sounds great and would like to do this but was wondering and maybe a stupid question but will this take up alot of bandwidth????
August 18th, 2008 at 7:50 am -
MoneyM8 said:
Hi Wayne,
No, the YouTube videos are still hosted on YouTube so it uses their bandwidth. You are just embedding the videos on your phpBB3 forum so your members can watch the videos on your site and not have to leave to go to YouTube.
August 18th, 2008 at 9:37 pm -
Chris said:
[b]YouTube BBCode Best Method![/b]
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:
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!
~f13September 12th, 2008 at 1:55 am -
Chris said:
Above post didn’t work so well.be sure to remove “[code]" and "[/code]” from the HTML section before pasting into your bbcodes….
BBcode usage:
[youtube]http://www.youtube.com/watch?v={TEXT}[/youtube]HTML Replacement:
[code][/code]September 12th, 2008 at 1:57 am -
Chris said:
BBcode usage:
[youtube]http://www.youtube.com/watch?v={TEXT}[/youtube]HTML Replacement:
<!– –>September 12th, 2008 at 1:58 am -
Chris said:
I fail. I just dont know how to leave comments in this system that contain HTML code without having the system try to process the code. Let’s make this simple, here is a link to my forum post about it, properly displayed for you to see.
September 12th, 2008 at 2:00 am -
Dilson Decano said:
thank you very much for posting this. i have phpbb forum and just wondring how to embed youtube videos. thanks for this forum :D
September 12th, 2008 at 10:50 am -
Zsolti said:
Thank you for this from Hungary!
October 3rd, 2008 at 1:34 pm -
CRS said:
Nice! Nice tip! TY !!! :D
October 12th, 2008 at 10:48 am -
Johannes said:
Sweet, thx!
October 19th, 2008 at 9:32 am -
AdminXL.com said:
worked like a charm.. thank you for sharing.. :-D
keep up the good workOctober 28th, 2008 at 8:12 am -
StraightLineDogSupply.com said:
Just installed it on StraightLine Dog Forums.. couldnt have been easier.. GREAT tutorial man.. Great Work…
October 28th, 2008 at 8:31 am -
Brothas-United said:
Installed it on the Brothas United combat arms clan forums, works fine! Very simple to do! Thanks for the tutorial.
October 29th, 2008 at 10:52 pm -
jimbomel said:
Hi guys,
I recently registered to this forum http://www.moneym8.com and hope that anybody can
give me an advice on the forex market – I am looking for an introduction
for noobs. I have already some knowledge about shares. (Hope this is the adequate category.)Any help is so much appreciated. Most important question: can a noob make money on the forex market?
Thanks,
JimNovember 2nd, 2008 at 8:53 pm -
Dimitris said:
Simpliest and cleanest guide I read ever.
November 6th, 2008 at 9:18 am -
HSCharles said:
I have a flash website
i’m looking for the script who of google ads with flash.
where can i get it?November 13th, 2008 at 10:23 pm -
makbut said:
thanks thanks thanks :D
November 29th, 2008 at 7:19 pm -
MoneyM8 said:
Reply to Chris’ comment above…
Chris, that way will work but only if your members always use the regular .com link when they add YouTube videos to your phpBB3 board, but it will screw up if you have members from around the world that may automatically land on YouTube subdomains like: http://www.ca.youtube.com or http://www.uk.youtube.com
Using only the YouTube Video ID# will guarantee that whoever posts YouTube videos on your phpBB3 board, it will always work.
December 10th, 2008 at 10:28 pm -
Shiva said:
Thanks for the information :) This was very useful ^^
December 19th, 2008 at 6:46 pm -
Monty said:
THANKS! Man, I worked all day trying to use the instructions phpBB provided, and several other sites also, with no success. This was a snap!
Someone here is a frickin genuis!
January 14th, 2009 at 5:31 pm -
Angel said:
This is GREAT! I’ve been looking for this all day and I got an answer in this site!! Thanks in a BUNCH!!! MoneyM8
January 15th, 2009 at 12:39 am -
Dog Forum said:
isnt it awesome when good people like him share information rather than tuck it away.. :D
Great Tutorial.. thank you..
January 30th, 2009 at 10:09 pm -
phpbb3 noob said:
Adding youtube to my phpbb3 forum could not have been easier with this tutorial! I’ve been trying to figure it out how to add videos to my forum for a long time and then I searched and found this. Thanks!!!!!!!!!!!!! You should add a virtual tip jar (PayPal button) so I can send you a couple bucks for the time you saved me.
February 9th, 2009 at 7:56 pm -
poevyGoff said:
This alignment is also towards a southerly rising of Venus which occurs once every eight years.
February 10th, 2009 at 12:33 pm -
Y3blik said:
Thankyou very much! I’ve read a bunch explanations so far and this is the only one to explain it clearly.
February 12th, 2009 at 11:21 am -
Spiros said:
Thank you very much Wayne!!!
It was easy to apply and extremely useful and fun!
Bravo!
February 13th, 2009 at 7:38 pm -
paor said:
It’s work!!
thanks
February 28th, 2009 at 5:00 pm -
brian said:
i did as follwed but when i go to to post a message and leave the imbeded html fro youtube I just get text and not the jpeg image and link. Helpppppppp.
March 2nd, 2009 at 4:10 pm -
neoindiaforums said:
Thanks for the great tutorial. I was trying to post youtube videos in my newly setup forum and was not able to do. On searching on how to embed youtube videos, I found your great website and with your easy to understand information I simply embed youtube videos in the forum.
Thank You very much!
April 4th, 2009 at 1:11 am -
James said:
I tried this and still will not work. I even watched a youtube video and he said the same thing you did and still won’t work any ideas?
PHPBB 3.0.4HELP!!!!!!
April 4th, 2009 at 2:02 pm -
Arthur said:
yesss…… its works…
thank you very muchMay 17th, 2009 at 6:32 am -
vladimiro said:
Thanks a lot!!!!
I had some problems with the settings of my forum… I looked around several days trying to find how to embedd videos…. and thanks to your explanation i got the solution in just 2 minutes.Thanks again.
VladimiroJune 11th, 2009 at 12:24 pm -
janiceenberg said:
A warm greeting to everybody! Hello to all,i am a new member of this forum and hope to have a good experience here
June 15th, 2009 at 7:05 am -
MoneyM8 said:
Brian and James,
First, Brian, after you follow the instructions above EXACTLY, you do not use the full embed code provided by YouTube to add videos in your phpBB forum when posting. You just use the YouTube video ID at the end of the link and add it between the custom YouTube BBcode tags you created…
For example…in the YouTube link below….
http://www.youtube.com/watch?v=xmLa_W_afH4
…the YouTube video ID is: xmLa_W_afH4
To embed the YouTube video in a post on your phpBB3 forum you would then put the YouTube video ID in between the custom YouTube BBcode tags like this:
[youtube]xmLa_W_afH4[/youtube]
James, did you follow the instructions EXACTLY? If you follow the instructions EXACTLY you shouldn’t have any problems embedding YouTube videos on your phpBB forum.
June 21st, 2009 at 2:59 pm -
AF said:
I came across your blog because I am having a problem implementing the BBcode translation in PHPBB3. I wonder if you can help?
I have just converted the forum from PHPBB2 to PHPBB3 and have links already in the forum like:
[youtube]http://www.youtube.com/v/xewypk1K4B4[/youtube]
So, I set up BBcode as follow:
Usage:
[youtube]{URL}[/youtube]HTML Replacement:
But all it does is display the raw bbcode in the Post, rather than the Video itself.
Any ideas? Is there a setting in PHPBB3 which must be set in order for this to work?
August 28th, 2009 at 3:17 am -
AF said:
HTML Replacement : (Hope this displays better)
<object width=”425″ height=”350″><param name=”movie” value=”{URL}”></param><param name=”wmode” value=”transparent”></param><embed src=”{URL}” type=”application/x-shockwave-flash” wmode=”transparent” width=”425″ height=”350″></embed></object>
August 28th, 2009 at 3:20 am -
AF said:
BBcodes are turned on, I’m in as an administrator, but I still don’t get a translation
August 28th, 2009 at 3:29 am -
Bastard said:
big thanks genius :)
September 1st, 2009 at 2:46 am -
MoneyM8 said:
AF,
Try using the following in the BBCode Usage box…
[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]
…along with the html replacement I already have above.
The help line will of course have to show to use the WHOLE video URL instead of just the YouTube video ID as I show in the tutorial above.
The only thing is I’m not sure if it works if someone posts a URL from another YouTube domain…ie: http://www.ca.youtube.com or uk etc.
Actually, which URL are you using when posting YouTube videos? I notice in your above post it isn’t the URL with “watch” in it as YouTube has for each Video. It looks like you are using the URL out of the embed code and using that instead.
If you can take a screen shot of the code you currently have set up in your BBcodes to embed YouTube Videos and upload the image to image shack or photobucket, then post the link here to the screenshot I can take a look at your BBcode.
Let me know if the above works for you though.
September 7th, 2009 at 2:17 pm -
Great Tutorial said:
Finally I found very easy instructions to add youtube videos in my forum. Thank you very much!
September 13th, 2009 at 1:10 pm -
the rocketeer said:
Hi, This works… but lets face it a lot of people are used to doing something like entering the whole URL… so can you alter this or create a new version that will support entering the whole url ?
October 12th, 2009 at 10:37 am -
MoneyM8 said:
Hi the rocketeer,
See the alternate instructions I added. Those are the only changes needed to use the whole URL to add YouTube videos on a phpBB forum.
October 13th, 2009 at 5:35 pm -
Hafionina said:
This is a compiled list of godaddy promo codes my entire IT group uses.
Godaddy domain coupons:
RAD7 : 30% off .com renewal domains, as many domains as you want
RAD5 : 10% off any order
RUSH3 : $7.49 domains
RUSH1 : 10% off any orderGodaddy hosting coupns:
RUSH20 : 20% Off Hosting (1,2,3 yr accounts)
CHN1 : 10% Off Monthly hosting accountsBased on order size:
RUSH2 : $5 off order of $30 or more
MOPOFF : $10 off order of $40 or more
MOP15 : 15% off order of $75 or moreUnique promo codes:
BUCKSSL : $12.99 SSL ( 56% Off )
AUCTION12 : 50% Off Auction accountsThese coupons never expire so print them out.
The only one I cannot find is a .net discount, anyone got one?
March 5th, 2010 at 7:15 am
[...] I showed you the other day how to create a custom BBcode tag so you can embed YouTube videos on phpBB3. [...]
[...] Re: Embedded youtube videos: sorry but I don’t understand. This guide has picture that may help you. Basically you just need to edit under the "posting" tab. http://www.moneym8.com/2008/08/05/ho…eos-to-phpbb3/ [...]