Page 1 of 2

How to embed YouTube videos in this forum

Posted: August 27th, 2010, 11:21 am
by Winston
Hi all,
I just installed a mod in this forum that allows you to embed and play YouTube videos!

Simply put the YouTube URL between these tags:

Code: Select all

[youtube]YouTubeURL[/youtube]
Or highlight the YouTube URL and click the YouTube button above, just under the B (bold) button, to automatically wrap the YouTube tags around the URL.

Here is my Russia Music video embedded below, for example.



Therefore, from now on, you can embed your recommended YouTube videos here and watch them here, without leaving the site!

Winston

Re: You can now play YouTube videos in this forum!

Posted: August 27th, 2010, 4:52 pm
by jamesbond
Winston wrote:Hi all,
I just installed a mod in this forum that allows you to embed and play YouTube videos!
This is a cool feature to have. I was just thinking about how nice it would be to have this feature on this forum a few days ago! :D

Posted: November 7th, 2013, 2:30 am
by Winston
Hi all,
I've come to realize that when you embed too many YouTube videos on one page, it greatly slows down the page loading time for the page. And if you are on a slow computer, it can take forever or hang and drag.

Therefore, let's make a rule of thumb here. If you are posting a lot of YouTube videos, please do not embed them. Instead, just post the hyperlinks so them. But if you are posting only a few videos in a thread with little or no other embedded videos, then you can embed them. Also, if the thread contains too many embedded videos by others already, then just post the links to them without embedding them.

Sound good?

Thanks,
Winston

Posted: March 20th, 2014, 10:09 pm
by Winston
A reminder:

Some of you have been having trouble embedding YouTube videos. I think I know why. Remember to use http, not https. Remove the s from https. It won't work with that s. For some reason, YouTube now uses https as default.

So a proper YouTube URL that will embed correctly will look like this.

Code: Select all

[youtube]http://www.youtube.com/watch?v=k30Dt1tc_rw[/youtube]
Hope that clears things up. That will solve most of the problems with embedding YouTube videos here.

Re: You can now embed YouTube videos in this forum!

Posted: October 19th, 2014, 6:24 am
by Winston
New feature!

You can now embed Vimeo videos in the forum. To embed Vimeo videos, you simply insert the number of the video, and the number only, between these tags:

Code: Select all

[vimeo]vimeo video number[/vimeo]

Re: You can now embed YouTube videos in this forum!

Posted: August 7th, 2016, 6:22 am
by Voyager1
Doesn't work for YouTube. Tried it many times.

Re: You can now embed YouTube videos in this forum!

Posted: August 7th, 2016, 6:27 am
by Winston
Voyager1 wrote:Doesn't work for YouTube. Tried it many times.
It does. Follow the instructions above. Take out the s in https so that it only shows http.

Re: You can now embed YouTube videos in this forum!

Posted: August 7th, 2016, 6:41 am
by Voyager1
OK got it working

Re: How to embed YouTube videos in this forum

Posted: August 13th, 2016, 1:50 am
by Winston
Update:

Ok I got the YouTube videos working again, by replacing the YouTube BBCode with a new version that uses iframe. Now the videos show up in iframe and load faster and have a more modern widescreen format too. However, the bad news is that only the NEW videos posted will show up. All the other ones won't, because I deleted the old BBCode rather than replace it, by accident. When I did that, it stopped all the other videos from embedding. Weird. That sucks. I will have to ask the support staff at phpbb support forums if there's a way to run a database command to fix this so that all the videos show.

There is another way to make them show and that is to resubmit the post. However, it won't work unless you change something in the text, even if it's only one letter. If you don't change anything and simply resubmit a post, the video won't show. It only shows if you change something, even if it's just one letter.

For now though, the YouTube embed code is the same, with one advantage. You can use both http and https, like this:

Code: Select all

[youtube]http://www.youtube.com/watch?v=2XSfgpQER9w[/youtube]

[youtube]https://www.youtube.com/watch?v=2XSfgpQER9w[/youtube]
Both will show the video now. When you embed them, they will look like this:

[youtube]https://www.youtube.com/watch?v=2XSfgpQER9w[/youtube]

Anyway, I'll try to fix the other videos if I can. Maybe there's a way to run a database command that will embed the other videos. I'll ask the support staff in the phpbb support forum and see. I'll keep you all updated. Sorry for this trouble.

Re: How to embed YouTube videos in this forum

Posted: August 13th, 2016, 1:55 am
by Winston
Please ignore this post. I'm posting the YouTube embed BBCodes here for reference and data storage only.

New YouTube embed BBCode.

Field 1

Code: Select all

[youtube]{TEXT1}youtube.com/watch?v={IDENTIFIER}{TEXT2}[/youtube]
Field 2

Code: Select all

<iframe width="560" height="315" src="//www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>

Re: How to embed YouTube videos in this forum

Posted: August 16th, 2016, 4:41 am
by Winston
Btw, if you try to play a YouTube video here and it says error when you play it, then just refresh the page by pushing Control R. After the page refreshes, try to play the video again. I don't know why but sometimes there is an error message when you try to play the video. Maybe iframes aren't very stable.

Re: How to embed YouTube videos in this forum

Posted: April 17th, 2017, 5:00 am
by Winston
Announcement: It appears that YouTube videos will not embed anymore with "http". You have to use "https" at the beginning of the YouTube URL for it to embed. YouTube must have changed something to make this so. So from now on, please embed YouTube videos with "https". Remember to put the "s" in it, or it will not show. Thanks.

Re: How to embed YouTube videos in this forum

Posted: October 30th, 2017, 1:53 am
by Winston
Just to let you all know.

You now have to put https not http in youtube URLs in order to embed tbem. Merely using http doesnt work anymore. They've changed it so that only https can be embedded. So if your videos are not embedding, make sure its https.

Also, YouTube URLs now contain t= in them now to delineate the number of seconds you watched in it already. The t= code cannot work in an embed code so you gotta remove it too. Make sure the code has this structure: watch?v= . Remove the t= which usually comes up between ? and v.

Re: How to embed YouTube videos in this forum

Posted: October 30th, 2017, 2:01 am
by TruthSeeker
That is not true. I tested it. You can still use http. The difference is now you can use both http and https.

Re: How to embed YouTube videos in this forum

Posted: November 1st, 2017, 1:36 pm
by Winston
TruthSeeker wrote:That is not true. I tested it. You can still use http. The difference is now you can use both http and https.
You're right. You can embed both. I just checked. Thanks for the correction. The reason I thought http couldnt be embedded was because i tried to edit and resubmit YouTube URLs in posts but they didnt embed unless i changed at least one character in the post first. So i mistakenly assumed it was due to http. So if you are trying to resubmit a post to embed a YouTube URL, make sure to change a character in it first, such as adding s to http.