Les avertissements suivants se sont produits :
Warning [2] Undefined array key 0 - Line: 1640 - File: showthread.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1640 errorHandler->error_callback
/showthread.php 915 buildtree




Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
[Résolu]Problème HostedVideoAlbums avec 1.11
#4
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&amp;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}&amp;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}&amp;fs={$item->fullscreen}&amp;docid={$item->videoid}&amp;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}&amp;server=vimeo.com&amp;show_title=true&amp;show_byline=1&amp;color={$item->color1}&amp;fullscreen={$item->fullscreen_int}&amp;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&amp;id={$item->videoid|regex_replace:"#[0-9]+/#":""}&amp;lang={$item->lang}&amp;embed=1&amp;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."&amp;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&amp;permalinkId={$item->videoid}&amp;hl={$item->lang}&amp;player=videodetailsembedded&amp;videoAutoPlay=1&amp;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&amp;v={$item->videoid}&amp;ifs={$item->fullscreen}&amp;fr=shared&amp;mkt={$item->lang}&amp;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}&amp;type=video&amp;streamtype=file&amp;autostart=true&amp;brightcolor={$item->color1}&amp;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}&nbsp; {$page_showing}/{$page_totalitems} &nbsp;{$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 dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)