We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 654 Posts
    @goldsky : Thanks for the fix. That works. FWIW, I changed the "zoom" block to add in the sliding transition, rather than try to get things to work the other way around. So my (working) block of code looks like :
    if ($ssParams['ss_config'] == 'zoom') {
        $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/mootools-1.2.1-core-yc.js');
        $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/mootools-1.2-more.js');
        $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/ReMooz.js');
        $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/jd.gallery.js');
        $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/jd.gallery.transitions.js');	
        $modx->regClientStartupHTMLBlock('
            <script type="text/javascript">
    			function startGallery() {
    				var myGallery = new gallery($(\'myGallery\'), {
    					timed: false,
    					useReMooz: true,
    					defaultTransition: "fadeslideleft",
    					embedLinks: false
    				});
    			}
    			window.addEvent(\'domready\',startGallery);
            </script>
            ');
    }
    


    It looks like something in the way the smoothgallery javascript is written prevents any of the the lightboxes (e.g. colorbox, highslide, etc.) from working, at least as far as I can tell. And though there have been plenty of requests on the smoothgallery site asking for advice on getting something like lightbox to work, no working solution seems to have been posted. I’ll take a look at the code and if I find a way of getting the integration to work, I’ll post about it. (I’m noting this here so that if anyone else decides to go down this road they won’t spend as much time on it as I have smiley )

    Thanks again for your help. What I’ve got working now will do for the time being.
    Matt
      • 25058
      • 11 Posts
      Quote from: goldsky at Mar 03, 2011, 07:21 PM

      Quote from: rider76 at Mar 02, 2011, 12:23 PM

      Quote from: goldsky at Mar 01, 2011, 06:32 PM

      @rider76,
      what’s your snippet call?

      Thanks for the quick response! Call the snippet in a chank now looks like this:
      [! easy2? &gid = `2,3,4,5` &slideshow = `smoothgallery` &ss_config = `timedgallery` &ss_allowedratio = `all`!]

      The page displays the code:
      <script type="text/javascript"> jQuery.noConflict ();</ script>
      <script type="text/javascript" src="/assets/libs/slideshows/smoothgallery/scripts/mootools.v1.11.js"> </ script>
      <script type="text/javascript" src="/assets/libs/slideshows/smoothgallery/scripts/jd.gallery.v2.js"> </ script>
      <script type="text/javascript" src="/assets/libs/slideshows/smoothgallery/scripts/jd.gallery.set.js"> </ script>
      <script type="text/javascript" src="/assets/libs/slideshows/smoothgallery/scripts/jd.gallery.transitions.js"> </ script>

      In general, I’ve tried various slideshow, but the result is always the same.
      Prior to the substitution of the parameter & ss_allowedratio = `all` worked only slideshow simple
      Sorry if I’m expressing myself clear, I write through the translator google
      Try delete this lines:
      <?php // highlighting
      
      $modx->regClientStartupHTMLBlock('
              <script type="text/javascript">jQuery.noConflict();</script>');
      
      

      It was needed when jQuery and mooTools exist on the same page.
      Hello,
      Sorry, but in what file to remove this line? here smoothgallery.php?
        • 18913
        • 654 Posts
        @ryder76 : Yes, that line is towards the top of smoothgallery.php. You can just comment it out by putting double-slashes in front of it.
        I.e. turn it into
        //$modx->regClientStartupHTMLBlock('
        //        <script type="text/javascript">jQuery.noConflict();</script>');
        
        Matt
          • 25058
          • 11 Posts
          Quote from: mconsidine at Mar 04, 2011, 04:16 PM

          @ryder76 : Yes, that line is towards the top of smoothgallery.php. You can just comment it out by putting double-slashes in front of it.
          I.e. turn it into
          //$modx->regClientStartupHTMLBlock('
          //        <script type="text/javascript">jQuery.noConflict();</script>');
          
          Matt

          Thank you so much, the problem disappeared, you are a good specialist. In all browsers display without errors, but IE8 now there is a new error:
          Message: Type mismatch.

          Line: 520
          Symbol: 4
          Code: 0
          URI-code: ........../assets/libs/slideshows/smoothgallery/scripts/jd.gallery.v2.js

          Though I can see that this gallery is running
            • 18913
            • 654 Posts
            @rider76 : The solution posted here
            http://smoothgallery.jondesign.net/forums/viewtopic.php?id=1599
            seems to work, though I haven’t tested it extensively.
            MattC
              • 25058
              • 11 Posts
              Quote from: mconsidine at Mar 06, 2011, 09:43 AM

              @rider76 : The solution posted here
              http://smoothgallery.jondesign.net/forums/viewtopic.php?id=1599
              seems to work, though I haven’t tested it extensively.
              MattC

              Many thanks for the advice, now everything works. There is described a solution:
              in the file \ assets \ libs \ slideshows \ smoothgallery \ script \ jd.gallery.v2.js on line 520 this.carouselWrapper.elementScroller.scrollTo(scrollPos,0); need to put the sign "=" and the line should look like this: this.carouselWrapper.elementScroller.scrollTo=(scrollPos,0);

                • 25058
                • 11 Posts
                Help fix another error.
                When you turn on debugging in the module configuration error:
                Error 8: Undefined variable: php_errormsg
                File: ............ \ manager \ processors \ execute_module.processor.php Line: 117
                I would be very grateful for the advice
                  • 18913
                  • 654 Posts
                  @rider76 : it seems to me from this
                  http://php.net/manual/en/reserved.variables.phperrormsg.php
                  that "track_errors" might not be enabled in your php.ini file. Not sure as I haven’t used debug mode. (How were you enabling that?). In any case, it looks like a MODx Evo install assumes that PHP variable is available and apparently is possible for it not to be.

                  Maybe a bug?

                  Dunno. Above is just my SWAG. You probably ought to bring it up to one of the MODx dieties...
                  MattC
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    I would suggest you to ignore that error.
                    Post that as the evo’s bug to http://bugs.modx.com .
                      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.
                      • 16945
                      • 12 Posts
                      Can someone help me with this problem?

                      Url: http://www.double-h.nl/gallery.html

                      « MODx Parse Error »
                      MODx encountered the following error while attempting to parse the requested resource:
                      « PHP Parse Error »

                      PHP error debug
                      Error: include() [function.include]: Failed opening ’’ for inclusion (include_path=’.:/usr/local/lib/php’)
                      Error type/ Nr.: Warning - 2
                      File: /home/double/domains/double-h.nl/public_html/assets/modules/easy2/snippet.easy2gallery.php
                      Line: 56
                      Line 56 source: include $e2g[’jsdisabled_tpl’];

                      Parser timing
                      MySQL: 0.0040 s (11 Requests)
                      PHP: 0.0392 s
                      Total: 0.0432 s