Darkstorm Servers

General Stuff => Guides/Info => Topic started by: Linkjay on June 26, 2016, 04:33:27 PM

Title: How to add YouTube videos to your profile.
Post by: Linkjay on June 26, 2016, 04:33:27 PM
So if you look at mine, you can see I have a nice embed video of Highway to Hell. Now, the default, and non-deprecated method of doing this likes to not work so, this will be the only time I say this, but we're going to do it wrong to do it right. Simple?

This is the code.

<object width="800" height="360" data="YOUTUBELINKHERE">
</object>


This was deprecated a long time ago by YouTube and replaced with <iframe> which, for some reason, does not work on our profile setup. Now you can't just replace the link with anything, you have to get the special embed link. This can be done by going to any video, and clicking on share.

(https://i.imgur.com/NqwqwP9.png)

Now click on embed and copy JUST THE YOUTUBE LINK THAT CONTAINS THE /embed/ PART.

(https://i.imgur.com/mbfNtgm.png)

Now just replace the YOUTUBELINKHERE in my code with your new embed link. You can change the resolution but I would keep it how I set it at the very top in the HTML code. It looks nice, is widescreen, and just fits nicely with everything.


Pls donate some +rep for dis guide?