We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8822
    • 203 Posts
    Hi, I am using nivoslider (as part of slideshow manager 1.1.1 in Revo 2.2.5). The problem is though that i can't seem to change the effect - at the moment it just changes slides, rather than add an effect such as fade etc. i have tried changing the nivo_headTpl chunk but it doesn't make any difference. Oddly, changing the transition speed in the same file does take effect......has anyone else ever come across this problem before, the nivo_headTpl file reads as:

    <script type="text/javascript" src="[[++site_url]]assets/components/slideshowmanager/nivo-slider/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $('#[[+slide_div_id]]').nivoSlider({
            effect: 'slideinright', // Specify sets like: 'random,fold,fade,sliceDown'
            slices: 15, // For slice animations
            boxCols: 8, // For box animations
            boxRows: 4, // For box animations
            animSpeed: 800, // Slide transition speed
            pauseTime: 4000, // How long each slide will show
            startSlide: 0, // Set starting Slide (0 index)
            directionNav: false, // Next and Prev navigation
            directionNavHide: true, // Only show on hover
            controlNav: false, // 1,2,3... navigation
            controlNavThumbs: false, // Use thumbnails for Control Nav
            controlNavThumbsFromRel: false, // Use image rel for thumbs
            controlNavThumbsSearch: '.jpg', // Replace this with...
            controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
            keyboardNav: true, // Use left and right arrows
            pauseOnHover: true, // Stop animation while hovering
            manualAdvance: false, // Force manual transitions
            captionOpacity: 0, // Universal caption opacity
            prevText: 'Prev', // Prev directionNav text
            nextText: 'Next', // Next directionNav text
            beforeChange: function(){}, // Triggers before a slide transition
            afterChange: function(){}, // Triggers after a slide transition
            slideshowEnd: function(){}, // Triggers after all slides have been shown
            lastSlide: function(){}, // Triggers when last slide is shown
            afterLoad: function(){} // Triggers when slider has loaded
       });
    });


    thanks smiley
    • Just use the parameters you need. For example,
      $(window).load(function() {
          $('#slider').nivoSlider({
              effect: 'random',
              pauseOnHover: true
          });
      });


      http://nivo.dev7studios.com/support/jquery-plugin-usage/
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 8822
        • 203 Posts
        Thanks Susan, good point - it doesn't however solve the problem and the slides are still being shown without any effects :-(
        • Any javascript errors in your browser's error console?
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 8822
            • 203 Posts
            No, no errors at all..... Could it have anything to do with the z-index and the next slideshow image appearing behind the current one, thereby not displaying the transition (since it is essentially behind the current image)?
            • Could be. I've used Nivo Slider a few times, and never had this problem. Are you sure you have a compatible version of JQuery? Some plugins appear to have been broken by the latest version.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 36416
                • 589 Posts
                Quote from: Emily at Dec 11, 2012, 12:40 PM
                No, no errors at all..... Could it have anything to do with the z-index and the next slideshow image appearing behind the current one, thereby not displaying the transition (since it is essentially behind the current image)?

                You forgot to specify which browser have this problem...?
                  • 8822
                  • 203 Posts
                  Hi Eoler, all of them - Firefox (16.0.2), IE9, Safari....
                    • 49515
                    • 184 Posts
                    I have the same errors.
                    I'm trying for the slideinright effect, or otherwise a fade effect.
                    I commented out other effects in lines 80-104, but images still slices down?

                    <link rel="stylesheet" href="[[++assets_url]]/components/slideshowmanager/nivo-slider/nivo-slider.css" type="text/css" media="screen" />
                    <style type="text/css">
                    #slider-wrapper {
                        width:[[+file_width]]px;
                        height:[[+file_height:add=`60`]]px;
                    }
                    
                    #slider {
                      position:relative;
                        width:[[+file_width]]px;
                        height:[[+file_height]]px;
                      background:url([[++assets_url]]/components/slideshowmanager/nivo-slider/demo/images/loading.gif) no-repeat 50% 50%;
                    }
                    #slider img {
                      position:absolute;
                      top:0px;
                      left:0px;
                      display:none;
                    }
                    #slider a {
                      border:0;
                      display:block;
                    }
                    .nivo-controlNav {
                      position:absolute;
                      left:20px;
                      bottom:-42px;
                    }
                    .nivo-controlNav a {
                      display:block;
                      width:22px;
                      height:22px;
                      background:url([[++assets_url]]/components/slideshowmanager/nivo-slider/demo/images/bullets.png) no-repeat;
                      text-indent:-9999px;
                      border:0;
                      margin-right:3px;
                      float:left;
                    }
                    .nivo-controlNav a.active {
                      background-position:0 -22px;
                    }
                    
                    .nivo-directionNav a {
                      display:block;
                      width:30px;
                      height:30px;
                      background:url([[++assets_url]]/components/slideshowmanager/nivo-slider/demo/images/arrows.png) no-repeat;
                      text-indent:-9999px;
                      border:0;
                    }
                    a.nivo-nextNav {
                      background-position:-30px 0;
                      right:15px;
                    }
                    a.nivo-prevNav {
                      left:15px;
                    }
                    
                    <!--.nivo-caption {
                        text-shadow:none;
                        font-family: Helvetica, Arial, sans-serif;
                    }-->
                    
                    .nivo-caption {
                        display: none !important;
                    }
                    
                    .nivo-caption a {
                        color:#efe9d1;
                        text-decoration:underline;
                    }
                    </style>
                    <!-- jQuery -->
                    [[+loadJQuery:equals=`true`:then=`<script type="text/javascript" src="[[++assets_url]]/components/slideshowmanager/nivo-slider/demo/scripts/jquery-1.9.0.min.js"></script>`:else=``]]
                    
                    <script type="text/javascript" src="[[++assets_url]]/components/slideshowmanager/nivo-slider/jquery.nivo.slider.pack.js"></script>
                    <script type="text/javascript">
                    $(window).load(function() {
                        $('#[[+slide_div_id]]').nivoSlider({
                            effect: 'slideinright',//'random', // Specify sets like: 'fold,fade,sliceDown'
                            slices: 15, // For slice animations
                            // boxCols: 8, // For box animations
                            // boxRows: 4, // For box animations
                            // animSpeed: 500, // Slide transition speed
                            pauseTime: 3000, // How long each slide will show
                            startSlide: 0, // Set starting Slide (0 index)
                            directionNav: true, // Next & Prev navigation
                            directionNavHide: true, // Only show on hover
                            // controlNav: true, // 1,2,3... navigation
                            // controlNavThumbs: false, // Use thumbnails for Control Nav
                            // controlNavThumbsFromRel: false, // Use image rel for thumbs
                            // controlNavThumbsSearch: '.jpg', // Replace this with...
                            // controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
                            // keyboardNav: true, // Use left & right arrows
                            // pauseOnHover: true, // Stop animation while hovering
                            // manualAdvance: false, // Force manual transitions
                            // captionOpacity: 0.8, // Universal caption opacity
                            // prevText: 'Prev', // Prev directionNav text
                            // nextText: 'Next', // Next directionNav text
                            // beforeChange: function(){}, // Triggers before a slide transition
                            // afterChange: function(){}, // Triggers after a slide transition
                            // slideshowEnd: function(){}, // Triggers after all slides have been shown
                            // lastSlide: function(){}, // Triggers when last slide is shown
                            // afterLoad: function(){} // Triggers when slider has loaded
                       });
                    });
                    </script>
                      • 49515
                      • 184 Posts
                      Ok, I referred to http://docs.dev7studios.com/jquery-plugins/nivo-slider, but whilst slides now slide left, the 1st slide slices down and left and the last slide slices up and left (the same effect as per the original install example of slice down and random).
                      I edited MODX > Dashboard > Elements > Chunks > SlideshowManager > nivo_headTpl > lines 81-104.

                      <link rel="stylesheet" href="[[++assets_url]]/components/slideshowmanager/nivo-slider/nivo-slider.css" type="text/css" media="screen" />
                      <style type="text/css">
                      #slider-wrapper {
                          width:[[+file_width]]px;
                          height:[[+file_height:add=`60`]]px;
                      }
                      
                      #slider {
                        position:relative;
                          width:[[+file_width]]px;
                          height:[[+file_height]]px;
                        background:url([[++assets_url]]/components/slideshowmanager/nivo-slider/demo/images/loading.gif) no-repeat 50% 50%;
                      }
                      #slider img {
                        position:absolute;
                        top:0px;
                        left:0px;
                        display:none;
                      }
                      #slider a {
                        border:0;
                        display:block;
                      }
                      .nivo-controlNav {
                        position:absolute;
                        left:20px;
                        bottom:-42px;
                      }
                      .nivo-controlNav a {
                        display:block;
                        width:22px;
                        height:22px;
                        background:url([[++assets_url]]/components/slideshowmanager/nivo-slider/demo/images/bullets.png) no-repeat;
                        text-indent:-9999px;
                        border:0;
                        margin-right:3px;
                        float:left;
                      }
                      .nivo-controlNav a.active {
                        background-position:0 -22px;
                      }
                      
                      .nivo-directionNav a {
                        display:block;
                        width:30px;
                        height:30px;
                        background:url([[++assets_url]]/components/slideshowmanager/nivo-slider/demo/images/arrows.png) no-repeat;
                        text-indent:-9999px;
                        border:0;
                      }
                      a.nivo-nextNav {
                        background-position:-30px 0;
                        right:15px;
                      }
                      a.nivo-prevNav {
                        left:15px;
                      }
                      
                      <!--.nivo-caption {
                          text-shadow:none;
                          font-family: Helvetica, Arial, sans-serif;
                      }-->
                      
                      .nivo-caption {
                          display: none !important;
                      }
                      
                      .nivo-caption a {
                          color:#efe9d1;
                          text-decoration:underline;
                      }
                      </style>
                      <!-- jQuery -->
                      [[+loadJQuery:equals=`true`:then=`<script type="text/javascript" src="[[++assets_url]]/components/slideshowmanager/nivo-slider/demo/scripts/jquery-1.9.0.min.js"></script>`:else=``]]
                      
                      <script type="text/javascript" src="[[++assets_url]]/components/slideshowmanager/nivo-slider/jquery.nivo.slider.pack.js"></script>
                      <script type="text/javascript">
                      $(window).load(function() {
                          $('#[[+slide_div_id]]').nivoSlider({
                              effect: 'slideInLeft',//'random', // Specify sets like: 'fold,fade,sliceDown'
                              //slices: 15, // For slice animations
                              // boxCols: 8, // For box animations
                              // boxRows: 4, // For box animations
                              // animSpeed: 500, // Slide transition speed
                              // pauseTime: 3000, // How long each slide will show
                              // startSlide: 0, // Set starting Slide (0 index)
                              // directionNav: true, // Next & Prev navigation
                              // directionNavHide: true, // Only show on hover
                              // controlNav: true, // 1,2,3... navigation
                              // controlNavThumbs: false, // Use thumbnails for Control Nav
                              // controlNavThumbsFromRel: false, // Use image rel for thumbs
                              // controlNavThumbsSearch: '.jpg', // Replace this with...
                              // controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
                              // keyboardNav: true, // Use left & right arrows
                              // pauseOnHover: true, // Stop animation while hovering
                              // manualAdvance: false, // Force manual transitions
                              // captionOpacity: 0.8, // Universal caption opacity
                              // prevText: 'Prev', // Prev directionNav text
                              // nextText: 'Next', // Next directionNav text
                              // beforeChange: function(){}, // Triggers before a slide transition
                              // afterChange: function(){}, // Triggers after a slide transition
                              // slideshowEnd: function(){}, // Triggers after all slides have been shown
                              // lastSlide: function(){}, // Triggers when last slide is shown
                              // afterLoad: function(){} // Triggers when slider has loaded
                         });
                      });
                      </script>
                      [ed. note: eiger3970 last edited this post 8 years, 8 months ago.]