
04-28-2005, 09:35 AM
|
 |
|
|
Join Date: Sep 2004
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
New install.
Lines 1089-1105 of my showthread.php:
Quote:
// load attachments
if ($thread['attach'])
{
$attachments = $DB_site->query("
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize
FROM " . TABLE_PREFIX . "attachment
WHERE postid IN (-1" . $ids . ")
ORDER BY dateline
");
$postattach = array();
while ($attachment = $DB_site->fetch_array($attachments))
{
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
}
$posts = $DB_site->query("
|
Lines 1189-1206:
Quote:
if ($post['isdeleted'])
{
$template = 'postbit_deleted';
}
else
{
$template = 'postbit';
}
$postbits .= construct_postbit($post, $template);
if (!empty($parsed_postcache['text']) AND !$stopsaveparsed)
{
if (!empty($saveparsed))
{
$saveparsed .= ',';
}
$saveparsed .= "($post[postid], " . intval($thread['lastpost']) . ', ' . $parsed_postcache['images'] . ", '" . addslashes($parsed_postcache['text']) . "')";
}
|
Lines 1388-1402:
Quote:
if ($thread['attach'])
{
$postattach = array();
$attachments = $DB_site->query("
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize
FROM " . TABLE_PREFIX . "attachment
WHERE postid IN (-1$ids)
");
while ($attachment = $DB_site->fetch_array($attachments))
{
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
}
// get list of usernames from post list
|
Lines 1603-1611:
Quote:
if ($threadedmode == 2) // hybrid display mode
{
$postbits .= construct_postbit($post, $template);
}
else // threaded display mode
{
$postbit = construct_postbit($post, $template);
if ($curpostid == $post['postid'])
|
And I wonder if the colored line in the last bit of code should be changed?
|