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.