The code is correct, you have something copied/placed incorrectly. If you are not getting the big file with the normal 4images download button then something is not inserted correctly.
if you look at the code you posted deeper (5 lines below the red one)
It looks for the "big" image in the case "big", if it does not detect it because of code above it, it pulls the image from the default "media" folder.
Did you install the links I posted above? They will give you the Big files that your database will look for if correctly configured (this is outside my mod)
Until you get the normal 4images download button to give you the big file, there is no way my mod will fix that error because it is outside the mod.
On default Download Button it download 580X362 dimension which i resized.
You default download button (not my mod) should not give you the resized 580X362 image. It should download the larger 1920X1200 image. When you fix that error somewhere then my mod will also be fixed because it can not look in the big folder if the normal 4images code does not see the folder.
Is this site the same one that you set me as a mobile 4images? I may have time to look through to see if I see anything.
UPDATE: I went through your files and found that if you use the updated info for the alternate directory (I was using the original) it completely messes up my code.
I installed a quick fix into your files, see how they do for you.
Any one following this thread and using the update code found here...
http://www.4homepages.de/forum/index.php?topic=7499.msg148451#msg148451You will need to add this quick fix to get my code to work correctly till I think this through better.
at the top of my code that is inserted that begins with
// MOD multi download
$sql = "SELECT multi_download
FROM ".CATEGORIES_TABLE."
WHERE cat_id = ".$image_row['cat_id']." ";
$result = $site_db->query_firstrow($sql);
you need to place this code
Before it.
$big_file = MEDIA_PATH.(($image_row['cat_id'] != 0) ? "/".$image_row['cat_id'] : "")."/"."big"."/".$image_row['image_media_file'];
$download_file = MEDIA_PATH.(($image_row['cat_id'] != 0) ? "/".$image_row['cat_id'] : "")."/"."download"."/".$image_row['image_media_file'];
if (file_exists($big_file)){
$bild = $big_file;
}
if (file_exists($download_file)){
$bild = $download_file;
}
$src_download = (!file_exists($bild) && file_exists(preg_replace("/\/{2,}/", "/", get_document_root()."/".$bild))) ? preg_replace("/\/{2,}/", "/", get_document_root()."/".$bild) : $bild;
if ($temp = @getimagesize($src_download, $bild)) {
$download_width_height = " ".$temp[3];
$download_width = (isset($temp[0]))? $temp[0]:"";
$download_height = $temp[1];
}
$site_template->register_vars(array(
"download_width" => $download_width,
"download_height" => $download_height
));
A little sloppy work till I can look at things closer to see why they moved the width/ height info further down the code (after mine that needs it)