Changeset 3307


Ignore:
Timestamp:
05/20/09 01:28:58 (10 years ago)
Author:
patdenice
Message:

Thumbnails upload work again with google video and vimeo.
Wideo now work with lightbox plugin.
Create revision 2.0.g.

Location:
extensions/gvideo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/gvideo/admin/add_page.php

    r3296 r3307  
    1717    { 
    1818      @preg_match("#thumbnailUrl\\\\x3d(http://.*/ThumbnailServer.*)\\\\x26#", $source, $thumb_url); 
    19       //$video['thumb_url'] = @str_replace(array('\x3d', '\x26'), array('=', '&'), $thumb_url[1]); 
    2019      $video['thumb_url'] = @urldecode($thumb_url[1]); 
     20      $video['thumb_url'] = @str_replace(array('\x3d', '\x26'), array('=', '&'), $video['thumb_url']); 
    2121    } 
    2222    return $video; 
     
    6363    if ($_POST['thumbnail'] == 'thumb_from_server' and fetchRemote($url, $source)) 
    6464    { 
    65       @preg_match('#link rel="image_src" href="(http://images.vimeo.com/.*?)"#', $source, $matches); 
     65      @preg_match('#link rel="image_src" href="(http://.*?)"#', $source, $matches); 
    6666      $video['thumb_url'] = @str_replace('160.jpg', '200.jpg', $matches[1]); 
    6767    } 
  • extensions/gvideo/main.inc.php

    r3296 r3307  
    22/* 
    33Plugin Name: PY GVideo 
    4 Version: 2.0.f 
     4Version: 2.0.g 
    55Description: Adds some videos from Google Video, Dailymotion, Youtube, Wideo or Vimeo. 
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=136 
  • extensions/gvideo/template/pywaie_wideo.tpl

    r3296 r3307  
    11{* pywaie_wideo.tpl *} 
    22<br /> 
    3 <object type="application/x-shockwave-flash" data="http://www.kewego.com/swf/p3/epix.swf?language_code=fr&amp;playerKey=0df9b773a15b&amp;skinKey=7109c4112f57&amp;sig={$ID_GVIDEO}&amp;autostart={$AUTO_GVIDEO}&amp;advertise=1" width="{$W_GVIDEO}" height="{$H_GVIDEO}"> 
     3<div style="height: {$H_GVIDEO+10}px;"> {* necessary for lightbox plugin *} 
     4<object width="{$W_GVIDEO}" height="{$H_GVIDEO}" type="application/x-shockwave-flash" data="http://www.kewego.com/swf/p3/epix.swf?language_code=fr&amp;playerKey=0df9b773a15b&amp;skinKey=7109c4112f57&amp;sig={$ID_GVIDEO}&amp;autostart={$AUTO_GVIDEO}&amp;advertise=1"> 
    45<param name="movie" value="http://www.kewego.com/swf/p3/epix.swf?language_code=fr&amp;playerKey=0df9b773a15b&amp;skinKey=7109c4112f57&amp;sig={$ID_GVIDEO}&amp;autostart={$AUTO_GVIDEO}&amp;advertise=1" /> 
    56<param name="allowFullScreen" value="true" /> 
    67<param name="quality" value="high" /> 
    78<param name="autostart" value="{$AUTO_GVIDEO}" /> 
    8  
    99<param name="wmode" value="Window" /> 
    1010</object> 
     11</div> 
Note: See TracChangeset for help on using the changeset viewer.