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

    After using the following Maxigallery v0.52 call
    [!MaxiGallery? &lang=`en` &gal_query_ids=`13` &display=`embedded` &embedtype=`slimbox` &pics_per_row=`6` &max_thumb_size=`140` &max_pic_size=`0`!]

    I found out that the gallery overview is printed with these extra tags </ul><ul class="thumbs"> before the final </ul>.
    <div class="thumbscontainer">
    	<ul class="thumbs">
    		<li>...</li><li>...</li><li>...</li><li>...</li><li>...</li><li>...</li>
    	</ul>
    	<ul class="thumbs">
    	</ul>
    </div>

    Looks like the clearerTpl template should not be added to the gallery overview output when the last pic is processed. Changing line 1056 in maxigallery.php from
    	if($counter == $mg->mgconfig['pics_per_row']) {
    to
    	if($counter == $mg->mgconfig['pics_per_row'] && ($i < ($limit - 1))) {
    seems to fix the problem.

    Hope this helps and thanks for a wonderful snippet.
      • 7923
      • 4,213 Posts
      Hello and thanks very much for the bug report and for the fix. It’s now fixed in the SVN code.


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