Not tested.
In includes/sessions.php above
elseif (strstr($url, 'postcards.php?image_id=')) {
Insert this:
elseif (strstr($url, 'download.php?action=resize')) {
preg_match('#image_id=([0-9]+)&multi_download_select=([0-9]+)#', $url, $matches);
if (isset($matches[1])) {
global $download_multi_sizes;
$split = explode('?', $url);
$url = $split[0];
$query = @$split[1];
$url = str_replace('download.php?action=resize', 'd'.get_image_url($matches[1]).'-'.$matches[2].'-'.$download_multi_sizes[$matches[2]][0].'.htm', $url);
$query = str_replace('image_id='.$matches[1].'&', '', $query);
$query = str_replace('&image_id='.$matches[1], '', $query);
$query = str_replace('image_id='.$matches[1], '', $query);
$query = str_replace('multi_download_select='.$matches[2].'&', '', $query);
$query = str_replace('&multi_download_select='.$matches[2], '', $query);
$query = str_replace('multi_download_select='.$matches[2], '', $query);
if (!empty($query)) {
$url .= '?' . $query;
}
}
}
In .htaccess add this:
RewriteRule ^d-(.*)-([0-9]+)-([0-9]+)-[0-9]+x[0-9]+\.htm$ download.php?action=resize&image_id=$2&multi_download_select=$3&%{QUERY_STRING}
since used the same function as for details.php to generate url, the final url should be the in this format:
http://www.bhwallpapers.com/d-image-name-15982-2-1600x1200.htm
Because multidownload mod uses array indexes, the 1600x1200 in the example will only be used as decoration, you can manually change the numbers, but it will not change image size.