there's an error in the upload.php from the upload. zip.
Search for:
// Check for user defined fields.
if(!empty($CONFIG['user_field1_name[]'])) {
$form_array[] = array($CONFIG['user_field1_name[]'], 'user1', 0, 255, 1);
}
if(!empty($CONFIG['user_field2_name'])) {
$form_array[] = array($CONFIG['user_field2_name[]'], 'user2', 0, 255, 1);
}
if(!empty($CONFIG['user_field3_name'])) {
$form_array[] = array($CONFIG['user_field3_name[]'], 'user3', 0, 255, 1);
}
if(!empty($CONFIG['user_field4_name'])) {
$form_array[] = array($CONFIG['user_field4_name[]'], 'user4', 0, 255, 1);
}
and replace with
// Check for user defined fields.
if(!empty($CONFIG['user_field1_name'])) {
$form_array[] = array($CONFIG['user_field1_name'], 'user1', 0, 255, 1);
}
if(!empty($CONFIG['user_field2_name'])) {
$form_array[] = array($CONFIG['user_field2_name'], 'user2', 0, 255, 1);
}
if(!empty($CONFIG['user_field3_name'])) {
$form_array[] = array($CONFIG['user_field3_name'], 'user3', 0, 255, 1);
}
if(!empty($CONFIG['user_field4_name'])) {
$form_array[] = array($CONFIG['user_field4_name'], 'user4', 0, 255, 1);
}
Regards,
Justin
PS:
As someone earlier in this thread asked for:
Here's what I changed additionally(!) in upload.php to display one parent category up with (parent-cat / sub-cat) in the pull-downs,
find:
$vQuery = "SELECT cat.name FROM " . $CONFIG['TABLE_CATEGORIES'] . " cat, " . $CONFIG['TABLE_ALBUMS'] . " alb WHERE alb.aid='" . $album_id . "' AND cat.cid=alb.category";
and replace with
$vQuery = "SELECT ifnull(concat(catp.name,' / ',cat.name),cat.name) name FROM " . $CONFIG['TABLE_ALBUMS'] . " alb ," . $CONFIG['TABLE_CATEGORIES'] . " cat left outer join " . $CONFIG['TABLE_CATEGORIES'] . " catp on catp.cid = cat.parent WHERE alb.aid='" . $album_id . "' AND cat.cid=alb.category";