Standardmäßig wird im Smartor Album die max. Dateigröße für den Bilder Upload ja in Byte angezeigt. Da die allerwenigsten unter uns mit dieser Angabe klar kommen habe ich das mal so geändert, das jetzt die korrekte KByte, MByte oder gar GByte angezeigt werden. Das ganze habe ich so umgesetzt:
suche in der album_upload.php:
Code: Alles auswählen
$template->assign_vars(array(
'U_VIEW_CAT' => ($cat_id != PERSONAL_GALLERY) ? append_sid("album_cat.$phpEx?cat_id=$cat_id") : append_sid("album_personal.$phpEx"),Code: Alles auswählen
$max_file_size_string = "";
$max_file_size = $album_config['max_file_size'];
$size_strings = array("Byte","KByte","MByte","GByte");
$size_counter = 0;
while ($max_file_size >= 1024)
{
$size_counter++;
$max_file_size = $max_file_size / 1024;
}
$max_file_size_string = number_format($max_file_size,($size_counter ? 2 : 0),",",".")." ".$size_strings[$size_counter];Code: Alles auswählen
'S_MAX_FILESIZE' => $album_config['max_file_size'],Code: Alles auswählen
'S_MAX_FILESIZE' => $max_file_size_string,Code: Alles auswählen
$lang['Max_file_size'] = 'Max. Dateigröße (in Bytes)';Code: Alles auswählen
$lang['Max_file_size'] = 'Max. Dateigröße';Bye