Embed Youtube videos into post

What could be included in further releases, or for the forum.
User avatar
Vassilis
Posts: 294
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Embed Youtube videos into post

Post by Vassilis » Wed Jan 27, 2016 9:26 am

I wanted to post a youtube video to this forum but that feature is not supported yet.
So, I did a quick research and I found the way to do it (it is tested on my personal phpbb3 server and it works).

The following must be done by Roger because he is the administrator of this forum.

1. Go to Administrator control panel -> Posting -> BBCodes
2. Click on <Add new BBCode>
3. In <BBCode usage> frame paste the following code

Code: Select all

[youtube]{SIMPLETEXT}[/youtube]
4. In <HTML replacement> frame paste the code

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
5. Click on <Submit>


For any other forum member that wants to add youtube video on his/her post:


If you want to post your Youtube video just do the following:
for example, if we have that youtube link

Code: Select all

https://www.youtube.com/v/EV49y8cspV4
copy only the last part of the link

Code: Select all

EV49y8cspV4
and write

Code: Select all

[youtube]EV49y8cspV4[/youtube]
My youtube example video


User avatar
RogerClark
Posts: 5923
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Embed Youtube videos into post

Post by RogerClark » Wed Jan 27, 2016 9:49 am

I've added the BBCode for this, as suggested by Vasillis, but it doesnt work for me because I have disabled flash in my browser

Normally youtube works OK as it defaults to HTML video playback

Perhaps I can doing my own BBCode to use the iframe syntax e.g.

Code: Select all

<iframe width="420" height="315" src="https://www.youtube.com/embed/TePglhSkghg" frameborder="0" allowfullscreen></iframe>

User avatar
RogerClark
Posts: 5923
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Embed Youtube videos into post

Post by RogerClark » Wed Jan 27, 2016 9:52 am


User avatar
ahull
Posts: 1510
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Embed Youtube videos into post

Post by ahull » Wed Jan 27, 2016 3:24 pm

This is what I get with the youtube tags.
[youtube]https://www.youtube.com/watch?v=nO9WGpEOdME[/youtube]

Hmm...

<iframe width="420" height="315" src="https://www.youtube.com/embed/nO9WGpEOdME" frameborder="0" allowfullscreen></iframe>
- Andy Hull -

zmemw16
Posts: 1156
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Embed Youtube videos into post

Post by zmemw16 » Wed Jan 27, 2016 3:38 pm



it also works i.e. plays when i do a preview of the post.

i used
oops

just use nO9WGpEOdME in the bcc

now did the cleaning work?

stephen

User avatar
RogerClark
Posts: 5923
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Embed Youtube videos into post

Post by RogerClark » Wed Jan 27, 2016 8:22 pm

Hi Andy,

You just put the youtube video code between the youtube bbcode brackets, not the whole URL

Rather than

Code: Select all

[youtube]https://www.youtube.com/watch?v=nO9WGpEOdME[/youtube]
you need to use

Code: Select all

[youtube]nO9WGpEOdME[/youtube]
gives this


User avatar
ahull
Posts: 1510
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Embed Youtube videos into post

Post by ahull » Wed Jan 27, 2016 10:28 pm

@Roger and @zmemw16 - thanks. :D
zmemw16 wrote:\

now did the cleaning work?

stephen
Sadly, no. I then replaced the keyboard with a brand new one from ebay, which required a bios upgrade to get it working... it turned into a bit of a saga. :?
- Andy Hull -

zmemw16
Posts: 1156
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Embed Youtube videos into post

Post by zmemw16 » Wed Jan 27, 2016 10:31 pm

bios in a keyboard?

gaming keyboard?

srp

User avatar
ahull
Posts: 1510
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Embed Youtube videos into post

Post by ahull » Wed Jan 27, 2016 10:35 pm

zmemw16 wrote:bios in a keyboard?

gaming keyboard?

srp
http://www.comspeccomputers.co.uk/index ... odels.html

Nope, screw up in the Dell supply chain.
- Andy Hull -

zmemw16
Posts: 1156
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Embed Youtube videos into post

Post by zmemw16 » Thu Jan 28, 2016 2:55 am

you dunked the laptop :shock:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest