Archive for urbanglasgow.co.uk For information past, present & future on the city of Glasgow, Scotland, UK
 


       urbanglasgow.co.uk Forum Index -> Forum Issues
James

Embedding YouTube & Vimeo Videos

First, go into your own profile and make sure the 'Always allow HTML' option
is selected:




Then, when posting a reply, make sure there is no tick in the 'Disable HTML
in this post' box:




Finally, the YouTube embed code looks like this:

Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/qXDuoiD3yyg"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/qXDuoiD3yyg" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>


Remove everything except the code in the 'embed' tags, like this:
Code:
<embed src="http://www.youtube.com/v/qXDuoiD3yyg" type="application/x-shockwave-flash" width="500" height="375">


Et voilą.  




James H
James

Embedding Vimeo Videos

Vimeo videos can be embedded but they are are bit different to YT videos.
For a start, they tend to use the <iFrame> tag which doesn't work on this forum.

Instead, use the code below to embed a Vimeo video.
Code:
<embed src="http://vimeo.com/moogaloop.swf?clip_id=12345678&server=vimeo.com&show_title=0&show_byline=0&show_portrait=0&color=00adef&fullscreen=1&autoplay=0&loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="360">
</embed>

The only thing you'll need to change is the height & width numbers and, most
importantly, the clip_id number, 12345678 on the code above

Be sure not to delete the & sign after the clip_id number. Every Vimeo video
has it's own unique clip_id number.

Et voilą.  



James H
Alex Glass

I can't find the old code for posting videos from YouTube. May be that I am thick but it doesn't appear to be available to me would that be right?
cybers

A lot of the newer Videos are missing the old code so you need to basically write your own.
At the top of the page Alex In the address bar is the video address it looks like this...

Code:
http://www.youtube.com/watch?v=ul35z_ePKjM


You need the end part the last 11 characters ul35z_ePKjM

Then just replace the xxxxxxx's in this with the 11 chars



Code:
<embed src="//www.youtube.com/v/XXXXXXXXXX?hl=en_US&version=3" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>
Alex Glass

Brilliant  

Thank you very much Cybers

I will be able to post a video I did now.

   
Doorstop

horza

Thanks cybers. Was able to sort out my Inverkip demo video from last week :)
cybers

Happy to help guys ... I had to figure this out too for embedding a wee video in another site i use.
AlanM

James, would it be possible for you to create a [youtube] tag that we would just wrap the url in and it would create the embed code. There's probably some already written on the phpBB forum.
James

I've added a 'Video' tag to use to embed YouTube videos.

Code:
How to use:

[video]http://www.youtube.com/watch?v=vpPfnawGxL8[/video]



Link


Doesnt seem to work for Vimeo videos.



James H
Alex Glass

Thanks very much James

This works a treat

     

       urbanglasgow.co.uk Forum Index -> Forum Issues
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum
The early bird catches the worm (proverb) | The second mouse gets the cheese (fact)