We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26765
    • 8 Posts
    Hi guys,
    1. I have problem setting the right size for thumbnails.
    I added to galleries page this:
    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`6` &max_thumb_size=`220` &max_pic_size=`0` &thumb_use_dropshadow=`1`!]
    And to parent (the one that shows list of galleries):
    [!MaxiGallery? &display=`childgalleries` &max_thumb_size=`240` &pics_per_row=`4`!]

    But all thumbnails remain the same size, by default (i think 120).

    2. I don’t know where to change background (behind thumbnails), by default is white #fff and i would like to be different (since my page is different color), but to remain the drop shadow effect.

    3. How do i call only 4 pics from certain gallery (but when you click on them to redirect to gallery page, not to open it?

    Thx in advance
      • 22574
      • 181 Posts
      Hey,

      I just had a similar problem.

      Go to here http://wiki.modxcms.com/index.php/MaxiGallery and find the right settings then re-upload a pic.
      Do a hard refresh and you should see a difference.

      EG:
      &thumb_shadow_bgcolor=`#454545`

      Not sure about no.3, sorry.
        • 7923
        • 4,213 Posts
        for 3:

        use the &pic_query_ids to query certain pictures, or &gal_query_ids with &limit=`4` to get four pics. Do a custom galleryPictureTpl with this content:

        <li>
        	<a href="[~[+maxigallery.picture.gal_id+]~]">
        	
        	 	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
        	
        	</a>
        	[+maxigallery.picture.title:isnot=``:then=`
        		<p style="width: [+maxigallery.picture_width_thumb+]px;">
        		[+maxigallery.picture.title:htmlent+]
        		</p>
        	`+]
        </li>
        



          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 26765
          • 8 Posts
          Thx guys, you helped a lot. Nice to see helping ppl.
            • 2798
            • 22 Posts
            ok ok, hi everybody at first!
            me is a little confused now because i’m trying to get same thing like in the first post: Main-Feature for me is to get a different thumb-size in my gallery-overview than im my childgalleries!
            I’ve a gallery-overview with the following call:
            [!MaxiGallery? &display=`childgalleries` &max_thumb_size=`310`!]


            And the i’ve got a few childgalleries with the following call:
            [!MaxiGallery? &pics_per_row=`4` &max_thumb_size=`225` &max_pic_size=`800` &use_flash_upload=`1` &thumb_use_watermark=`1` &thumb_watermark_type=`image` &thumb_watermark_img=`assets/snippets/maxigallery/watermark/watermark-2.png`&pic_use_watermark=`1` &pic_watermark_type=`image` &galleryPictureTpl=`gallerythumbs`!]

            But, excuse me, what the f**k is wrong that i wouldn’t get different thumb-sizes in the overview and in childgalleries????
            I think it’s an important main-prob of understanding maxigallery - but everything else exept the different thumb-sizes is working well!
            Any great tips for me - i’m really confused about maxigallery because it’s a great and big tool - maybe to big for "pixel-brooms" like me....

            thx in advance
              • 7923
              • 4,213 Posts
              MaxiGallery does the picture resizing on upload. When you display a childgallery, the pictures are already resized to the size what was set to the snippet call that was used to upload them, so they are always the same.

              To get different size thumbnails in childgalleries view and in the gallery requires that you use phpThumb to display the images. With that, you can input the normal sized image to phpThumb and it’ll generate the thumbnails to what ever size you need. See more information from the "usefull information" thread.


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