We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17717
    • 433 Posts
    Hi all,

    I have just installed a fresh copy of MaxiGallery and there seems to be a path problem somewhere in the code. Basically, when I use the slimbox (not tried with other types of displays), I get broken images, the images point to:

    http://www.myurl.com/galleries/assets/snippets/maxigallery/slimbox/images/loading.gif
    http://www.myurl.com/galleries/assets/snippets/maxigallery/slimbox/images/closelabel.gif

    Is this a bug or is it something I have done, I have the gallery contained within a container if that makes any difference.

    Thanks
      http://www.blend.uk.com | Web Design by Blend
      • 7923
      • 4,213 Posts
      The paths are defined in: assets\snippets\maxigallery\slimbox\js\slimbox_lang_en.js (depending on your language setting ofcourse).

      Could you look into that file and see if it’s ok.. also see that the file is included to the html <head> section by maxigallery.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 17717
        • 433 Posts
        Paths seem to be correct:
        
        //loading image
        var fileLoadingImage = "assets/snippets/maxigallery/slimbox/images/loading.gif";
        //close image
        var fileBottomNavCloseImage = "assets/snippets/maxigallery/slimbox/images/closelabel.gif";
        //next image
        var nextLinkImage = "assets/snippets/maxigallery/slimbox/images/nextlabel.gif";
        //previous image
        var previousLinkImage = "assets/snippets/maxigallery/slimbox/images/prevlabel.gif";
        <br /><br />Plus, the js files seem to be loading fine in the HTML:<br /><br />

        <link rel="stylesheet" href="/titus/assets/snippets/maxigallery/slimbox/css/slimbox.css" type="text/css" media="screen" />
        <script type="text/javascript" src="/titus/assets/snippets/maxigallery/slimbox/js/mootools.js"></script>

        <script type="text/javascript" src="/titus/assets/snippets/maxigallery/slimbox/js/slimbox_lang_en.js"></script>
        <script type="text/javascript" src="/titus/assets/snippets/maxigallery/slimbox/js/slimbox.js"></script>
        <link rel="stylesheet" href="/titus/assets/snippets/maxigallery/css/default.css" type="text/css" media="screen" />
        </head>
        <br /><br />Not sure why it is adding galleries to the url, here is my snippet call (from a container called Galleries):<br /><br />
        [!MaxiGallery? &display=`childgalleries`!] 
          http://www.blend.uk.com | Web Design by Blend
          • 17717
          • 433 Posts
          It must be related to the container some how, I changed the name of the folder to galleries2 and sure enough, the path generated was:

          http://www.myurl.com/galleries2/assets/snippets/maxigallery/slimbox/images/loading.gif

            http://www.blend.uk.com | Web Design by Blend
            • 7923
            • 4,213 Posts
            Quote from: lw-d at Jun 29, 2007, 04:08 AM

            It must be related to the container some how, I changed the name of the folder to galleries2 and sure enough, the path generated was:

            http://www.myurl.com/galleries2/assets/snippets/maxigallery/slimbox/images/loading.gif
            Do you have <base href="[(site_url)"></base> in the <head> section of your template?


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 17717
              • 433 Posts
              Hi Doze,

              I tried it with and without, seems to generate the same url.

              Thanks
              Lee
                http://www.blend.uk.com | Web Design by Blend
                • 7923
                • 4,213 Posts
                Is the site online? Can you give me a link to it...


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