We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Hi all!

    This question is bassicly CSS question.... so any of you CSS gurus will help out? smiley


    What I’m trying to achieve is to center all the images in a gallery (max dimensions of an thumbnail image is 80px) with CSS (not tables please!).


    Here is the preview of what I’m getting now (attached). I hope you get the idea what I want smiley

    If it’s matter, here is the MG call:
    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &max_thumb_size=`80` &pics_per_row=`5` &max_pic_size=`0` &keep_bigimg=`1` &order_by=`filename` &order_direction=`ASC`!]




    What and where do I must modify the code to get this?

    Thanks all in advance!
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 4099
      • 11 Posts
      I have some experience with this, I hope I can help..

      You need phpthumb to zoom and crop the images, so they’re like thumbnails you see on flickr or facebook.
      First you have to get the phpthumb distribution: http://phpthumb.sourceforge.net/

      Then go to the modxcms.com extras section and get the phpthumb package http://modxcms.com/extras/package/341

      After you do this you can go to this forum discussion http://modxcms.com/forums/index.php/topic,34127.0.html, where at the top they have a way to incorporate maxigallery with phpthumb, you have to create a chunk explained in the forum.

      I was able to accomplish this pretty easily, let me know if you come across any issues I’ll be glad to respond with an answer.



        • 36624
        • 535 Posts
          CTRL+SHIFT+U - Clear Cache
          CTRL+SHIFT+H - Hiding Heft Panel
          CTRL+SHIFT+N - Fast Create Resource
          CTRL+ALT+P - Preview Recource (in edit resorce window)
          CTRL+ALT+S - Save
          • 4099
          • 11 Posts
          I think he’s looking for something like this: (see attached)

          Cropped, square thumbnails are not possible with css alone.

            • 20349 ☆ A M B ☆
            • 453 Posts
            Thanks brightshore.

            I will give it a try and let you know the result smiley



            If I come across any issues I will post it here
              BASE - Web Design Studio
              MODX Ambassador

              Website
              • 20349 ☆ A M B ☆
              • 453 Posts
              It’s me again smiley


              Just tried it and it all worked like a charm!


              Thanks a lot!!!
                BASE - Web Design Studio
                MODX Ambassador

                Website