4images Forum & Community
International => Español / Castellano => Topic started by: SOz92 on August 02, 2012, 09:24:24 PM
-
Hola buenas :)
Pongo este comentario porque me gustaría saber si de alguna manera, al subir una foto si el título está vacio, se pusiera automaticamente el nombre del archivo pero sin la extensión .JPG
Un salugo
-
Hi!
search in "member.php" and comment the follow rows out ( /* ..... */ ) , or delete it:
if ($image_name == "") {
$error = 1;
$field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['image_name']), $lang['field_required']);
$msg .= (($msg != "") ? "<br />" : "").$field_error;
}
search:
$new_name = $remote_media_file;
}
and insert below:
if(empty($image_name)){
$image_name = get_file_name($new_name);
}
mfg Andi
-
Thanks