We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4310
    • 2,310 Posts
    I looked more closely and IE7 is reporting an error on line 521 character 4.
    Yet the source code only gets up to line 218.
    I noticed you’re calling two versions of mootools.js in the header, one from the template and one for the gallery.
    Might be worth getting rid of one, don’t think it will help, but it’ll speed up the page load a little.
    The "Places" gallery doesn’t show the error, I’ve checked the two pages in source view and the only differences appear to be in the js at the bottom :
            showArrows: true, 
    	showCarousel: true,
    	showInfopane: true, 

    on the "Places" page whereas the "Singles" page they are set to false, worth swapping to see?

    David
      • 4966
      • 143 Posts
      Quote from: bunk58 at Jul 03, 2008, 05:40 PM

      I looked more closely and IE7 is reporting an error on line 521 character 4.
      Yet the source code only gets up to line 218.
      I noticed you’re calling two versions of mootools.js in the header, one from the template and one for the gallery.
      Might be worth getting rid of one, don’t think it will help, but it’ll speed up the page load a little.
      The "Places" gallery doesn’t show the error, I’ve checked the two pages in source view and the only differences appear to be in the js at the bottom :
              showArrows: true, 
      	showCarousel: true,
      	showInfopane: true, 

      on the "Places" page whereas the "Singles" page they are set to false, worth swapping to see?

      David

      I’ve changed showArrows, showCarousel, and showInfopane to false and I’m still getting the error here. 

        • 4310
        • 2,310 Posts
        Checking with Firebug I see these two warnings :
        Warning: reference to undefined property this.timer
        Source File: http://diademinc-client.com/flashmodx/assets/snippets/maxigallery/smoothgallery/js/mootools.v1.11.js
        Line: 3
        Warning: reference to undefined property this.coord
        Source File: http://diademinc-client.com/flashmodx/assets/snippets/maxigallery/smoothgallery/js/mootools.v1.11.js
        Line: 3
        

        Is it worth trying with an unpacked/other version of mootools ?
          • 4966
          • 143 Posts
          Quote from: bunk58 at Jul 03, 2008, 06:20 PM

          Checking with Firebug I see these two warnings :
          Warning: reference to undefined property this.timer
          Source File: http://diademinc-client.com/flashmodx/assets/snippets/maxigallery/smoothgallery/js/mootools.v1.11.js
          Line: 3
          Warning: reference to undefined property this.coord
          Source File: http://diademinc-client.com/flashmodx/assets/snippets/maxigallery/smoothgallery/js/mootools.v1.11.js
          Line: 3
          

          Is it worth trying with an unpacked/other version of mootools ?

          I just copied mootools v1.2 over to the smoothgallery/js/mootools.v1.11.js and I’m still getting the error?
            • 5091
            • 332 Posts
            Quote from: charlie-imac at Jul 03, 2008, 05:05 PM

            Quote from: bunk58 at Jul 03, 2008, 03:37 PM

            My first observation is that I really don’t want my browser resizing for me !
            If your site is around 1000px wide, why resize my browser to 1920px, and hide all the other stuff I’ve got open ?
            Moan over grin
            I’ve tried it in IE7 on Windows XP and it ran fine.


            I know what you mean about the browser resizing but if a client wants it I’ve stopped trying to tell them otherwise. They see it at other popular website aimed at artist.

            I have long stopped telling clients no they can’t have this and that because it’s bad usability and that it may hurt their sites, but this resize thing, really is evil, so I stand my ground firm.
              • 8522
              • 145 Posts
              Hi

              i’ve installed a fresh MODx (modx-0961p2.zip) with MaxiGallery (trunk-r165.zip). When i call the snippet [!MaxiGallery!] without any parameter in detail view it is missing a </a> tag.

              when i add the following code after <img .... class="imageview" ... /> it seems to work fine. (in maxigallery/tempaltes/picturetpl.html)

              	[+maxigallery.keep_bigimg:is=`0`:then=`
              		</a>
              	`+]
              


              thanks for having a look at it and all the hard work.

              eni
                • 8420
                • 3 Posts
                I am testing out the trunk linked in this thread.

                When I try to upload new images to an existing gallery, I get the following error. I check and the Thumbnail.class.php file is present.


                « MODx Parse Error »
                MODx encountered the following error while attempting to parse the requested resource:
                « PHP Parse Error »
                 
                PHP error debug
                  Error: 	createthumb(/homepages/28/d201941544/htdocs/modx-stage/assets/snippets/maxigallery/watermark/Thumbnail.class.php) [function.createthumb]: failed to open stream: No such file or directory	 
                  Error type/ Nr.: 	Warning - 2	 
                  File: 	/homepages/28/d201941544/htdocs/modx-stage/assets/snippets/maxigallery/maxigallery.class.inc.php	 
                  Line: 	242	 
                  Line 242 source: 	include_once($modx->config['base_path'].MAXIGALLERY_PATH.'watermark/Thumbnail.class.php'); 	 
                 
                Parser timing
                  MySQL: 	0.0153 s	(7 Requests)
                  PHP: 	0.0512 s	 
                  Total: 	0.0665 s
                



                Also, when attempting to use the following call:
                [[MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_showCarousel=`true`  &smoothgallery_useExternalCarousel=`true`   &smoothgallery_CarouselElement=`$("ext-thumbnails")' &max_thumb_size=`200` &max_big_size=`600` &thumb_use_dropshadow=`1` ]]
                
                with the following div placed in my template
                <div id=”ext-thumbnails”></div>
                
                
                


                Smoothgallery loads and hangs with the progress bar showing. If I remove the useExternalCarousel call, it works fine. I tried to modify the call to set the JS parameters in maxigallery.class.inc.php so that the output matched the JS in this example: http://www.rggooglemap.com/dev/rgsmoothgallery/smoothgallery-mit-externen-thumbnails.html

                	
                carouselElement: \''.$this->mgconfig['smoothgallery_carouselElement'].'\',
                
                carouselElement: '.$this->mgconfig['smoothgallery_carouselElement'].',
                
                


                But it still won’t seem to display anything. Tested on Firefox 3 and IE.
                  • 8420
                  • 3 Posts
                  ...I resolved the first problem.

                  cp thumbnail.class.php Thumbnail.class.php


                  Change the lower case ’t’ to upper case, i.e.
                  thumbnail.class.php to
                  Thumbnail.class.php

                  and all is well. The second issue around using external carousel still seems to be close but not quite there yet. Anyone had success with it?
                    • 7923
                    • 4,213 Posts
                    First, you have single quotes in the snippet call ’ not back ticks `, you need to always use back ticks.

                    Second, have you tried to just put the ID of the element where you want the thumbnails? eg. &smoothgallery_CarouselElement=`ext-thumbnails` if your container has a id="ext-thumbnails".


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 8420
                      • 3 Posts
                      Hi Doze - sorry, my mistake. I have fixed the back tick issue, and also realized that I had capitalized the C of Carousel, where that parameter is meant to be with lower case ’c’, although still that did not seem to work.

                      Also, yes I tried to use just straight up &smoothgallery_carouselElement=`ext-thumbnails`, but with the same result.

                      I noticed that in the JS file used on the example site I quoted above, they use the following call:
                              carouselElement = this.options.carouselElement.addClass('jdExtCarousel');
                      vs. in our dist'n, the same call is done as:
                      	carouselElement = $(this.options.carouselElement).addClass('jdExtCarousel');
                      


                      Also, when I use the straight up call to the div ID
                      [[MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_showCarousel=`true` &smoothgallery_useExternalCarousel=`true`   &smoothgallery_carouselElement=`ext-thumbnails`  ]]
                      

                      I notice that the output in their resultant html looks like

                      ......
                      	useExternalCarousel: true,
                      	carouselElement: 'ext-thumbnails',
                      ........
                      
                      

                      VS. the one in the example i put above which outputs the following (notice the difference in carouselElement Option
                      var myGallery243 = new gallery($('myGallery243'), {
                      	timed:false,
                      	showArrows: true,
                      	showCarousel: true,
                      	textShowCarousel: 'Thumbnails',
                      	embedLinks:true,
                      	thumbOpacity: 0.85,
                      	useExternalCarousel:true,
                      	carouselElement:$("ext-thumbnails"),
                      	lightbox:true
                      });
                      
                      
                      



                      That’s what led me to try changing
                      carouselElement: \''.$this->mgconfig['smoothgallery_carouselElement'].'\',
                      to 
                      carouselElement: '.$this->mgconfig['smoothgallery_carouselElement'].',
                      
                      
                      and add the $(...) around the snippet call
                      [[MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_showCarousel=`true` &smoothgallery_useExternalCarousel=`true`   &smoothgallery_carouselElement=`$("ext-thumbnails")`  ]]
                      


                      Still no luck, but I am learning alot! Thanks for your patience.