I'd like to disable the prompt for the user to upload a thumbnail and just take care of that myself. Is that easily accomplished?
Lane
Offline
I hope it's still working. With any php simple edit program...
In upload.php find:
if ( sizeof( $error ) == 0 )
{
$query = 'insert into '.WAITING_TABLE;
$query.= ' (storage_category_id,file,username,mail_address,date,infos)';
$query.= ' values ';
$query.= '('.$page['cat'].",'".$_FILES['picture']['name']."'";
$query.= ",'".htmlspecialchars( $_POST['username'], ENT_QUOTES)."'";
$query.= ",'".$_POST['mail_address']."',".time().",'".$xml_infos."')";
$query.= ';';
pwg_query( $query );
$page['waiting_id'] = mysql_insert_id();
}
}
and replace by:
if ( sizeof( $error ) == 0 )
{
$query = 'insert into '.WAITING_TABLE;
$query.= ' (storage_category_id,file,username,mail_address,date,infos)';
$query.= ' values ';
$query.= '('.$page['cat'].",'".$_FILES['picture']['name']."'";
$query.= ",'".htmlspecialchars( $_POST['username'], ENT_QUOTES)."'";
$query.= ",'".$_POST['mail_address']."',".time().",'".$xml_infos."')";
$query.= ';';
pwg_query( $query );
$page['waiting_id'] = mysql_insert_id();
$page['upload_successful'] = true;
}
}
8-)
Offline
Is it working well?
8-)
Offline
VDigital wrote:
Is it working well?
8-)
Yes, it is, Vincent. Thanks for all your help. That one line of code did take care of the user thumbnail prompt.
Lane
Offline
What must i found a replace in 1.7.0 ?
Offline
Find:
$page['waiting_id'] = mysql_insert_id();
And add after:
$page['upload_successful'] = true;
Is it correct?
Offline
Perfekt, it's work great. Thanks for your help.
(Help for all others: line 225 in upload.php)
Offline