We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15197
    • 65 Posts
    Quote from: goldsky at Aug 16, 2010, 11:51 AM

    @k4satin,
    add this to your snippet call
    [!easy2? .......... &ss_js=`assets/modules/easy2/slideshows/galleriffic/js/galleriffic-5_1.js` !]

    Thanks. I’ve already got a custom js file, I just don’t know what to edit within it to stop the loop.
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      @edgeofchaos,
      clean up your HTML, the E2G is wrapped by <h2>...</h2> tag.

      @k4satin:
      from here:
              onSlideChange:             function(prevIndex, nextIndex) {
                  // 'this' refers to the gallery, which is an extension of $('#thumbs')
                  this.find('ul.thumbs').children()
                  .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
                  .eq(nextIndex).fadeTo('fast', 1.0);
      
                  // Update the photo index display
                  this.$captionContainer.find('div.photo-index')
                  .html('Photo '+ (nextIndex+1) +' of '+ this.data.length);
              },
      

      to here:
              onSlideChange:             function(prevIndex, nextIndex) {
                  if (nextIndex<(this.data.length-1)) {
                      // 'this' refers to the gallery, which is an extension of $('#thumbs')
                      this.find('ul.thumbs').children()
                      .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
                      .eq(nextIndex).fadeTo('fast', 1.0);
      
                      // Update the photo index display
                      this.$captionContainer.find('div.photo-index')
                      .html('Photo '+ (nextIndex+1) +' of '+ this.data.length);
                  } else {
                      gallery.pause();
                  }
              },
      
        Rico
        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
        MODx is great, but knowing how to use it well makes it perfect!

        www.virtudraft.com

        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

        Maintainter/contributor of Babel

        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
        • 15197
        • 65 Posts
        Thank you! Gotta wrap things up right now, but will try that tomorrow and let you know.
          • 8463
          • 11 Posts
          Quote from: goldsky at Aug 16, 2010, 09:11 PM

          @edgeofchaos,
          clean up your HTML, the E2G is wrapped by <h2>...</h2> tag.

          Cheers, when I copied over the call, it automatically add the H2 tags into the TinyMCE editor, i got that fixed.

          But the same problem is still occurring on the paginated pages!

          ALL FIXED

          I had a sneaky [i]overflow:hidden;[/i] in my CSS that was messing it up!

          Thanks for help goldsky!
            • 36549
            • 572 Posts
            Hi Thanks for your reply.

            All the files have the correct permissions.
            I can’t actually see the Flash button like i can on my local site...could this be something to do with the server config?
            I can’t see that any files are missing from the server.

            Thanks
              www.9thwave.co.uk
                 WEB | DESIGN | PRINT
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              flash button? what flash button?
              any screenshot would help.
                Rico
                Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                MODx is great, but knowing how to use it well makes it perfect!

                www.virtudraft.com

                Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                Maintainter/contributor of Babel

                Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                • 36549
                • 572 Posts
                sorry...getting confused with EvoGallery???
                I have the gallery working locally so i will remove the files and start over see if that changes anything.
                Cheers
                  www.9thwave.co.uk
                     WEB | DESIGN | PRINT
                  • 15197
                  • 65 Posts
                  Quote from: goldsky at Aug 16, 2010, 09:11 PM

                  @edgeofchaos,
                  clean up your HTML, the E2G is wrapped by <h2>...</h2> tag.

                  @k4satin:
                  from here:
                          onSlideChange:             function(prevIndex, nextIndex) {
                              // 'this' refers to the gallery, which is an extension of $('#thumbs')
                              this.find('ul.thumbs').children()
                              .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
                              .eq(nextIndex).fadeTo('fast', 1.0);
                  
                              // Update the photo index display
                              this.$captionContainer.find('div.photo-index')
                              .html('Photo '+ (nextIndex+1) +' of '+ this.data.length);
                          },
                  

                  to here:
                          onSlideChange:             function(prevIndex, nextIndex) {
                              if (nextIndex<(this.data.length-1)) {
                                  // 'this' refers to the gallery, which is an extension of $('#thumbs')
                                  this.find('ul.thumbs').children()
                                  .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
                                  .eq(nextIndex).fadeTo('fast', 1.0);
                  
                                  // Update the photo index display
                                  this.$captionContainer.find('div.photo-index')
                                  .html('Photo '+ (nextIndex+1) +' of '+ this.data.length);
                              } else {
                                  gallery.pause();
                              }
                          },
                  


                  I tried this, and it does stop the slideshow, but I noticed a slight bug with the photo index numbering. The last image still says 29 of 30, even though it has moved to the last image and stopped there. Any ideas to fix this?
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    OK, use this instead:
                            onSlideChange:             function(prevIndex, nextIndex) {
                                    // 'this' refers to the gallery, which is an extension of $('#thumbs')
                                    this.find('ul.thumbs').children()
                                    .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
                                    .eq(nextIndex).fadeTo('fast', 1.0);
                    
                                    // Update the photo index display
                                    this.$captionContainer.find('div.photo-index')
                                    .html('Photo '+ (nextIndex+1) +' of '+ this.data.length);
                                if (nextIndex==(this.data.length-1)) {
                                    gallery.pause();
                                }
                            },
                    
                      Rico
                      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                      MODx is great, but knowing how to use it well makes it perfect!

                      www.virtudraft.com

                      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                      Maintainter/contributor of Babel

                      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                      • 15197
                      • 65 Posts
                      Much better. Thank you so much!