Quote:
Originally Posted by kentaurus
The "In progress" status is a bug, I'll fix it soon. That's because there is no post associated to the attachment.
However, I don't have any problem with viewing my attached file in the private message, are you sure you have this code around line ~1371? That's the one responsible for fetching the attachments.
Code:
if ($pm['attach'])
{
$pm['attachments'] = array();
$attachments = $DB_site->query("
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail = '', 0, 1) AS hasthumbnail, LENGTH(thumbnail) AS thumbnailsize
FROM " . TABLE_PREFIX . "attachment
WHERE private='".$pm['pmtextid']."'
");
while ($attachment = $DB_site->fetch_array($attachments))
{
$attachment['kilobytes'] = vb_number_format($attachment['filesize'] / 1024, 1);
$pm['attachments']["$attachment[attachmentid]"] = $attachment;
}
}
Also, the attachments in a normal post show fine? The same code that creates the postbit for a thread is the code that creates it for a pm.
|
Yeah, I have that change in the code... Not sure what is causing the problem...
Attachments in normal post do show fine...