Messages : 131
Sujets : 21
Inscription : Jun 2010
Réputation :
0
08/08/2012, 22:39:59
(Modification du message : 10/08/2012, 00:32:50 par lolo61.)
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: #1.10.3
#~ Url du site :
#~ Hébergeur / Soft :
#~ Informations Système :
#~ Cms Version: 1.11
#~ Installed Modules:
#~ CMSMailer: 5.2.1
#~ CMSPrinting: 1.0.2
#~ FileManager: 1.4.0
#~ MenuManager: 1.8.2
#~ MicroTiny: 1.2.3
#~ ModuleManager: 1.5.5
#~ News: 2.12.7
#~ Search: 1.7.6
#~ ThemeManager: 1.1.7
#~ CGExtensions: 1.30
#~ HostedVideoAlbums: 2.3.1
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~
Bonjour,
Je fais le tour de la version 1.11 et je découvre que le module HostedVideoAlbums semble avoir un problème.
Quand j'insère une video, la page ne fonctionne plus.
J'appelle le lecteur ainsi : {cms_module module="HostedVideoAlbums" what="album1"}
À part ça, bravo aux développeurs qui ont fait un travail de fou !
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
Il y a quelques petits problèmes, effectivement.
Il faut modifier 2 gabarits.
Je vais te les filer dans 1 minute
Messages : 5,034
Sujets : 63
Inscription : Oct 2009
Réputation :
0
ça fait 4 minutes...elles font combien de secondes, les minutes en Belgique? :lol: :p
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
08/08/2012, 23:10:11
(Modification du message : 09/08/2012, 08:07:02 par Jean le Chauve.)
Le 1er gabarit à modifier est dans fancybox, gabarit de galerie, sample :
Attention, j'ai un peu modifié le début et mis en commentaires, il faudra que tu adaptes par rapport au tien
Code : [== Indéfini ==]
{* In fancybox mode, default template used for listing videos of an album *}
{* HostedVideoAlbums action=breadcrumbs *}
<h2>{$leveltitle}{* $parentobj->name *}</h2>
{* <p>{$parentobj->description}</p> *}
{if $itemcount > 0}
<div class="gallery">
{assign var="img" value="<img class='video_thumb' width='$thumbnail_width' height='$thumbnail_height' src="}
{foreach from=$itemlist item="item"}
{if $item->description != ""}
{assign var="title" value="`$item->name`: `$item->description`"}
{else}
{assign var="title" value="`$item->name`"}
{/if}
{assign var="swf" value="class='swf' href="}
<a title="{$title|escape:'html'}"
{if $item->site_namevalue=="youtube"}
{$swf}"http://www.youtube.com/v/{$item->videoid}?fs=1&autoplay=1">
{$img}"http://img.youtube.com/vi/{$item->videoid}/default.jpg">
{elseif $item->site_namevalue=="dailymotion"}
{$swf}"http://www.dailymotion.com/swf/video/{$item->videoid}&autoStart=1">
{$img}"http://www.dailymotion.com/thumbnail/160x120/video/{$item->videoid}">
{elseif $item->site_namevalue=="google videos"}
{$swf}"http://video.google.com/googleplayer.swf?hl={$item->lang}&fs={$item->fullscreen}&docid={$item->videoid}&autoPlay=true">
{$img}{php}
$doc = new DOMDocument();
$item= $this->get_template_vars('item');
$doc->load('http://video.google.com/videofeed?docid='.$item->videoid);
$node = $doc->getElementsByTagName('item')->item(0);
$vid = $node->getElementsByTagNameNS("http://search.yahoo.com/mrss/", 'thumbnail')->item(0);
$url = $vid->attributes->getNamedItem('url')->textContent; echo "'$url'";
{/php}>
{elseif $item->site_namevalue=="vimeo"}
{$swf}"http://vimeo.com/moogaloop.swf?clip_id={$item->videoid}&server=vimeo.com&show_title=true&show_byline=1&color={$item->color1}&fullscreen={$item->fullscreen_int}&autoplay=1">
{$img}{vimeothumb id=$item->videoid}>
{elseif $item->site_namevalue=="yahoo videos"}
{$swf}"http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46&id={$item->videoid|regex_replace:"#[0-9]+/#":""}&lang={$item->lang}&embed=1&autoPlay=1">
{* YAHOO DOES NOT SUPPORT OEMBED ANYMORE
{$img}{php}
$item= $this->get_template_vars('item');
$id=$item->videoid;
$doc = new DOMDocument();
$doc->load("http://video.yahoo.com/services/oembed?url=http://video.yahoo.com/watch/".$id."&format=xml");
$url = $doc->getElementsByTagName('thumbnail_url')->item(0)->textContent;
echo "'$url'";
{/php}> *}
{$img}"{$item->thumbnail}">
{elseif $item->site_namevalue=="veoh"}
{$swf}"http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.4.9.1006&permalinkId={$item->videoid}&hl={$item->lang}&player=videodetailsembedded&videoAutoPlay=1&id=anonymous">
{$img}{php}
$doc = new DOMDocument();
$item= $this->get_template_vars('item');
$doc->load('http://www.veoh.com/rest/video/'.$item->videoid.'/details');
$vid = $doc->getElementsByTagName('video')->item(0);
$url = $vid->attributes->getNamedItem('fullMedResImagePath')->textContent;
echo "'$url'";
{/php}>
{elseif $item->site_namevalue=="msn video"}
{$swf}"http://images.video.msn.com/flash/soapbox1_1.swf?c=v&v={$item->videoid}&ifs={$item->fullscreen}&fr=shared&mkt={$item->lang}&ap=true">
{$img}"{$item->thumbnail}">
{elseif $item->site_namevalue=="metacafe"}
{$swf}"http://www.metacafe.com/fplayer/{$item->videoid}/movie.swf?playerVars=autoPlay=yes">
{$img}"http://www.metacafe.com/thumb/{$item->videoid}.jpg">
{elseif $item->site_namevalue=="myspace"}
{$swf}"http://mediaservices.myspace.com/services/media/embed.aspx/m={$item->videoid},t=1,mt=video,ap=1,searchID=,primarycolor={$item->color1},secondarycolor={$item->color2}">
{$img}{php}
$doc = new DOMDocument();
$item= $this->get_template_vars('item');
$doc->load('http://mediaservices.myspace.com/services/rss.ashx?videoID='.$item->videoid);
$xpath = new DOMXPath($doc);
$xpath->registerNamespace("media", "http://search.yahoo.com/mrss/");
$url= $xpath->query('//media:thumbnail/@url')->item(0)->textContent;
echo "'$url'";
{/php}>
{elseif $item->site_namevalue=="local.flv"}
{$swf}"modules/HostedVideoAlbums/JarisFLVPlayer.swf?source={$item->videoid}&type=video&streamtype=file&autostart=true&brightcolor={$item->color1}&darkcolor={$item->color2}">
{$img}"{$item->thumbnail}">
{else}class="swf" href="{$item->fancyurl}">
{$img}"{$item->thumbnail}">
{/if}
</a>
{/foreach}
</div>
{if $page_pagenumbers}
<div id="pagemenu" style="text-align: center;">
{$page_previous} {$page_showing}/{$page_totalitems} {$page_next}<br/>
{$page_pagenumbers}
</div>
{/if}
{else}
<p>{$error_msg}</p>
{/if}
Il y avait des manque d'apostrophe : value=`$item->... au lieu de value="`$item...
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
Le second est plus complexe, je n'ai modifié que pour viméo.
Gabarit de vidéo -> Gabarit à utiliser pour imbriquer (embed) une video : embed et concerne les thumbnails de viméo.
Code : [== Indéfini ==]
{assign var="width" value=""}
{assign var="swidth" value=""}
{if $item->width!="0"}
{assign var="width" value="width='`$item->width`'"}
{assign var="swidth" value="width:`$item->width`px;"}
{/if}
{assign var="height" value=""}
{assign var="sheight" value=""}
{if $item->height!="0"}
{assign var="height" value="height='`$item->height`'"}
{assign var="sheight" value="height:`$item->height`px;"}
{/if}
<div id="hva_div" style="{$swidth} {$sheight} margin-left:auto; margin-right:auto;">
{if $item->site_namevalue=="local.divx"} {* local divx, avi & mkv videos *}
<object id="{$item->alias}"
classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
{$width} {$height}
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="src" value="{root_url|regex_replace:"%/[^/]+$%":""}{$item->videoid}"/>
<param name="autoPlay" value="{$item->autoplay}">
<embed type="video/divx" src="{root_url|regex_replace:"%/[^/]+$%":""}{$item->videoid}"
{$width} {$height}
pluginspage="http://go.divx.com/plugin/download/"
autoPlay="{$item->autoplay}" name="{$item->alias}" >
</embed>
</object>
{elseif $item->site_namevalue=="local.ogv"} {* local ogv videos are played either with the video tag for browsers supporting html 5 or with the cortado applet*}
{if $item->autoplay=="true"}{assign var="autoplay" value="autoplay"}
{else}{assign var="autoplay" value=""}{/if}
<video src="{$item->videoid}" controls="true" {$autoplay} {$width} {$height}>
<object type="application/x-java-applet"
{$width} {$height}>
<param name="archive" value="./modules/HostedVideoAlbums/cortado.jar">
<param name="code" value="com.fluendo.player.Cortado">
<param name="url" value="{$item->videoid}">
<param name="autoPlay" value="{$item->autoplay}">
<p>You need to install Java to play this file.</p>
</object>
</video>
{elseif $item->site_namevalue=="local.silverlight"} {* silverlight player *}
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
{$width} {$height}>
<param name="source" value="./modules/HostedVideoAlbums/VideoPlayer.xap"/>
<param name="background" value="white" />
<param name="initParams" value="m={root_url|regex_replace:"%/[^/]+$%":""}{$item->videoid},autostart={$item->autoplay}" />
<param name="minruntimeversion" value="2.0.31005.0" />
<a href="http://go.microsoft.com/fwlink/?LinkId=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
</a>
</object>
{elseif $item->site_namevalue=="local.wmv"} {* local windows media videos *}
<object id="{$item->alias}"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
{$width} {$height}
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading..."
type="application/x-oleobject">
<param name="FileName" value="{$item->videoid}">
<param name="AutoStart" value="{$item->autoplay}">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="{$item->videoid}"
name="{$item->alias}" AutoStart="{$item->autoplay}"
{$width} {$height}>
</embed>
</object>
{elseif $item->site_namevalue=="local.mov"} {* local quicktime .mov videos *}
<embed type="video/quicktime" src="{root_url|regex_replace:"%/[^/]+$%":""}{$item->videoid}"
name="{$item->alias}"
{$width} {$height}
pluginspage="http://www.apple.com/quicktime/download/" autoplay="{$item->autoplay}" controller="true">
</embed>
{elseif $item->site_namevalue=="local.rm"} {* local real media videos (not functional ?) *}
<object id="{$item->alias}" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
{$width} {$height}
<param name="console" value="video">
<param name="controls" value="ImageWindow">
<param name="autostart" value="{$item->autoplay}">
<param name="src" value="{$item->videoid}">
<embed type="audio/x-pn-realaudio-plugin" src="{$item->videoid}"
name="{$item->alias}"
{$width} {$height}
controls="ImageWindow" console="video"
autostart="{$item->autoplay}">
</embed>
</object>
{else} {* hosted or local flash videos *}
{if $item->site_namevalue=="youtube"}
{assign var="movie" value="http://www.youtube.com/v/`$item->videoid`&hl=`$item->lang`&fs=`$item->fullscreen_int`&rel=0&color1=`$item->color1`&color2=`$item->color2`&border=1&autoplay=`$item->autoplay`"}
{elseif $item->site_namevalue=="google videos"}
{if $item->autoplay=="true"}{assign var="autoplay" value="&autoPlay=true"}
{else}{assign var="autoplay" value=""}{/if}
{assign var="movie" value="http://video.google.com/googleplayer.swf?hl=`$item->lang`&fs=`$item->fullscreen`&docid=`$item->videoid`$autoplay"}
{elseif $item->site_namevalue=="dailymotion"}
{assign var="movie" value="http://www.dailymotion.com/swf/`$item->videoid`&related=0&hl=`$item->lang`"}
{elseif $item->site_namevalue=="yahoo videos"}
{assign var="id" value="`$item->videoid`"}
{assign var="yvid" value=$id|regex_replace:"#[0-9]+/#":""}
{assign var="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46&id=$yvid&lang=`$item->lang`&embed=1&autoPlay=`$item->autoplay_int`"}
{elseif $item->site_namevalue=="veoh"}
{assign var="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.4.9.1006&permalinkId=`$item->videoid`&hl=`$item->lang`&player=videodetailsembedded&videoAutoPlay=`$item->autoplay_int`&id=anonymous"}
{elseif $item->site_namevalue=="msn video"}
{assign var="movie" value="http://images.video.msn.com/flash/soapbox1_1.swf?c=v&v=`$item->videoid`&ifs=`$item->fullscreen`&fr=shared&mkt=`$item->lang`&ap=`$item->autoplay`"}
{elseif $item->site_namevalue=="metacafe"}
{if $item->autoplay=="true"}{assign var="autoplay" value="playerVars=autoPlay=yes"}
{else}{assign var="autoplay" value=""}{/if}
{assign var="movie" value="http://www.metacafe.com/fplayer/`$item->videoid`/movie.swf$autoplay"}
{elseif $item->site_namevalue=="myspace"}
{assign var="movie" value="http://mediaservices.myspace.com/services/media/embed.aspx/m=`$item->videoid`,t=1,mt=video,ap=`$item->autoplay_int`,searchID=,primarycolor=`$item->color1`,secondarycolor=`$item->color2`"}
{elseif $item->site_namevalue=="vimeo"}
{assign var="movie" value="http://vimeo.com/moogaloop.swf?clip_id=`$item->videoid`&server=vimeo.com&show_title=true&show_byline=1&color=`$item->color1`&fullscreen=`$item->fullscreen_int`&autoplay=`$item->autoplay_int`"}
{elseif $item->site_namevalue=="local.flv"}
{assign var="movie" value="modules/HostedVideoAlbums/JarisFLVPlayer.swf?source=`$item->videoid`&type=video&streamtype=file&autostart=`$item->autoplay`&brightcolor=`$item->color1`&darkcolor=`$item->color2`&poster=`$item->thumbnail`"}
{/if}
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="{$item->alias}"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"
{$width} {$height}>
<param name="allowFullScreen" value="{$item->fullscreen}"></param>
<param name="allowScriptAccess" value="{$item->scriptaccess}"></param>
<param name="movie" value="{$movie}"></param>
<param name="quality" value="high">
<param name="scale" value="autoscale">
<param name="wmode" value="opaque">
<param name="bgcolor" value="{$item->color2}">
<embed name="{$item->alias}" src="{$movie}" type="application/x-shockwave-flash" allowscriptaccess="{$item->scriptaccess}" allowfullscreen="{$item->fullscreen}"{$width} {$height} bgcolor="{$item->color2}" scale="autoscale" wmode="opaque" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</object>
{/if}
</div>
Mais il te faut également une udt : vimeothumb Code : [== Indéfini ==]
$id = $params['id'];
$data = file_get_contents("http://vimeo.com/api/v2/video/$id.json");
$data = json_decode($data);
return $data[0]->thumbnail_small;
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
J'ai inversé les explications, mais ça devrait te convenir
Messages : 131
Sujets : 21
Inscription : Jun 2010
Réputation :
0
08/08/2012, 23:48:03
(Modification du message : 09/08/2012, 00:08:46 par lolo61.)
Je ne sais trop ou mettre l'udt : vimeothumb
Merci !!!!!!!!!!!!!
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
Elle est déjà dans le 1er gabarit
{elseif $item->site_namevalue=="vimeo"}
{$swf}"http://vimeo.com/moogaloop.swf?clip_id={$item->videoid}&server=vimeo.com&show_title=true&show_byline=1&color={$item->color1}&fullscreen={$item->fullscreen_int}&autoplay=1">
{$img}{vimeothumb id=$item->videoid}>
Messages : 131
Sujets : 21
Inscription : Jun 2010
Réputation :
0
Je suis franchement perdu.
Ça marche avec list links, list Videos mais pas avec fancybox ni Awkward Showcase.
J'ai remplacé les gabarit fancybox et gabarit de vidéos embed mais je ne sais pas quoi faire avec l'udt.
Au pire, je vais attendre une mise à jour du module.
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
Quel est le problème avec l'udt ? Le wiki n'est pas là seulement pour faire joli : http://wiki.cmsmadesimple.fr/wiki/Udt_base
Messages : 131
Sujets : 21
Inscription : Jun 2010
Réputation :
0
J'ai créé l'udt (excuse moi, mais j'ai bossé toute la nuit et je ne vois plus rien )
Maintenant ça marche avec Fancybox mais pas avec Awkward Showcase.
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
Je n'utilise pas Awkward Showcase, dépose un bug sur la forge.
Messages : 131
Sujets : 21
Inscription : Jun 2010
Réputation :
0
Oui, je vais faire ça.
Ce module est vraiment génial et je vais attendre un peu avant d'upgrader le site en 1.11.
Merci pour ton aide toujours appréciée.
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
Cherche cette ligne dans le gabarit de galerie sample de Awkward :
Code : [== Indéfini ==]
{elseif $item->site_namevalue=="vimeo"}
{$img}{php}
$item= $this->get_template_vars('item');
$hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/".$item->videoid.".php"));
$url = $hash[0]['thumbnail_small']; echo "'$url'";
{/php}>
Et remplace-le par Code : {elseif $item->site_namevalue=="vimeo"}
{$img}{vimeothumb id=$item->videoid}>
Messages : 131
Sujets : 21
Inscription : Jun 2010
Réputation :
0
Bingo !!! maintenant, il ne me reste plus qu'à disséquer tout ça pour bien comprendre ce que tu a fait.
J'espère que ça va servir à d'autre.
Merci !!!!!!!
|