Aug 5 2008

How to Add YouTube Videos to phpBB

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…

Add YouTube Videos to phpbb3 image 1

(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)

Add YouTube Videos to phpbb3 image 2

(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):

Add YouTube Videos to phpbb3 image 3

(3c)Enter the following in the “Help line text” box:

(3d)Ensure that “Display on posting page” is checked.

(3e)Click Submit

Add YouTube Videos to phpbb3 image 4

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.

Add YouTube Videos to phpbb3 image 5

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: z7hhDINyBP0

www.youtube.com/watch?v=z7hhDINyBP0

In the link below it would be the the letters/numbers after the /
youtu.be/z7hhDINyBP0

To post the video you would then put the Video ID in between the tags like this:
[youtube]z7hhDINyBP0[/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. I can even set this up on your forum for you if you set up a temporary Admin account and send me the details to login and let me know which option you want (see my contact page to contact me).

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=z7hhDINyBP0 – instead of just the Video ID – z7hhDINyBP0

(IMPORTANT: There are different types of links YouTube uses for the same videos so there may be problems if using a link type that is different than the one used to create the BB code.

I will post 2 different alternate instructions options below for the 2 main link types. One with the “watch” in it that you will see if you are just clicking around youtube, and the 2nd alternate instructions option will use the shorter “youtu.be” link from the “Share” section of the Videos)

———————————————————————————

To Use Full YouTube “watch” URL – BB Code Option 1:

The only changes to the above main instructions to use the link with “watch” in it 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=z7hhDINyBP0[/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 with “watch” in it. Example: http://www.youtube.com/watch?v=z7hhDINyBP0 …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.

————————————————————————————

To Use Full YouTube URL from “Share” section – BB Code Option 2:

The only changes to the above main instructions to use the link from the “Share” section of the video 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://youtu.be/z7hhDINyBP0[/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 from the “Share” section of YouTube videos. Example: http://youtu.be/z7hhDINyBP0 …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.

67 Comments on this post

Trackbacks

  1. MoneyM8.com » Post Topic » How to Make Money with Ebay Partner Network on PHPBB3 wrote:

    [...] I showed you the other day how to create a custom BBcode tag so you can embed YouTube videos on phpBB3. [...]

    August 10th, 2008 at 3:23 am
  2. 50.forumer.com Embedded youtube videos: sorry but I don't understand. - Forum Hosting wrote:

    [...] 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/ [...]

    June 11th, 2009 at 12:00 pm
  3. omg, how do i make a website! - Hardware Canucks wrote:

    [...] or overall_header.tpl and edit something (menu, banner, etc) for youtube embed, you need do at How to Add YouTube Videos to phpBB but if other embed, then you need to create your own embed that similar to above… if you cant, [...]

    March 19th, 2011 at 1:46 pm
  1. 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
  2. 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
  3. 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
  4. Zsolti said:

    Thank you for this from Hungary!

    October 3rd, 2008 at 1:34 pm
  5. CRS said:

    Nice! Nice tip! TY !!! :D

    October 12th, 2008 at 10:48 am
  6. Johannes said:

    Sweet, thx!

    October 19th, 2008 at 9:32 am
  7. AdminXL.com said:

    worked like a charm.. thank you for sharing.. :-D
    keep up the good work

    October 28th, 2008 at 8:12 am
  8. 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
  9. 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
  10. 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,
    Jim

    November 2nd, 2008 at 8:53 pm
  11. Dimitris said:

    Simpliest and cleanest guide I read ever.

    November 6th, 2008 at 9:18 am
  12. 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
  13. makbut said:

    thanks thanks thanks :D

    November 29th, 2008 at 7:19 pm
  14. 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
  15. Shiva said:

    Thanks for the information :) This was very useful ^^

    December 19th, 2008 at 6:46 pm
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. paor said:

    It’s work!!

    thanks

    February 28th, 2009 at 5:00 pm
  24. 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
  25. 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
  26. 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.4

    HELP!!!!!!

    April 4th, 2009 at 2:02 pm
  27. Arthur said:

    yesss…… its works…
    thank you very much

    May 17th, 2009 at 6:32 am
  28. 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.
    Vladimiro

    June 11th, 2009 at 12:24 pm
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. Bastard said:

    big thanks genius :)

    September 1st, 2009 at 2:46 am
  35. 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
  36. 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
  37. 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
  38. 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
  39. Ghostwhisper said:

    This is super easy to do, and exactly what I wanted for my phpbb!

    Thanks so much!

    -=GW=-

    March 25th, 2010 at 2:18 pm
  40. Stopforumspam said:

    Hi guys i want to tell you about our site

    iam the admin of the website: http://stopforumspam.com

    and i want to sai pls take a look to my site so we can fight all the spam so long

    Greets Stopforumspam admin

    May 27th, 2010 at 11:55 pm
  41. Jaime said:

    Thanks, it works great, no hic-ups.

    May 31st, 2010 at 1:23 pm
  42. satsoptIb said:

    hell yea.thanx for sharing this post with me.i just found it buy google couse i was searching for
    more info about this.Ang WOOHOO! i found your post that was so usefull for me :)
    feel free to drop me email i will send small donation! love for all you here.

    October 21st, 2010 at 8:53 pm
  43. Pitogrande said:

    Thanks man. It worked. Solved my problem for my new forum.

    November 11th, 2010 at 8:59 am
  44. Andy said:

    Works a treat and really easy to follow instructions! Thank you!! Also solved the problem on my new forum :)

    December 21st, 2010 at 8:34 am
  45. maka said:

    Thank you for this. This is very useful. Now i can add youtube video.

    January 23rd, 2011 at 4:10 pm
  46. mharjun gamus said:

    tnx man..really works for me..

    March 2nd, 2011 at 2:25 am
  47. Admin Forum said:

    GREAT tutorial..
    Thank you for your help..

    March 22nd, 2011 at 10:00 pm
  48. SLDOWNLOAD.NET said:

    This was really help me. Thanks bro.

    September 3rd, 2011 at 11:13 am
  49. Barrett said:

    This is the interesting and awesome learn. The blog is published such it is so easy to read and understand. I AM a fan of your blog post. Appreciate your giving this information.

    September 10th, 2011 at 3:26 pm
  50. Grateful Fred said:

    After banging my head against a brick wall for weeks, I came across your posts. Problem solved. Thank you so much.

    September 11th, 2011 at 9:31 am
  51. Sam said:

    Worked like a charm, thanks very much for this. Other forum softwares automatically allow this though don’t they?

    October 8th, 2011 at 11:15 pm
  52. Convqm said:

    This is such a great source that you are providing and you offer it for free. I enjoy seeing websites that understand the usefulness of giving a superlative resource at no cost. I truly cherished reading your post. I value your work!

    As a final point , let me thank you for your tolerance with my English as (I’m certain you have become aware this at this time ,), English is not my head tongue therefore I am utilizing Google Translate to figure out what to write down what I genuinely want to articulate.

    December 2nd, 2011 at 11:04 pm
  53. John Wang said:

    This is one of the easiest tutorial on how to insert phpBB code to post YouTube video. Great job.

    January 9th, 2012 at 1:51 am
  54. Mike said:

    You’re a genius, thanks!

    March 1st, 2012 at 5:15 pm
  55. rohit said:

    nice tips. it works!! thanks

    April 22nd, 2012 at 7:40 am
  56. Din said:

    Both works great … but it doesnt appear to work with
    links that has two equal signs ? ( = )

    like this one.

    http://www.youtube.com/watch?v=JiCmo2nDfRg&feature=g-u-u

    June 26th, 2012 at 9:37 pm
  57. Polaros said:

    amazing , great. Big thx ;)

    August 25th, 2012 at 6:36 pm
  58. rcpro said:

    Thanks for posting this for us. It works great!

    November 13th, 2012 at 6:43 pm
  59. internet business scams said:

    Thanks for sharing your info. I really appreciate your efforts and I
    am waiting for your next write ups thanks once again.

    December 4th, 2012 at 4:13 pm
  60. Marty John Pido said:

    Thank you very much.. :) I used it in my forum you cab here http://forum.supremewealthallianceultimate.net/

    October 8th, 2013 at 10:12 am
  61. Bob Hammersley said:

    Excellent! Thanks.

    November 8th, 2013 at 9:44 am
  62. Kate said:

    This doesn’t work. The first version – where you insert only the number of the video – works. But the full YT address version doesn’t work.

    June 1st, 2014 at 9:08 pm
  63. Kate said:

    Hi,
    I opted for the second version – ie, allowing users to post the full YouTube url . and it doesn’t work. I was very careful installing the code, and the YouTube button displays perfectly, as does the code when you click it. But videos don’t display. Instead, the code displays.
    Any suggestions?
    Thanks

    June 1st, 2014 at 9:18 pm
  64. MoneyM8 said:

    Hi Kate, when using the full URL version you may run into problems if the URL type used is different than the one the BB code was set up with. There are many different versions of links YouTube uses to send people to videos.

    Below are 2 links to the same video.

    http://www.youtube.com/watch?v=9rmdtDfKZz0
    http://youtu.be/9rmdtDfKZz0

    The first one is the type I used with the code provided on the site and the second link won’t work with the BB code only posting unless it is changed.

    Even though the old code still works I’ll update the post with the new code and I am going to add another version using the 2nd link which is the one used in the share section of videos.

    June 2nd, 2014 at 1:27 pm

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog