Quote:
Originally Posted by KirbyDE
Nice Hack. But you might want to consinder releasing it as a Plugin to avoid File Edits:
Hook: forumdisplay_query
PHP Code:
if (in_array($forumid, array(XX, YY))
{
$hook_query_fields .= ", attachment.attachmendid AS attachmentid";
$hook_query_joins .= " LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON (attachment.postid = thread.firstpostid)";
}
To make it even more Userfriendly, you could add a setting Show Attachment Thumbnails to Forum Manager, so Users could easily turn this On/Off for individual Forums.
|
I could not get this to work
I got this error on top of the page:
Parse error: parse error, unexpected '{' in /var/www/html/message_board/forumdisplay.php(799) : eval()'d code on line 2
and this one as the vbulletin message:
Unable to add cookies, header already sent.
File: /var/www/html/message_board/forumdisplay.php(799) : eval()'d code
Line: 2