We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    I have just installed the Gallery snippet to the following page:

    http://revolution.pawsforwildlife.co.uk//spectacled-bear.html

    I really like the snippet, but the 'large image' show area leaves alot of blank space around the large gallery picture. I was hoping to decrease the showing area in height, but I don't want to fix it as some images will vary in height (all will have the same width!)

    Maybe something more like this:


    I have read some documentation but it is a little over my head at the moment so any help would be appreciated
    Regards,
    DS [ed. note: distant_smile last edited this post 12 years, 5 months ago.]
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 7527
      • 437 Posts
      Ok I can see how to ammend CSS thanks to another thread, but I am the moderator of my site and yet all the Galleriffic files have padlocks next to them so I cannot edit them. How do I get around this?
        www.PawsForWildlife.co.uk
        www.Borntobrick.co.uk
        • 7527
        • 437 Posts
        Has anyone had this issue? I don't understand why the package management installs the gallery if I cannot amend any of it?
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 7527
          • 437 Posts
          I have been playing with this snippet all day and have achieved the following result:

          http://revolution.pawsforwildlife.co.uk/spectacled-bear.html

          What I would like to now do is have the thumbnails appear to the left of the main image as the picture above shows. I can move the main image to the right no problems, but I can't seem to set the thumbnails along side it. My css is:

          div.galleriffic div.gal_main {
              /* The display of content is enabled using jQuery so that the slideshow content won't display unless javascript is enabled. */
              display: none;
              float: right;
              width: 750px; 
          }
          div.galleriffic div.gal_main a, div.galleriffic div.navigation a {
              text-decoration: none;
              color: #777;
          }
          div.galleriffic div.gal_main a:focus, div.galleriffic div.gal_main a:hover, div.galleriffic div.gal_main a:active {
              text-decoration: underline;
          }
          div.galleriffic div.controls {
              margin-top: 5px;
              height: 23px;
          }
          div.galleriffic div.controls a {
              padding: 5px;
          }
          div.galleriffic div.ss-controls {
              float: left;
          }
          div.galleriffic div.nav-controls {
              float: left;
          }
          div.galleriffic div.slideshow-container {
              position: relative;
              clear: both;
              width:550px;
              border:1px solid #000;
              height: 450px; /* This should be set to be at least the height of the largest image in the slideshow */
          }
          div.galleriffic div.loader {
              position: absolute;
              top: 0;
              left: 0;
              background-image: url('loader.gif');
              background-repeat: no-repeat;
              background-position: center;
              width: 502px;
              height: 550px; /* This should be set to be at least the height of the largest image in the slideshow */
          }
          div.galleriffic div.slideshow {
          
          }
          div.galleriffic div.slideshow span.image-wrapper {
              display: block;
              position: absolute;
              top: 0;
              left: 0;
          }
          div.galleriffic div.slideshow a.advance-link {
              display: block;
              width: 550px;
              height: 502px; /* This should be set to be at least the height of the largest image in the slideshow */
              line-height: 502px; /* This should be set to be at least the height of the largest image in the slideshow */
              text-align: center;
          }
          div.galleriffic div.slideshow a.advance-link:hover, div.galleriffic div.slideshow a.advance-link:active, div.galleriffic div.slideshow a.advance-link:visited {
              text-decoration: none;
          }
          div.galleriffic div.slideshow img {
              vertical-align: middle;
              border: 1px solid #ccc;
          }
          div.galleriffic div.download {
              float: right;
          }
          div.galleriffic div.caption-container {
              position: relative;
              clear: left;
              height: 75px;
          }
          div.galleriffic span.image-caption {
              display: block;
              position: absolute;
              width: 750px;
              top: 0;
              left: 0;
          }
          div.galleriffic div.caption {
              padding: 12px;
          }
          div.galleriffic div.image-title {
              font-weight: bold;
              font-size: 1.4em;
          }
          div.galleriffic div.image-desc {
              line-height: 1.3em;
              padding-top: 12px;
          }
          div.galleriffic div.navigation {
              /* The navigation style is set using jQuery so that the javascript specific styles won't be applied unless javascript is enabled. */
          }
          div.galleriffic ul.thumbs {
              clear: both;
              margin: 0;
              padding: 0;
          }
          div.galleriffic ul.thumbs li {
              float: left;
              padding: 0;
              margin: 5px 10px 5px 0;
              list-style: none;
          }
          div.galleriffic a.thumb {
              padding: 2px;
              display: block;
              border: 1px solid #ccc;
          }
          div.galleriffic ul.thumbs li.selected a.thumb {
              background: #000;
          }
          div.galleriffic a.thumb:focus {
              outline: none;
          }
          ul.thumbs img {
              border: none;
              display: block;
          }
          div.galleriffic div.pagination {
              clear: both;
          }
          div.galleriffic div.navigation div.top {
              margin-bottom: 12px;
              height: 11px;
          }
          div.navigation div.bottom {
              margin-top: 12px;
          }
          div.galleriffic div.pagination a, div.galleriffic div.pagination span.current, div.galleriffic div.pagination span.ellipsis {
              display: block;
              float: left;
              margin-right: 2px;
              padding: 4px 7px 2px 7px;
              border: 1px solid #ccc;
          }
          div.galleriffic div.pagination a:hover {
              background-color: #eee;
              text-decoration: none;
          }
          div.galleriffic div.pagination span.current {
              font-weight: bold;
              background-color: #000;
              border-color: #000;
              color: #fff;
          }
          div.galleriffic div.pagination span.ellipsis {
              border: none;
              padding: 5px 0 3px 2px;
          }


          and the template I am using is:

          			<div class="galleriffic"> 
          <div id="gal-gaff-gallery" class="gal_main">
              <div id="gal-gaff-controls" class="controls"></div>
              <div class="slideshow-container">
                  <div id="gal-gaff-loading" class="loader"></div>
                  <div id="gal-gaff-slideshow" class="slideshow"></div>
              </div>
          <div id="gal-gaff-thumbs" class="navigation">
              <ul class="thumbs noscript">
                  [[+thumbnails]]
              </ul>
          </div>
              <div id="gal-gaff-caption" class="caption-container"></div>
          </div>
          
          <div style="clear: both;"></div>
          </div>


          I hope someone can help me correct this last little bit as I cannot see how to do it.
          Regards,
          DS
            www.PawsForWildlife.co.uk
            www.Borntobrick.co.uk
            • 7527
            • 437 Posts
            Thanks to Bruno17 I used the following:

            [[Gallery?
               &toPlaceholder=`gallery`
               &album=`Album2`<-------empty album-------->
               &plugin=`galleriffic`
               &numThumbs=`10`
            ]]
            
            [[getImageList? 
              &tvname=`services_item` 
              &tpl=`gallerifficTpl`
              &toPlaceholder=`thumbnails`
            ]]
            
            [[[[+thumbnails:notempty=`$galleriffic`]]]]


            then I had a template created a chunk named 'galleriffic':

            <div class="galleriffic"> 
            <div id="gal-gaff-gallery" class="gal_main">
                <div id="gal-gaff-controls" class="controls"></div>
                <div class="slideshow-container">
                    <div id="gal-gaff-loading" class="loader"></div>
                    <div id="gal-gaff-slideshow" class="slideshow"></div>
                </div>
                <div id="gal-gaff-caption" class="caption-container"></div>
            </div>
            <div id="gal-gaff-thumbs" class="navigation">
                <ul class="thumbs noscript">
                    [[+thumbnails]]
                </ul>
            </div>
            <div style="clear: both;"></div>
            </div>
            


            and another chunk named 'gallerifficTpl':

            <li>
                <a class="thumb" name="[[+title]]"
             href="[[+image]]" title="[[+title]]">
                    <img src="[[+image:phpthumbof=`w=150`]]"
             alt="[[+title]]" />
                </a>
                <div class="caption">
                    <div class="download">
                        <a
             href="[[+image]]">[[%gallery.download_original? &namespace=`gallery`
             &topic=`galleriffic`]]</a>
                    </div>
                    <div
             class="image-title">[[+title]]</div>
                    <div class="image-desc">
                        [[+description]]
                        [[+tags:notempty=`<br
             /><em>[[%gallery.tags]]:</em> [[+tags]]`]]
                    </div>
                </div>
            </li>



            Then I just had to play around with the html to get it working. Huge thank you to Bruno 17 though as otherwise I would not have been able to do it. It uses Bruno's MIGX gallery package
            Regards,

            DS
              www.PawsForWildlife.co.uk
              www.Borntobrick.co.uk