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! How are you doing? smiley

    Ok, here is what troubles me....


    I have a gallery of 85 pictures (ziped around 8-9 MB)
    When I upload just a few pics (for testing) it all works fine, but sonn as I try to upload this .zip file it crashes. My guess is something with the php.ini config (max upload size or something)
    I also tried to put 40 pics in one zip file, and 45 in another. This works well (MG is uploading them), but then the layout for the gallery is all messed up!?!?!!
    I don’t mind to upload 2 ziped files, but I was wondering why is the layout, in that case, wierd?!

    link: http://www.hip-hopbase.com/index.php?id=1723
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 7923
      • 4,213 Posts
      1. The picture upload fails because MaxiGallery is hitting the server script maximum execution time or memory limits or file upload hits max upload size. You can see the configs to change from maxigallery wiki article. See the "IMPORTANT NOTE" part.

      2. The layout goes fobar, because PHx crashes when there are many pictures on a single page. Things you can do to fix it is to make custom templates that don’t use PHx or use it lightly. Or enable paging in thumbnail view so there are less pictures per page. Or install PHx as plugin and increase the maximum passes value.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 20349 ☆ A M B ☆
        • 453 Posts
        Quote from: doze at Oct 15, 2009, 04:57 AM

        ...The layout goes fobar, because PHx crashes when there are many pictures on a single page. Things you can do to fix it is to make custom templates that don’t use PHx or use it lightly. Or enable paging in thumbnail view so there are less pictures per page. Or install PHx as plugin and increase the maximum passes value.

        Ermmm... I’m not so good at this... can you provide me an example? Don’t know fo shure what to remove, and what to stay... I just use slimbox for embedeing pic’s
          BASE - Web Design Studio
          MODX Ambassador

          Website
          • 7923
          • 4,213 Posts
          galleryPictureTpl:
          <li>
             <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[image[+maxigallery.pageinfo.id+]set]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">	
                <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>
             <p style="width: [+maxigallery.picture_width_thumb+]px;">
                [+maxigallery.picture.title:htmlent+]
             </p>
          </li>
          


          galleryOuterTpl: (you can remove the pagenumbers part below, if you do not use thumbnail paging, same goes for childgalleries part if you do not have any child galleries.)
          [+maxigallery.managebutton:isnot=``:then=`
          
          	<center>[+maxigallery.managebutton+]</center>
          	<br />
          	
          `+]
          
          [+maxigallery.childgalleries:isnot=``:then=`
          	<div class="childscontainer">
          		<ul class="thumbs">
          			[+maxigallery.childgalleries+]
          		</ul>
          	</div>
          `+]
          
          [+maxigallery.pagenumbers:isnot=``:then=`
          	
          	[+maxigallery.pagecount:isnot=`1`:then=`
          
          		<div class="pagenumbers">
          	
          		[+maxigallery.currentpage:is=`1`:then=`
          
          			[+maxigallery.strings.previous+] |
          
          		`:else=`
          		
          			<a href="[+maxigallery.previous_page_url+]">[+maxigallery.strings.previous+]</a> |
          		`+]
          	
          		[+maxigallery.pagenumbers+]
          	
          		[+maxigallery.currentpage:is=`[+maxigallery.pagecount+]`:then=`
          
          			[+maxigallery.strings.next+]
          
          		`:else=`
          	
          			<a href="[+maxigallery.next_page_url+]">[+maxigallery.strings.next+]</a> 
          	
          		`+]
          			
          		</div>
          	`+]
          `+]
          
          
          <div class="thumbscontainer">
          	<ul class="thumbs">
          		[+maxigallery.pictures+]
          	</ul>
          </div>
          


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 20349 ☆ A M B ☆
            • 453 Posts
            Thanks a lot!

            I modified it more with phpthumb and it shows up some strange gaps, but I’m sure it’s CSS related...

              BASE - Web Design Studio
              MODX Ambassador

              Website