The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Thumbnail Details »» | |||||||||||||||||||||||||
This plugin is the newest version of the Thread Thumbnail plugin
This plugin will display the first attachment as a thumbnail on forumdisplay.php New Features:
Installation: In your AdminCP, go to Plugin System, Download/Upload Plugins and import the xml document. Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in. The plugin comes with the Search Thumbnails enabled. If you do not want to have thumbnails show up in the search results, make sure you deactivate it. If you would like thumbnails to display in the search results, you will need to replace your search.php page with the one in the zip file. Unfortunately vBulletin forgot to include a hook variable where it is necessary for this to work. I have added 1 line to search.php with the hook variable. There is no way around this until vbulletin adds it themselves. Next you will need to modify your threadbit template: Find: Code:
<if condition="$show['threadicons']"> <td class="alt2"> <if condition="$show['threadicon']"> <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> <else /> </if> </td> </if> Code:
<if condition="$show['threadicons']"> <td class="alt2" align="center" valign="middle"> <if condition="$tt_displaythumbs"> <if condition="($thread['attachmentid']) AND ($thread['thumbsize'])"> <a href="showthread.php?$session[sessionurl]t=$thread[threadid]"> <img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" /> </a> <else /> <img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" /> </if> <else /> <if condition="$show['threadicon']"> <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> </if> </if> </td> </if> __________________________________________________ ___ Add-ons (Optional) UserCP option to turn the thumbnails on/off on a per user basis Go into your admincp and click User Profile Fields->Add New User Profile Field. Select "single selection radio buttons", click continue. For title put "Thread Thumbnails", for description put "This will allow you to turn the thumbnails of threads on and off." For options, enter "On" and "Off". Skip down to Display Page and choose "Options: Thread Viewing". In your threadbit template(assuming you already applied the template changes above): Find: Code:
<if condition="$tt_displaythumbs"> Code:
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field5'] <> 'Off' OR $show['guest'])"> Show Your Support
|
Comments |
#212
|
|||
|
|||
are you using the thumbnails in search results? If you go into into your plugin manager and disable the Thread Thumbnail Search - Search plugin, this should fix your error.
|
#213
|
||||
|
||||
steveninstl,
To correct the search problem: See Page 8 02 APR 2008 Post # 112 ~OZ |
#214
|
|||
|
|||
It fixes the error..but also turns off the thumbnail preview...I want that preview..LOL
|
#215
|
|||
|
|||
AWESOME! It works again! Thanks!
|
#216
|
||||
|
||||
steveninstl,
I'm running vB3.7.2PL2. Thumbnails show in my forums, in Tag searches, and New Posts/regular Searches. To add thumbnails to Tag searches see page 12, post #169. To get further confused (hopefully not) see page 13, posts #190, #193. ~OZ |
#217
|
|||
|
|||
Sorry I dont know much about this coding stuff but what does this mean?
How do I do it? Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in. |
#218
|
||||
|
||||
Shmaba,
Click on a forum you want thumbnailed(, or look it up in AdminCP > Forums.) In the browser window you should see something like this: yourforum.com/forums/forumdisplay.php?f=36 IN THIS EXAMPLE, 36 is your forum's forum ID. This goes in the array. In AdminCP edit your Thread Thumbnail plugin, adding forum 36 to the array: example, $tt_thumbsforums = array(36); Separate multiple forums you want thumbnailed with a comma (,): example, $tt_thumbsforums = array(36, 37); |
#219
|
|||
|
|||
Well I want the whole forum to do it so I put the number 1. Im not getting anything though.
|
#220
|
|||
|
|||
Ok, its working but I have alot of forums so do I have to enter every number forum? What if there is over 100? Is there a universal fix?
|
#221
|
|||
|
|||
If you want thumbnails to apply to all forums copy over the thread thumbnail plugin with this
Code:
$tt_thumbsforums = array(); $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' OR attachment.extension = 'jpeg')) "; $hook_query_where .= "GROUP BY thread.threadid "; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|