Fork me on GitHub






Slideshow sous extgallery
Régulier
Inscrit: 24/01/2008 09:20
De Moselle
Messages: 169
J'ai inséré en page d'accueil le bloc slideshow (aléatoire) d'extgallery.
Je réussi à faire fonctionner le slideshow. (oufff).
Seulement la taille du cadre est trop "petite" et coupe mes images.
cf. http://www.xpected.fr
La première est à la bonne taille, la suite par contre est tronquée. Or la taille originale des thumbs me convient très bien dans ma page.
Est ce qu'il faut toucher au template du bloc que voici?

<script type="text/javascript">
    
//<![CDATA[
      
window.addEvent('domready', function(){
     <{
foreachq item=slideshow from=$block.slideshows name=slideShow}>
        var 
data_<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}> = {
     <{
foreachq item=photo from=$slideshow name=slideShowPhotos}>
     <{if 
$block.display_type == 'slideshow'}>
     
'thumb_<{$photo.photo_name}>': { caption'<{$photo.photo_desc|escape:'quotes'}>'href'<{$xoops_url}>/modules/extgallery/public-slideshow.php?id=<{$photo.cat_id}>' }<{if ! $smarty.foreach.slideShowPhotos.last}>,<{/if}>
     <{else}>
     
'thumb_<{$photo.photo_name}>': { caption'<{$photo.photo_desc|escape:'quotes'}>'href'<{$xoops_url}>/modules/extgallery/public-photo.php?photoId=<{$photo.photo_id}>' }<{if ! $smarty.foreach.slideShowPhotos.last}>,<{/if}>
     <{/if}>
     
     <{/foreach}>
        };

     (function () { 
      <{if 
$block.transtype == 'fold'}>
         var 
myShow = new Slideshow.Fold('extgallery-show-<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>'data_<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>, {
      <{elseif 
$block.transtype == 'kenburns'}>
      var 
myShow = new Slideshow.KenBurns('extgallery-show-<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>'data_<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>, {
      <{elseif 
$block.transtype == 'push'}>
      var 
myShow = new Slideshow.Push('extgallery-show-<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>'data_<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>, {
      <{else}>
      var 
myShow = new Slideshow('extgallery-show-<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>'data_<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>, {
      <{/if}>
        
captions: <{$block.desc}>,
        
delay: <{$block.delay}>,
        
duration: <{$block.duration}>,
        
transition'<{$block.effecttype}>:<{$block.effectoption}>',
        
height100,
        
width100,
        
overlapfalse,
        
resizefalse,
        
hu'<{$xoops_url}>/uploads/extgallery/public-photo/thumb/'}
      );
     }).
delay(Math.random() * <{$block.delay}>);
     <{/foreach}>
     });
    
//]]>
</script>

<table style="width:100%;">
<{if $block.direction == 0}>
<tr>
<{foreachq item=slideshow from=$block.slideshows name=slideShow}>
<td style="text-align:center; vertical-align:middle;">
 <div id="extgallery-show-<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>" class="slideshow-block">
  <img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$slideshow[0].photo_name}>" alt="<{$slideshow[0].photo_desc|escape:'html'}>" />
 </div>
</td>
<{/foreach}>
</tr>
<{else}>
<{foreachq item=slideshow from=$block.slideshows name=slideShow}>
<tr>
<td style="text-align:center; vertical-align:middle;">
 <div id="extgallery-show-<{$block.uniqid}>_<{$smarty.foreach.slideShow.index}>" class="slideshow-block">
  <img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$slideshow[0].photo_name}>" alt="<{$slideshow[0].photo_desc|escape:'html'}>" />
 </div>
</td>
</tr>
<{/foreach}>
<{/if}>
</table>

Posté le : 28/04/2010 16:35
Partager Twitter Partagez cette article sur GG+
Re: Slideshow sous extgallery
Régulier
Inscrit: 24/01/2008 09:20
De Moselle
Messages: 169
C'était bien lié au template du bloc. J'avais juste un souci de cache pour voir les modifs.

Posté le : 28/04/2010 16:46
Partager Twitter Partagez cette article sur GG+
Re: Slideshow sous extgallery
Semi pro
Inscrit: 13/04/2006 23:26
De Aix en Provence
Messages: 1751
Bonjour !

J'ai exactement le même problème, qu'as-tu modifié dans le template ??

Où se trouvent les dimensions du slideshow dans ce code ?

OK j'ai trouvé ...

Posté le : 22/05/2010 08:02

signé: LionHell
Partager Twitter Partagez cette article sur GG+
Re: Slideshow sous extgallery
Régulier
Inscrit: 10/10/2007 13:11
De Yaoundé - CAMEROUN
Messages: 261
Bonjour,

Où est le lien du hack ou archive qui permet de paramétrer le lightbox dans ExtGallerty 1.0.8??

Où est le lien vers son readme.txt??

Merci

Posté le : 02/08/2010 06:12

Web site: http://camerounboutique.com
Location de voitures, maisons meublées et hôtels au Cameroun.
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

118 Personne(s) en ligne (110 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 118 | Plus ...