1
Mods & Plugins (Requests & Discussions) / Re: Simplifying Image Upload
« on: December 12, 2005, 08:44:43 PM »Quote
why it will not work ?? is there other way ?
Xmode: I made the same mistake and couldn't figure out why the changes wouldn't work. Until I looked closer.
When you search for this:
Code: [Select]
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;
}
Make sure it is 39 lines below this code:
Code: [Select]
if ($action == "uploadimage") {
Make sure you DO NOT comment the code below this:
Code: [Select]
if ($action == "updateimage") {
Once you make those changes it will work!
