Easy5s.net
09-27-2012, 11:44 AM
Here is code for VB3, how it can be work with VB4 damaged because the database of completely different vbb4 and it does not have postid.
$postid = $newpost['postid'];
$attachs = $vbulletin->db->query_read("
SELECT dateline, filename, attachmentid
FROM " . TABLE_PREFIX . "attachment
WHERE postid = $postid
ORDER BY attachmentid
");
sorry my bad english.
$postid = $newpost['postid'];
$attachs = $vbulletin->db->query_read("
SELECT dateline, filename, attachmentid
FROM " . TABLE_PREFIX . "attachment
WHERE postid = $postid
ORDER BY attachmentid
");
sorry my bad english.