Embedding Youtube Videos

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Jasun
Registered User
Posts: 65
Joined: Wed Dec 24, 2014 7:26 pm

Embedding Youtube Videos

Post by Jasun » Tue Dec 30, 2014 8:42 pm

Can someone tell me how to do this? I found a thread about it here but it didnt help.

User avatar
Lumpy Burgertushie
Registered User
Posts: 64692
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Embedding Youtube Videos

Post by Lumpy Burgertushie » Tue Dec 30, 2014 8:46 pm

you should find about a hundred topics ( not threads, phpbb does not have threads ) about it here. if you would give us a little more info about what topic you saw, what exactly you have tried etc.

it is very easy to create a new bbcode that will display youtube videos in the posts.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

Jasun
Registered User
Posts: 65
Joined: Wed Dec 24, 2014 7:26 pm

Re: Embedding Youtube Videos

Post by Jasun » Tue Dec 30, 2014 8:55 pm


User avatar
Lumpy Burgertushie
Registered User
Posts: 64692
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Embedding Youtube Videos

Post by Lumpy Burgertushie » Tue Dec 30, 2014 9:09 pm

did you notice the date on that post? many many things have changed in both google and phpbb since then.

anyway, do this:
go to the posting tab in the admin panel,
click to create a new bbcode

bbcode: [youtube]{TEXT}embed/{IDENTIFIER}{TEXT2}[/youtube]

html replacement:

Code: Select all

<iframe width="420" height="315" src="http://www.youtube.com/embed/{IDENTIFIER}" frameborder="2"></iframe>
help line:

Code: Select all

[youtube]copy and paste the  iframe embed code here[/youtube]
check the box to have it show on the posting page.

done.

when viewing a youtube video, under it will be the option to share, within that will be the choice of embed

be default , the iframe code should show up already highlighted.
right click on it and choose copy

go to the board, click on the youtube bbcode, press the control key an\d the "v" key on your keyboard and it will pasted the code into the bbcode brackets.

or, you can right click in between the bbcode brackets and choose paste.

done.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

Jasun
Registered User
Posts: 65
Joined: Wed Dec 24, 2014 7:26 pm

Re: Embedding Youtube Videos

Post by Jasun » Tue Dec 30, 2014 9:18 pm

works a charm, thanks

jhnmdahl
Registered User
Posts: 17
Joined: Wed Jun 24, 2015 7:49 pm
Contact:

Re: Embedding Youtube Videos

Post by jhnmdahl » Wed Jun 24, 2015 7:51 pm

Lumpy, that was a big help - I found the 2007 thread first too, which is no longer relevant. Hopefully a bump keeps this one near the top of search results for others with the same problem.

Thanks again,

John
Administrator of www.cobaltchat.com - a Cobalt Boats web forum

bmc1776
Registered User
Posts: 2
Joined: Sun Jul 19, 2015 1:27 am

Re: Embedding Youtube Videos

Post by bmc1776 » Mon Jul 20, 2015 1:25 am

This no longer works, added the bbcode html, etc... as above but no luck.

Any suggestions?

User avatar
Lumpy Burgertushie
Registered User
Posts: 64692
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Embedding Youtube Videos

Post by Lumpy Burgertushie » Mon Jul 20, 2015 1:47 am

please copy and paste exactly what you have for the bbcode here.

also, copy and paste exactly what you are putting in the post when trying to use the youtube video code.

robert

edit: just tested in 3.0 and 3.1
still works perfectly in both.
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

sakicjade
Registered User
Posts: 2
Joined: Mon Aug 10, 2015 2:10 pm

Re: Embedding Youtube Videos

Post by sakicjade » Mon Aug 10, 2015 2:13 pm

This works great. I got the video to embed in my forum post.

However ...

We use phpbb forums to post to our main webpage. Even when I check the box for display on posting page, when i go to the main public view website, all that appears is the coding i typed in. Any help on that would be greatly appreciated.

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Embedding Youtube Videos

Post by Oyabun1 » Tue Aug 11, 2015 9:59 am

sakicjade wrote:Even when I check the box for display on posting page,
That is only defining whether the BBCode button will appear on the posting page. The posting page is the page where you enter the text of a post, not some page which is external to the board.

No content content from a phpBB board will appear on a page external to the board, which is presumably what your "main public view website" is, unless that page is coded to gather and display the content, see, for example, Displaying posts and topics on external pages.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

sakicjade
Registered User
Posts: 2
Joined: Mon Aug 10, 2015 2:10 pm

Re: Embedding Youtube Videos

Post by sakicjade » Sat Aug 15, 2015 2:44 am

Oyabun1 wrote:
sakicjade wrote:Even when I check the box for display on posting page,
That is only defining whether the BBCode button will appear on the posting page. The posting page is the page where you enter the text of a post, not some page which is external to the board.

No content content from a phpBB board will appear on a page external to the board, which is presumably what your "main public view website" is, unless that page is coded to gather and display the content, see, for example, Displaying posts and topics on external pages.
Alright, I think that its an external page.

We use the website as "xxxxxx.com" We then use forums on that website. "xxxxxx.com/forum"

The website page, (external page?) pulls info from those forums. Most formatting I do in the forum, bold, url links, etc. translate over to the external page. It looks the same as when I view the post in the forum itself. However, when I add this code to the BBCodes, I can see the video in the forum post, but on the external page, it just shows the coding I typed in.

I dont know if this is making sense.

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Embedding Youtube Videos

Post by Oyabun1 » Sat Aug 15, 2015 3:08 am

You should start your own topic in [3.0.x] MOD Writers Discussion with a link to your board and the code you are using to extract posts from the board. My guess is that code which is the problem.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

Locked

Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 46 guests