Company of Heroes: Eastern Front

Author Topic: Embedding videos  (Read 2961 times)

Offline Blackbishop

  • Administrator
  • Poster of the Soviet Union
  • *
  • Posts: 12053
  • Community Manager, Programmer and Kicker
    • View Profile
Embedding videos
« on: May 14, 2013, 08:09:13 AM »
To embed videos in posts click on the button when posting a reply or starting a new topic, it will give you this:

Code: [Select]
[flash=200,200][/flash]
First, the "200,200" part is the size of the video be careful about the size you assign ;). Second, you need to format the URL for the video in this way:

Regular YouTube URL
Code: [Select]
http://www.youtube.com/watch?v=VTbzeXebDIM&feature=player_embedded

OR

http://www.youtube.com/watch?v=VTbzeXebDIM

You need to take the value of "v", in the case of the URL above would be this "VTbzeXebDIM", and format it in this way:

Code: [Select]
[flash=200,200]http://www.youtube.com/v/VTbzeXebDIM?hd=1[/flash]
You can choose a dimension of "720,480" or "640,480" or whatever you prefer as long as it can be shown properly instead of "200,200". The ?hd=1 means the video will load the 720p version if available, however, as far as I know it already does it by default regardless you put or not the parameter... so you can just omit that part.

So, the result of the snippet of above would be this:
<a href="http://www.youtube.com/v/VTbzeXebDIM?hd=1" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://www.youtube.com/v/VTbzeXebDIM?hd=1</a>

And that's why you should change the default size of the tag 8). These instructions work not only in Eastern Front forums, but on every forum based upon SMF v2.0 if they have enabled the Flash tag().

I guess this will surely come handy for some users :).
« Last Edit: May 14, 2013, 08:11:33 AM by blackbishop »
Mors Indecepta

Might controls everything, and without strength you cannot protect anything. Let alone yourself...