@batu544:
try this.
in includes/functions.php find:
$site_template->register_vars(array(
"media_src" => $media_src,
insert above:
global $download_multi_sizes_original;
$download_multi_sizes_original = ($image_info) ? $image_info : false;
Then in includes/sessions.php replace the code I posted on previous page with 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, $download_multi_sizes_original;
$split = explode('?', $url);
$url = $split[0];
$query = @$split[1];
$dim = "0x0";
if ($matches[2] >= count($download_multi_sizes))
{
if (@$download_multi_sizes_original)
$dim = $download_multi_sizes_original[0] . "x" . $download_multi_sizes_original[1];
}
else
{
$dim = $download_multi_sizes[$matches[2]][0];
}
$url = str_replace('download.php?action=resize', 'd'.get_image_url($matches[1]).'-'.$matches[2].'-'.$dim.'.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;
}
}
}