This hack will show linked attachments as inline images.
You will need to edit the /includes/class_bbcode.php file.
Find this comment:
"Display the attachment with no link to bigger image"
change the variable just below the comment: $attachment['filename'] to $attachmentid
Find this comment:
Belongs to another post so we know nothing about it ...
comment out the two lines of code:
Code:
$addtarget = (empty($this->attachments["$attachmentid"]) OR $attachment['newwindow']) ? 'target="_blank"' : '';
Code:
$replace[] = "<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1" . (!empty($attachment['dateline']) ? "&d=$attachment[dateline]" : "") . "\" $addtarget>$vbphrase[attachment] \\1</a>";
Then add this block of code just bellow the last comment out line:
Code:
$replace[] = "<img src=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&d=$attachment[dateline]\" border=\"0\" alt=\""
. construct_phrase($vbphrase['image_x_y_z'], $attachmentid, $attachment['counter'], $attachment['filesize'])
. "\" " . (!empty($align) ? " style=\"float: $align; margin: 2px\"" : 'style="margin: 2px"') . " />";