We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1511
    • 144 Posts
    Quote from: doze at Feb 21, 2007, 03:43 PM

    It is because the default template already has mootools in it. use &disable_js_libs=`1` in the snippet call to make maxigallery not include the mootools library..
    Well, mainly I’m testing the things in Firefox where it doesn’t work even if I exclude the JavaScript libraries loading. In IE it works fine if the libraries are loaded.
      • 1511
      • 144 Posts
      Bug: you try to load the language file prior of populating $mgconfig settings from parameters.

      Move the lang file loading after setting the $mgconfig array and change $mg->mgconfig[’lang’] to $mgconfig[’lang’].
        • 7923
        • 4,213 Posts
        Hi gcruz and thanks for the reports!

        Unfortunately you cannot use embed types on childgalleries display type, but I’ll add that possibility!

        Can you confirm that is smoothgallery working for you when you use &display=`embedded` in some gallery page?

        EDIT: Oh, and tons of thanks for the Wiki updates!


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 7923
          • 4,213 Posts
          Quote from: andrazk at Feb 22, 2007, 12:27 AM

          Quote from: doze at Feb 21, 2007, 03:43 PM

          It is because the default template already has mootools in it. use &disable_js_libs=`1` in the snippet call to make maxigallery not include the mootools library..
          Well, mainly I’m testing the things in Firefox where it doesn’t work even if I exclude the JavaScript libraries loading. In IE it works fine if the libraries are loaded.
          Hmm, I use Firefox too and it worked fine.. I’ll look at it again today evening when I get off from work.. Are you using the default MODxHost template?

          Quote from: andrazk at Feb 22, 2007, 01:52 AM

          Bug: you try to load the language file prior of populating $mgconfig settings from parameters.

          Move the lang file loading after setting the $mgconfig array and change $mg->mgconfig[’lang’] to $mgconfig[’lang’].
          Good point.. actually I have to load the lang file before the $mgconfig is constructed, because some snippet parameters use defaults from the lang file, but I get this fixed today too. Thanks!


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 1511
            • 144 Posts
            Quote from: doze at Feb 22, 2007, 04:24 AM

            Quote from: andrazk at Feb 22, 2007, 12:27 AM

            Quote from: doze at Feb 21, 2007, 03:43 PM

            It is because the default template already has mootools in it. use &disable_js_libs=`1` in the snippet call to make maxigallery not include the mootools library..
            Well, mainly I’m testing the things in Firefox where it doesn’t work even if I exclude the JavaScript libraries loading. In IE it works fine if the libraries are loaded.
            Hmm, I use Firefox too and it worked fine.. I’ll look at it again today evening when I get off from work.. Are you using the default MODxHost template?

            Quote from: andrazk at Feb 22, 2007, 01:52 AM

            Bug: you try to load the language file prior of populating $mgconfig settings from parameters.

            Move the lang file loading after setting the $mgconfig array and change $mg->mgconfig[’lang’] to $mgconfig[’lang’].
            Good point.. actually I have to load the lang file before the $mgconfig is constructed, because some snippet parameters use defaults from the lang file, but I get this fixed today too. Thanks!

            Of course I’m not using the default template. smiley I’m using my own template with no extra scripts included.

            UPDATE: I’ve upgraded 0.9.5 to 0.9.6. Now I had to remove QuickEdit and reinstall in manually for both MG and QE to work properly!
              • 7923
              • 4,213 Posts
              Quote from: andrazk at Feb 22, 2007, 06:36 AM

              Of course I’m not using the default template. smiley I’m using my own template with no extra scripts included.

              UPDATE: I’ve upgraded 0.9.5 to 0.9.6. Now I had to remove QuickEdit and reinstall in manually for both MG and QE to work properly!
              Hmm.. now I’m confused, before you said that you were using MODx 0.9.6-RC1 and MaxiGallery 0.5-RC1 and now you are upgrading 0.9.5 to 0.9.6.. are these two different environments?

              Anyways, here’s the case: MODx 0.9.6 RC1 and MaxiGallery 0.5 RC1 works together with QuickEdit enabled and MaxiGallery using slimbox display type. The default template in MODx has MooTools 1.0 icluded, MaxiGallery adds one more and QuickEdit adds a third one. But they are all the same libs and both quickedit and maxigallery is working.

              In MODx 0.9.5, QuickEdit and MaxiGallery slimbox wouldn’t work together as 0.9.5 QuickEdit uses prototype/scriptaculous. In 0.9.5 you would have to use lightbox v2 in maxigallery.

              Does this explain anything, or do you still have some issues?


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 33372
                • 1,611 Posts
                Quote from: doze at Feb 22, 2007, 11:15 AM

                ...The default template in MODx has MooTools 1.0 icluded, MaxiGallery adds one more and QuickEdit adds a third one...

                Hey there, doze. This reminds me of another minor feature request that I made a while back (and I don’t think has been implemented). How about adding a parameter like reg_scripts=`false` to completely bypass the MaxiGallery script addition functions? I prefer to add my scripts manually to my template files, and this also makes it easier to use non-standard presentation packages with MaxiGallery. Plus it would keep triple-scripting like this from happening...
                  "Things are not what they appear to be; nor are they otherwise." - Buddha

                  "Well, gee, Buddha - that wasn't very helpful..." - ZAP

                  Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                  • 7923
                  • 4,213 Posts
                  Quote from: ZAP at Feb 22, 2007, 11:39 AM

                  Quote from: doze at Feb 22, 2007, 11:15 AM

                  ...The default template in MODx has MooTools 1.0 icluded, MaxiGallery adds one more and QuickEdit adds a third one...

                  Hey there, doze. This reminds me of another minor feature request that I made a while back (and I don’t think has been implemented). How about adding a parameter like reg_scripts=`false` to completely bypass the MaxiGallery script addition functions? I prefer to add my scripts manually to my template files, and this also makes it easier to use non-standard presentation packages with MaxiGallery. Plus it would keep triple-scripting like this from happening...
                  Yes, I remember you feature request and I did the &disable_js_libs parameter to RC1 to disable the including of MooTools, scriptaculous and prototype. This is to be used when you already have mootools.js for example in your site template.


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 1511
                    • 144 Posts
                    Quote from: doze at Feb 22, 2007, 11:15 AM

                    Quote from: andrazk at Feb 22, 2007, 06:36 AM

                    Of course I’m not using the default template. smiley I’m using my own template with no extra scripts included.

                    UPDATE: I’ve upgraded 0.9.5 to 0.9.6. Now I had to remove QuickEdit and reinstall in manually for both MG and QE to work properly!
                    Hmm.. now I’m confused, before you said that you were using MODx 0.9.6-RC1 and MaxiGallery 0.5-RC1 and now you are upgrading 0.9.5 to 0.9.6.. are these two different environments?

                    Anyways, here’s the case: MODx 0.9.6 RC1 and MaxiGallery 0.5 RC1 works together with QuickEdit enabled and MaxiGallery using slimbox display type. The default template in MODx has MooTools 1.0 icluded, MaxiGallery adds one more and QuickEdit adds a third one. But they are all the same libs and both quickedit and maxigallery is working.

                    In MODx 0.9.5, QuickEdit and MaxiGallery slimbox wouldn’t work together as 0.9.5 QuickEdit uses prototype/scriptaculous. In 0.9.5 you would have to use lightbox v2 in maxigallery.

                    Does this explain anything, or do you still have some issues?

                    Huh, sorry for the confusion.
                    I had MODx 0.9.5 installed, I upgraded it to 0.9.6 RC1, installed MG 0.5 RC1 and things didn’t work neither in IE nor in FF. I’ve spent some time before realizing the cause for bad behavior was QuickEdit, which didn’t work well, so I had to delete it and install it again manually.
                    From that point everything works as it should.

                    Sorry for your time but I had quite a learning experience.
                      • 7923
                      • 4,213 Posts
                      Quote from: andrazk at Feb 22, 2007, 12:17 PM

                      Sorry for your time but I had quite a learning experience.
                      No problems! Glad that it’s working as it should.. please report any problems that you may find.

                      As a side note, the SVN version has the language loading fixed and a new parameter &config to support config files.. I’m going to look at getting TV support to the childgalleryPictureTpl next (oh, and I think I’ll rename that parameter to just childgalleryTpl for the final version).


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."

                      This discussion is closed to further replies. Keep calm and carry on.