Problem with new Vimeo embedding code

Hi Guys,

 

i have come accros vimeo video site. it used to work with Dolphin 7 with the following code:

 

<object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=37062018&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=229ba3&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=37062018&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=229ba3&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><p><a href="http://vimeo.com/37062018">To Do List</a> from <a href="http://vimeo.com/yaniv">Yaniv Fridman</a> on <a href="http://vimeo.com">Vimeo</a>.</p>

Vimeo Changed their embedding code to an Iframe version which is no longer working.

<iframe src="http://player.vimeo.com/video/37062018?title=0&amp;byline=0&amp;portrait=0&amp;color=229ba3" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><p><a href="http://vimeo.com/37062018">To Do List</a> from <a href="http://vimeo.com/yaniv">Yaniv Fridman</a> on <a href="http://vimeo.com">Vimeo</a>.</p>

 

Does any one know how to fix this problem?

Quote · 23 Feb 2012

Why and how are you embedding this code into your Dolphin 7? Is it via a module?

Quote · 23 Feb 2012

no iam using a simple HTML Block then paste the old code into the html source 

thats how the old code works 

Quote · 23 Feb 2012

If you search vimeo here, you'll find some modifications you can make to dolphin to better enable it.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 23 Feb 2012

 

If you search vimeo here, you'll find some modifications you can make to dolphin to better enable it.

 Well hi had a look as far as i saw this is only going to the old code.

 

Which one do you mean exactly?

Quote · 24 Feb 2012

Find the code:

// HTML Purifier plugin
global $oHtmlPurifier;
require_once( BX_DIRECTORY_PATH_PLUGINS . 'htmlpurifier/HTMLPurifier.standalone.php' );
if (!isset($oHtmlPurifier)) {

HTMLPurifier_Bootstrap::registerAutoload();

$oConfig = HTMLPurifier_Config::createDefault();
$oConfig->set('Filter.YouTube', true);
$oConfig->set('HTML.DefinitionID', '1');

$oConfig->set('HTML.SafeObject', 'true');
$oConfig->set('Output.FlashCompat', 'true');

Quote · 24 Feb 2012

For non-admins, you have to do several things to safely allow the new Iframe embed code.  For non admins, TinyMCE will strip out the iframe code.  To allow TinyMCE to pass iframe code, you have to add the following line to each case of Tiny init where you want to allow iframe embed code: (Done in BxBaseConfig.php)

extended_valid_elements: "iframe[class|src|frameborder=0|alt|title|width|height|align|name]"

 

Then you need to create a custom filter for HTMLPurifier with whitelisting, so that iframes can only be used to embed code from only the sites you permit.

Then you need to call the filter in inc/utils.inc.php like this:

 

$oConfig->set('Filter.Custom', array(new HTMLPurifier_Filter_MyIframe()));


I've done all this, and it's working for Youtube and Vimeo.   If anyone still needs this, I'll post detailed instructions.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 2 Jun 2012

See this thread:

 

http://www.boonex.com/forums/topic/How-to-allow-embedding-of-new-Ifame-embed-code-from-Youtube-and-Vimeo.htm

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 2 Jun 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.