The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
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 |
#82
|
|||
|
|||
![]()
Thanks!!
|
#83
|
||||
|
||||
![]()
Works in vB3.7.0 Beta 2 after upgrading from vB3.6.8 PL2. After reverting my templates to 3.7.0 I needed to re-add the threadbit template code change, then it worked.
|
#84
|
|||
|
|||
![]()
Note: If you are using 3.7 Beta2 and have a quick search template edit in a custom template,you must disable the "search_results_query_threads" hook in your plug-ins manager
|
#85
|
|||
|
|||
![]()
Important: you need to enable icons for each forum where you use this mod, otherwise it will not work!
------------------- I have a question: is it possible to make a small thumbnail (with CSS or something else) for forumdisplay? I have all thumbnails 132px and they're too big when I view forumdisplay, can you make a solution for me please? P.S. - thanks for the great mod! |
#86
|
||||
|
||||
![]()
Yes, as Adam21 noted in post #83, disable the "search_results_query_threads" plugin in vB3.7.0 Beta versions.
Thread thumbnails DO show up in a vB3.7.0 forum page. You must have the "forumdisplay_query" plugin active and the TTv1.1 code in the threadbits template. Unfortunately, it NOW appears that with this hack installed the new vB3.7.0 "Attachment Lightbox" view feature does NOT now work. P.S. Yes, I have "Use Image Lightbox" turned on. |
#87
|
|||
|
|||
![]() Quote:
![]() |
#88
|
|||
|
|||
![]()
Wow awesome idea...this is just what I needed.
Does it work for 3.6.7? |
#89
|
|||
|
|||
![]()
Cool mod, i will definetly use this if the answer to this question is positive:
I only want to use this mod in one section of my forum. Would it be possible, if so how? Thanks |
#90
|
|||
|
|||
![]()
Ok this is what I have:
$tt_thumbsforums = array(32); $tt_displaythumbs = false; And thumbnails arent showing up in that category? Should I set it to true? |
#91
|
|||
|
|||
![]()
I like this mod, but am having problems getting it to work (perhaphs a confick with my other icon mods) here's what a put in the plug-in:
$tt_thumbsforums = array(2,3,4,5); $tt_displaythumbs = false; this is what I put-in the threadbit template: <if condition="$show['threadicons']"> <td class="alt2" align="center" valign="middle"> <if condition="($tt_displaythumbs) AND ($bbuserinfo['field5'] <> 'Off' OR $show['guest'])"> <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="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> </if> <else /> <if condition="$show['threadicon']"> <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> </if> </if> </td> </if> this is the site its on http://OneDesignTalk.com , maybe there are other conficks you can see. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|