This is by far no way perfect, it was a quick hack, but it seems to work. Please give this a look over. Modified code in Themes/default/Downloads2.1.template.php around line 5066
// Check to see if there's anything in my special array.
if (isset($myFileArray))
if (count($myFileArray) > 0)
unset($myFileArray);
// Create a new array.
$myFileArray = array();
// Dump the contents of the directory into the new array...
// Loop through all the images in the folder.
$dir = opendir($fpath);
$count = 0;
while ($file = readdir($dir))
{
// Skip the directories!
if (!is_dir($fpath . '/' . $file))
{
$myFileArray[] = $file;
$count ++;
}
}
closedir($dir);
natcasesort($myFileArray);
// Now let's list these files.
// Loop though all the images in the folder
foreach ($myFileArray AS $fkey => $fvalue)
echo '
<tr>
<td><input type="checkbox" name="fimage[]" checked="checked" value="',$fvalue,'" /></td>
<td><a href="',$modSettings['down_url'], $fpath2 ,'/', $fvalue,'" target="_blank">',$fvalue,'</a></td>
<td>',Downloads_format_size(filesize($fpath . '/' . $fvalue),2),'</td>
</tr>';