We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    A new version has been released with following changes:

    • Fixed: Slimbox and Lightbox v2 language files, image paths were wrong in few
    • Added: Swedish language files
    • Fixed: Running script multiple times on a document (pclzip callback function was not checked)
    • Changed: Slimbox updated to v1.31
    • Fixed: Zip uploading checks for max_pic_number setting (discards images that exceed the limit)
    • Added: Italian, Slovenian, Danish, Spanish, European Portuguese and Dutch language packs
    • Changed: Filename database fieldtype to tinytext to support longer filenames
    • Fixed: Possible template loading bug in certain environments
    • Added: upload_field_count parameter (to set the amount of upload fields in picture management)
    • Changed: ZIP archive extracting now uses PclZip library, so it doesn’t require anything special from server environment to work
    • Fixed: Picture view display mode when no pictures are yet in the gallery
    • Added: Default templates now add the ’manage pictures’ button to the page if display=pictureview
    • Added: maxigallery.config.snippetparameter placeholders to pictureTpl
    • Fixed: Default css was not included in childgalleries display mode

    Get it here.

    Change log is also attached to this post. Many things are fixed and I suggest to update to this version.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 31113
      • 45 Posts
      I use slimbox.
      $mg->regScriptsAndCSS() - runing twice in MaxiGallery.php

      => duplicate css & js in html
        • 7923
        • 4,213 Posts
        Hmm.. what is the snippet call when it’s called twice? although it shouldn’t matter if it’s run twice, the regScriptsAndCSS() function uses $modx->regXXX... functions to register the stuff and those functions should already check that same scripts are not registered twice..


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 17883
          • 1,039 Posts
          Hi doze,

          Fixed: Running script multiple times on a document (pclzip callback function was not checked)

          I have two snippet calls on one document (described in the wiki here),

          [!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture`  &max_thumb_size=`110` &js=`mgJs` &pics_per_row=`3`  &pics_per_page=`3` !]
          [!MaxiGallery? &pictureTpl=`mgPicture` &max_thumb_size=`110` &display=`pictureview`!]


          there is only one manage pictures button (which is good), but when I click on it, the picture management (overviw, upload form etc.) is loaded twice. Problem is that uploading pictures results in an error, but when clicking on the "back" button of the browser and then going back to normal view in the gallery the pictures are visible, so uploading works. When sorting the pictures, all pictures appear twice in the popup window, but sorting works fine when sorting the first set of pictures. So is there an option to turn off the management for one of the two galleries in one document?
            • 7923
            • 4,213 Posts
            @MadeMyDay, see this: http://modxcms.com/forums/index.php/topic,15234.msg98454.html#msg98454 (eg. create a separate document to do the picture management).


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

              Keep up the good work! It’s still one of the best image galleries I’ve ever seen.

              I’d like some help implementing MaxiGallery @ my site. What I’d like to create is a gallery with all images in one big, well, bucket. I’d like MaxiGallery to randomly open the image files, no specified order of any kind (maybe just per-user, so ppl won’t see the same image all over). And -this might be the trickiest part- I’d like to add a link to all files for download. E.g. one opens an image (on web size, say 800*536) and likes to use it as a wallpaper. I’d like to present the user with a link to the bigger file (1600*1071) for download. All images already have been resized, they’re named <picturename>_web_l.jpg for the large files and <picturename>_web_m.jpg for the mid-sized files. Could you please assist me in adepting MaxiGallery for this particular use. I have no real PHP experience, but in the past I had some training in C and Java, so coding isn’t all too new for me. Could you please provide me with a good starting-point? I’d really appreciate it!

              Thanks, n
                • 7923
                • 4,213 Posts
                Quote from: noes at Jul 06, 2007, 01:28 PM

                Hi Doze,

                Keep up the good work! It’s still one of the best image galleries I’ve ever seen.
                Thanks alot! it feels good to hear that.. smiley Yes, the development pace has not been as fast as it was in the beginning, but I’m going to keep developing it, don’t worry. From here you can see what will be the next stages in MaxiGallery development.

                Quote from: noes at Jul 06, 2007, 01:28 PM

                I’d like some help implementing MaxiGallery @ my site. What I’d like to create is a gallery with all images in one big, well, bucket. I’d like MaxiGallery to randomly open the image files, no specified order of any kind (maybe just per-user, so ppl won’t see the same image all over). And -this might be the trickiest part- I’d like to add a link to all files for download. E.g. one opens an image (on web size, say 800*536) and likes to use it as a wallpaper. I’d like to present the user with a link to the bigger file (1600*1071) for download. All images already have been resized, they’re named <picturename>_web_l.jpg for the large files and <picturename>_web_m.jpg for the mid-sized files. Could you please assist me in adepting MaxiGallery for this particular use. I have no real PHP experience, but in the past I had some training in C and Java, so coding isn’t all too new for me. Could you please provide me with a good starting-point? I’d really appreciate it!

                Thanks, n
                I’m not sure if I understand what you mean by "in one big bucket"... do you just mean that all the pictures would be in a same gallery or do you mean some specific view mode?

                Anyways, there’s no problems in having all pictures in one gallery, just create one in some document, it can be a hidden document if you want. Then in other documents, you can use the &view_gallery parameter to view that gallery. You can use &order_by=`random` in the snippet call to have the images in a random order. If you want that when the gallery is accessed, it goes straight to the single image view, add &display=`pictureview` to the snippet call. If 3 picture sizes are enough for you, you can use the &max_big_size, &max_pic_size and &max_thumb_size parameters to define the sizes that you want. Then do a custom template for the picture view (&pictureTpl) and make it show the thumbnail by default.. what would be the "web" size. Then add download links for the normal size picture and big picture. The image paths are:

                big picture: [(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]
                normal picture: [(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]
                thumbnail: [(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 21700
                  • 42 Posts
                  Doze, thank you for your quick reply! By putting all pictures in one big bucket I indeed meant putting them all in one gallery. I presume using the way you suggest will resize the images itself, using PHP? I already resized all images, is it possible to use those? I presume resizing a lot of 1600*1071 high quality JPEG files will reduce the speed of the webserver* + it may not have the same quality Photoshop CS2 has.

                  I’ll be doing some tests tomorrow (08-07), using MaxiGallery. I’ll report back here if I encouter any difficulties.

                  *I discovered my hosting provider uses a 3.0Ghz Celeron CPU with 1GB of RAM. It’s quite fast and I’d like to keep it that way. I would stop worrying about this when they’ll use a quad Xeon/Opteron or smthn wink
                    • 7923
                    • 4,213 Posts
                    MaxiGallery resizes the pictures on upload always. You can later on change them manually in the /assets/galleries/<docid>/ folder.


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 21700
                      • 42 Posts
                      I’ve been discovering smoothgallery, wich does the trick nicely along with the random call. I just want to edit 2 things now, maybe someone here know how to:

                      -remove black background: set it to transparent.
                      -edit the tpl of the big_img: e.g. if I now click on the center in Smoothgallery, it just displays the same image, same size, but with <<prev - index - next>> above it. I want it to display the (really) large image in a separate window. What template should I adjust?