Results 1 to 4 of 4

Thread: vertical thumbnails in slideshow2

  1. #1
    New user
    Join Date
    07-24-11.
    Posts
    2

    Default vertical thumbnails in slideshow2

    hi everybody

    I installed the extension slideshow2 on my website: www.drinkinggames.de/test/. directly on the home-site is the slideshow2. now i want to format it with css so it look like this:

    http://www.electricprism.com/aeron/slid ... mple5.html

    but i don't know how to do it. the only thing i know is, that i have to make a copy of the template slideshow2_css_standard.tpl right? i've done it but there is more than pure css:

    Code:
    <style type="text/css" media="screen">
    <![CDATA[/*><!--*/
    
    #show_<?php echo $this->id; ?> 
    {
    	width:<?php echo $this->arrSlideshow2Size[0]; ?>px;	
    	height:<?php echo $this->arrSlideshow2Size[1] + $this->arrSlideshow2ThumbSize[1] + $this->arrSlideshow2ThumbPaddingHeight; ?>px;
    }
    
    #show_<?php echo $this->id; ?> .slideshow-images 
    {
    	width:<?php echo $this->arrSlideshow2Size[0]; ?>px;
    	height:<?php echo $this->arrSlideshow2Size[1]; ?>px;
    }
    
    <?php if($this->captions == true): ?>
    /* Captions - Untertitel */
    #show_<?php echo $this->id; ?> .slideshow-captions 
    {
    	bottom:<?php echo $this->arrSlideshow2ThumbSize[1] + $this->arrSlideshow2ThumbPaddingHeight; ?>px;
    }
    #show_<?php echo $this->id; ?> .slideshow-captions-visible 
    {
    	height:30px;
    	opacity: .7;
    }
    <?php endif; ?>
    
    <?php if($this->thumbnails == true): ?>
    /* Thumbnails */
    #show_<?php echo $this->id; ?> .slideshow-thumbnails 
    {
    	height:<?php echo $this->arrSlideshow2ThumbSize[1] + 15 ; ?>px;
    }
    <?php endif; ?>
    
    /*]]>*/-->
    </style>
    what and where can i work with css to make my slideshow look like in the expamle? It would be great if you can help me

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: vertical thumbnails in slideshow2

    Parts like <?php echo $this->arrSlideshow2Size[0]; ?> will translate into a number. Either leave them in or change the into any integer value that you need. The part <?php echo $this->id; ?> is an id you can also see in the html. In the page you showed it is 1. So you can change this as usual CSS, but keeping in mind some values are inside <?php and ?> code.

    The code below should get you started...
    Code:
        <style type="text/css" media="screen">
        <![CDATA[/*><!--*/
    
        #show_<?php echo $this->id; ?>
        {
           width:<?php echo $this->arrSlideshow2Size[0]; ?>px;   
           height:<?php echo $this->arrSlideshow2Size[1] + $this->arrSlideshow2ThumbPaddingHeight; ?>px;
        }
    
        #show_<?php echo $this->id; ?> .slideshow-images
        {
           width:<?php echo $this->arrSlideshow2Size[0]; ?>px;
           height:<?php echo $this->arrSlideshow2Size[1]; ?>px;
        }
    
        <?php if($this->captions == true): ?>
        /* Captions - Untertitel */
        #show_<?php echo $this->id; ?> .slideshow-captions
        {
           bottom:<?php echo $this->arrSlideshow2ThumbSize[1] + $this->arrSlideshow2ThumbPaddingHeight; ?>px;
        }
        #show_<?php echo $this->id; ?> .slideshow-captions-visible
        {
           height:30px;
           opacity: .7;
        }
        <?php endif; ?>
    
        <?php if($this->thumbnails == true): ?>
        /* Thumbnails */
        #show_<?php echo $this->id; ?> .slideshow-thumbnails
        {
           height:<?php echo $this->arrSlideshow2ThumbSize[1] + 15 ; ?>px;
        }
    #show_<?php echo $this->id; ?> .slideshow-thumbnails 
    {
    left: <?php echo $this->arrSlideshow2Size[0]; ?>px;
    height: <?php echo $this->arrSlideshow2Size[1] + $this->arrSlideshow2ThumbPaddingHeight; ?>px;
    width: <?php echo $this->arrSlideshow2ThumbSize[1] + 15 ; ?>px;
    }
    
    #show_<?php echo $this->id; ?> .slideshow-thumbnails li {
    	float: none;
    }
    
        <?php endif; ?>
    
        /*]]>*/-->
        </style>
    I needed to cancel out some of the styles from plugins/slideshow2/css/slideshow.css do get it done...

  3. #3
    New user
    Join Date
    07-24-11.
    Posts
    2

    Default Re: vertical thumbnails in slideshow2

    hey,

    thank you very much for your help. I didn't understand what you've done, but it works. the only problem is, that only one thumbnail is shown on the right side but there should be two of them because i have two pictures in the slideshow at the moment:

    www.drinkinggames.de/test/

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default Re: vertical thumbnails in slideshow2

    Its a bug http://code.google.com/p/slideshow/issues/detail?id=234

    You find a solution and patch there.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •