Embedding youtube videos

Something is not working. You need help with ET related things. Spam posts will be deleted!
Post Reply
gaoesa
Site Admin
Posts: 1520
her blog
Joined: 05 Apr 2010, 15:02
Location: Finland
Contact:

Embedding youtube videos

Post by gaoesa »

Allowing HTML on the posts is not really safe to any users or to the board. There are several attacks that can be performed by just getting user browser executing malicious code within html tags.

On this board, HTML is not allowed in posts.

This means that the emebbing code that youtube generates to be included does not work either. To resolve this issue, I have added two tags that can be used to embed youtube videos to the posts.

The first tag is just a quick tag to which you only give the url of the video. The url can be from any youtube subdomains (e.g. http://www.youtube.com and es.youtube.com work just alike). The tag is used like this:

Code: Select all

[youtube]http://www.youtube.com/watch?v=bbnnyeBq8rw[/youtube]
However, that solution always shows the videos with the same resolution. To resolve this and give others the chance to see widescreen videos, there is another tag [youtube-reso]. This tag is used like this:

Code: Select all

[youtube-reso]640,385,http://www.youtube.com/watch?v=DJsQcnB6GC0[/youtube-reso]
Take notice that you give the desired resolution before the url. That is, width,height,url.

Do not give any additional parameters in the url. They will prevent the video from showing.
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
- Douglas Adams

silEnT development
http://mygamingtalk.com/
Post Reply