Hi,
I was interested in using your plugin, but I needed the thumbnail of the video.
So I modified your script.
Here is my modification :
<?php if defined'SITE' exit'No direct script access allowed'
/**
* Vimeo
*
* Plugin
*
* @version 1.1
* @author Juan Sierra
* @modified by Maaanu with the help of http://www.soapboxdave.com/2010/04/getting-the-vimeo-thumbnail/
*
*/
function getVimeoInfo ($id) {
if (!function_exists('curl_init')) die('CURL is not installed!');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://vimeo.com/api/v2/video/$id.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$output = unserialize(curl_exec($ch));
$output = $output[0];
curl_close($ch);
return $output;
}
function vimeo ($id) {
$VideoInfo = getVimeoInfo($id);
$thumb = $VideoInfo['thumbnail_medium'];
$tags = $VideoInfo ['tags'];
$longdesc = $VideoInfo ['description'];
$titre = $VideoInfo ['title'];
return "";
}
?>
I'm not a developer, so I think it can be done in a better way, but that fits my needs :)
Thanks.