If the embed code for the vimeo video is:

<iframe src="http://player.vimeo.com/video/6282866" width="940" height="635" frameborder="0"></iframe>

What is the correct way to launch this video on colorbox ?

Thanks

Comments

frjo’s picture

Enable "colorbox load" in the Colorbox configurations. Then build the link like this.

<a class="colorbox-load" href="http://player.vimeo.com/video/6282866?width=400&height=225&iframe=true">Play vimeo video</a>
rolandk’s picture

Thank you, that worked perfectly.

Just need to add the above code to a node as PHP code text format.

frjo’s picture

Status: Active » Fixed

There is no need to use "PHP code text format", this is not PHP code just plain simple HTML. Use the Full HTML text format or any other text format you have set up that allow links.

The "PHP code text format" should not normally be active on a production site in my opinion. Also be aware that nodes with the "PHP code text format" is not cached by Drupal, at least that was the case with Drupal 6.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.