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

    I have a problem with maxigallery when using together with JS menu. The maxigallery call is as follows:
    [!MaxiGallery? &display=`embedded` &embedtype=`lightboxv2` &order_by=`pos` &limit=`1` &galleryPictureTpl=`mgGalPicTpl`&max_pic_size=`0` &max_thumb_size=`0` &max_big_size=`0` !]
    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &order_by=`pos` &limit=`99999` &galleryPictureTpl=`mgGalPicTplHidden`!]


    Yeah, you see it right, this is 2 mg call on one site to jump to the next pic without displaying it on the page, so only one pic is visible at any time.
    The problem is, if I have the call on a page, the js menu I use on every page is not working .

    Another problem is that I can not resize the pic, although I have the resizing parameters set to 0 to keep the original size (I also tried the &keep_bigimg without any result).
    So how can I resize the pic, and how can I get the js menu working? Please help me people... sad((
    Thx in advance!
      • 7923
      • 4,213 Posts
      Quote from: habanaman at Sep 03, 2007, 01:49 PM

      Hi Folks!

      I have a problem with maxigallery when using together with JS menu. The maxigallery call is as follows:
      [!MaxiGallery? &display=`embedded` &embedtype=`lightboxv2` &order_by=`pos` &limit=`1` &galleryPictureTpl=`mgGalPicTpl`&max_pic_size=`0` &max_thumb_size=`0` &max_big_size=`0` !]
      [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &order_by=`pos` &limit=`99999` &galleryPictureTpl=`mgGalPicTplHidden`!]


      Yeah, you see it right, this is 2 mg call on one site to jump to the next pic without displaying it on the page, so only one pic is visible at any time.
      The problem is, if I have the call on a page, the js menu I use on every page is not working .
      In the first call, you use lightboxv2, in the second call, you use slimbox. These javascripts both use different JS libraries (scriptaculous+prototype vs mootools), so use only either of those and select the one that suits together with your JS menu.

      Quote from: habanaman at Sep 03, 2007, 01:49 PM

      Another problem is that I can not resize the pic, although I have the resizing parameters set to 0 to keep the original size (I also tried the &keep_bigimg without any result).
      So how can I resize the pic, and how can I get the js menu working? Please help me people... sad((
      Thx in advance!
      The &max_pic_size parameter resizes the picture that you see in lightboxv2/slimbox. So use that. If you set it to 0, it won’t resize the picture at all. See MaxiGallery wiki article in MODx wiki for more information about the parameters and their usage.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 11614
        • 27 Posts
        Thx for the reply...
        Nope, it doesn’t seem to work. I have set the &max_pic_size, but it just didn’t make anything. I thought that maybe if I’d "bother" the javascript in the chunk it will work. That class=’thumbnail’ is pretty suspicios for me. Do you have any idea, what to write instead of it? I didn’t find any related in the wiki about this issue.
          • 11614
          • 27 Posts
          Ah yes, and another thing: I don’t want any thumbnails, I just want the original picture on the page.
            • 7923
            • 4,213 Posts
            Quote from: habanaman at Sep 04, 2007, 04:08 PM

            Thx for the reply...
            Nope, it doesn’t seem to work. I have set the &max_pic_size, but it just didn’t make anything. I thought that maybe if I’d "bother" the javascript in the chunk it will work. That class=’thumbnail’ is pretty suspicios for me. Do you have any idea, what to write instead of it? I didn’t find any related in the wiki about this issue.
            The pictures are resized on upload, so you have to reupload the images after you change the picture settings.

            Quote from: habanaman at Sep 04, 2007, 04:19 PM

            Ah yes, and another thing: I don’t want any thumbnails, I just want the original picture on the page.
            In the mgGalPicTpl chunk, remove "tn_" from this:
            <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]"...
            

            Then it shows the normal size picture.


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