Hallo Iedereen,
Het lukt me maar niet om de plugin "thumbnail thread" te installeren. Dit is de codeIk moet het forum ID invullen, maar het lukt niet. Ik heb ook al alle Id's geprobeert , een voorbeeld hierPHP 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>
Maar ook dat werkt niet , kan iemand mij helpen ?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 ";
}
Mvg
- Vbulletin Plugin Help
-
28-10-2008, 11:17 #1
- Berichten
- 33
- Lid sinds
- 16 Jaar
Vbulletin Plugin Help
-
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic