We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3046
    • 48 Posts
    Here i am ))

    I don’t know how pleasant with post could be for anybody, but for me it was actual, until i found the way myself.

    The problem is ModxGallery embedded views (slimbox, lightboxv2 etc.) sometimes doesn’t work with AjaxSearch call on one page.
    In my situation the problem was these two snippets use .mootools library, but link to different folders for it. And IF there are different versions of mootools in these folders, one of call will not work.

    You can SOLVE the problem putting the same version of mootools to both folders, or change in one of two snippets call the way to mootools. For AjaxS it is &jsMooTools - Location of the mootools javascript library (manager/media/script/mootools/mootools.js by default)

    p.s. IE7 doesn’t notice this problem. It works fine with it.
      • 23299
      • 1,161 Posts
      I had the same problem. Once I added the Ajax Search to a project site the MaxiGallery script stopped functioning: I would get the large images appearing on a blank fresh page.

      After searching for "Ajax Search" in the MaxiGallery folder I found this post.

      I then backed up the mootools.js file in the assets/snippets/maxigallery/slimbox/js/ folder. I then copied the mootools.js file from the manager/media/script/mootools folder and dropped it into the afore mention maxigallery folder. Both Ajax Search and the MaxiGallery script now function on the same page...

      Nice!

        • 3046
        • 48 Posts
        Great, that this post was useful!
          • 23299
          • 1,161 Posts
          No, Thank You Sir!

          That was a great post: informative and well explained.

          I hate threads that raise some issue/problem with ensuing discussion but then the OP concludes with a "never mind, got it working" without presenting a real conclusion for others to follow...
            • 7923
            • 4,213 Posts
            there is also the &disable_js_libs parameter in maxigallery what can be used in such situations.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 23299
              • 1,161 Posts
              Doze, is that the more preferred solution?
                • 7923
                • 4,213 Posts
                Yes, if you look at maxigallery wiki page, &disable_js_libs parameter tells maxigallery that it should not include mootools etc libraries on the page, because they are included by some other snippet already or put manually to the template.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 23299
                  • 1,161 Posts
                  Thanks, I will try that. It means keeping the basic file within the folder structure purer this way...

                  EDIT: OK I put the slimbox mootools.js script back and added the &disbale_js_libs to the call, but its not working now.

                  My basic call:
                  [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`80` &max_pic_size=`0` &thumb_use_dropshadow=`1` &disable_js_libs=`1`!]

                    • 7923
                    • 4,213 Posts
                    Yes.. well, see the HTML source of the rendered page and try to figure out what’s the problem. Hard for me to start guessing with such information.

                    Either there are still more than one mootools included on the page, or the included mootools script is a wrong version or there is some other js library that’s messing with mootools. Or something else.


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 36507
                      • 9 Posts
                      Quote from: Photowebmax at Jan 30, 2010, 08:40 PM

                      I had the same problem. Once I added the Ajax Search to a project site the MaxiGallery script stopped functioning: I would get the large images appearing on a blank fresh page.

                      After searching for "Ajax Search" in the MaxiGallery folder I found this post.

                      I then backed up the mootools.js file in the assets/snippets/maxigallery/slimbox/js/ folder. I then copied the mootools.js file from the manager/media/script/mootools folder and dropped it into the afore mention maxigallery folder. Both Ajax Search and the MaxiGallery script now function on the same page...

                      Nice!



                      I did the above and it worked HOWEVER I couldn’t get it to work until I actually removed &disable_js_libs=`1` from the call. I just personally found that confusing so I wanted to share that with anyone who had the same issue. So yes copying the original manager mootools.js and placing it in the slimbox/js folder to replace the older slimbox mootools worked for me and you don’t need the &disable_js_libs=`1` (or at least it wouldn’t work for me until I removed it). Thanks for sharing this.