This mod adds an "Update attachment" button to upload attachments form.DaannO wrote:What does this do then?
Exactly, Karlkarlsemple wrote:If I understand right you need to browse and select a file in the normal upload manor and then click "update file" on the file you wish to be updated....?
Thanks for the testing and explanationstokerpiller wrote:Okay, now it is testet and it is working GREAT
Code: Select all
General Error
You are not allowed to access this file.
Please notify the board administrator or webmaster:......
Code: Select all
// Regenerate already posted attachments
if (sizeof($not_orphan))
{
// Get the attachment data, based on the poster id...
$sql = 'SELECT attach_id, is_orphan, real_filename, attach_comment
FROM ' . ATTACHMENTS_TABLE . '
WHERE ' . $db->sql_in_set('attach_id', array_keys($not_orphan)) . '
AND poster_id = ' . $check_user_id;
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$pos = $not_orphan[$row['attach_id']];
$this->attachment_data[$pos] = $row;
set_var($this->attachment_data[$pos]['attach_comment'], $_POST['attachment_data'][$pos]['attach_comment'], 'string', true);
unset($not_orphan[$row['attach_id']]);
}
$db->sql_freeresult($result);
}
if (sizeof($not_orphan))
{
trigger_error('NO_ACCESS_ATTACHMENT', E_USER_ERROR);
}
Well, I like it to be fixed too.mcdanielnc89 wrote:then why was this mod validated if that's kind of really a major error.