Hallo Iedereen,

Het lukt me maar niet om de plugin "thumbnail thread" te installeren. Dit is de code
PHP Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
    <plugin active="1" executionorder="5" product="vbulletin">
        <title>Thread Thumbnail</title>
        <hookname>forumdisplay_query</hookname>
        <phpcode><![CDATA[$tt_thumbsforums = array(8);
$tt_displaythumbs = true;

if (in_array($forumid,  $tt_thumbsforums)) {
    $tt_displaythumbs = true;
    $hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
    $hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) ";
    $hook_query_where .= "GROUP BY thread.threadid ";
}]]></phpcode>
    </plugin>
    <plugin active="1" executionorder="5" product="vbulletin">
        <title>Thread Thumbnail - Search</title>
        <hookname>search_results_query_threads</hookname>
        <phpcode><![CDATA[$tt_displaythumbs = true;
    $hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
    $hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) ";
    $hook_query_where .= "GROUP BY thread.threadid ";]]></phpcode>
    </plugin>
</plugins>
Ik moet het forum ID invullen, maar het lukt niet. Ik heb ook al alle Id's geprobeert , een voorbeeld hier

PHP Code:
$tt_thumbsforums = array(1);array(2);array(3);array(4);array(5);array(6);array(7);array(8);array(9);array(10);array(11);array(12);array(13);array(15);array(16);array(17);array(18);array(19);array(20);
$tt_displaythumbs false;

if (
in_array($forumid,  $tt_thumbsforums)) {
    
$tt_displaythumbs true;
    
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
    
$hook_query_joins .= "LEFT JOIN " TABLE_PREFIX "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) ";
    
$hook_query_where .= "GROUP BY thread.threadid ";

Maar ook dat werkt niet , kan iemand mij helpen ?

Mvg