WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
if (isset($col)){ $picsperrow = $col; } else { $picsperrow = 4;} // Set the amount of pics per row
Hello nn8,I must apologize, but I don't understand what you're asking for.Regards,Stefek
Hi I was just wondering if you had been able to make it sort images by file name as requested a few posts above? This is a very valuable droplet to me and that one extra feature would make it perfect!Thanks.
<?php // check sorting if((isset($sort) && $display == 'table') || (isset($sort) && $display == 'all')){ if($sort=='ASC') asort($image_show); if($sort=='DESC') rsort($image_show); if($sort=='RANDOM') shuffle($image_show); }
Hi there,I use the microGallery a lot because it is so very easy to use!Lately I noticed that microGallery also shows the other files that is inside the folder.It doesn't show a preview because these other files are no JPEG but ZIP files.Is there a way to exclude ZIP files and/or only show JPEG files?Greetings,MacSmet
&sort Parameter:Sort ascending, descending or random.Use:&order=ASC&order=DESC&order=RANDOM(uppercase)
aksort($image_show); function aksort(&$array,$valrev=false,$keyrev=false) { if ($valrev) { arsort($array); } else { asort($array); } $vals = array_count_values($array); $i = 0; foreach ($vals AS $val=>$num) { $first = array_splice($array,0,$i); $tmp = array_splice($array,0,$num); if ($keyrev) { krsort($tmp); } else { ksort($tmp); } $array = array_merge($first,$tmp,$array); unset($tmp); $i = $i+$num; // Fixed from previous post: $i = $num; }} //from php.net comments, auhor: mike at clear-link dot com