4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: edu on June 22, 2005, 10:20:51 PM

Title: download name
Post by: edu on June 22, 2005, 10:20:51 PM
it would be possible to set the same name to all  .zip archives ?
for example: archive.zip
Title: Re: download name
Post by: V@no on June 23, 2005, 12:55:06 AM
yes, it would, but then most of the browsers with default settings will not download second file, they would think its the same file as the first one and use one from the cache.
Title: Re: download name
Post by: edu on June 23, 2005, 08:55:49 AM
yes, it would, but then most of the browsers with default settings will not download second file, they would think its the same file as the first one and use one from the cache.

Interesting, I wasn´t knowing this.  :roll:




Then I would like to change image_name.zip for image_id.zip, thanks in advance. :wink:
Title: Re: download name
Post by: V@no on June 23, 2005, 01:23:38 PM
Try this: (not tested)
in download.php find 4 lines that start with:
Code: [Select]
$file['file_path'] =below each line insert:
Code: [Select]
    $file['file_name'] = $image_id.(($size) ? "_".$size : "").".".$file_extension;
Then find:
Code: [Select]
      $file['file_name'] = get_file_name($file['file_name']).".zip";Replace it with:
Code: [Select]
      $file['file_name'] = $image_id.".zip";
Title: Re: download name
Post by: edu on June 23, 2005, 02:25:05 PM
This works perfect  :lol:

Thanks V@no !!!!!
Title: Re: download name
Post by: marod0er on June 24, 2005, 08:40:55 PM
Vano to the rescue!!!