How to Add YouTube Videos to phpBB

Post Reply
mister_v
Posts: 188
Joined: Thu Mar 04, 2010 9:19 pm

How to Add YouTube Videos to phpBB

Post by mister_v »

Hi,

I would like to be able too post youtube videos on my forum.
Its a bulletin board using phpBB.

is there an extension I can install?
chris
Site Admin
Posts: 194
Joined: Mon Jul 21, 2008 9:52 am

Re: How to Add YouTube Videos to phpBB

Post by chris »

If you have version 3 or higher of phpbb,
you can add your own BBCode buttons.

Log in to your Administrative Control Panel (ACP) and click on the Posting tab on the top menu.
then Add a new BBCode button.

Enter the following in the "BBCode usage" box:

Code: Select all

[youtube]{SIMPLETEXT}[/youtube]
and in the "HTML replacement" box:

Code: Select all

<iframe width="640" height="360" src="//www.youtube.com/embed/{SIMPLETEXT}" frameborder="0" allowfullscreen></iframe>
optional: in the “Help line text” box:

Code: Select all

Insert YouTube Video ID – Example: [youtube]zBhD00BP0[/youtube]
check "Display on posting page".
Submit

This should work.
I will try too add screen-shots later
Post Reply