The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Thumbnail Details »» | |||||||||||||||||||||||||
The new version is available here.
This plugin was based on Thumbnail of Attachments on forum display by Dechevious(I hope its alright with you) It is mostly the same converted to the new 3.5 hook. I also fixed the "If the attachment is not an image, a thumbnail will not be shown" problem. Note: This plugin works in v3.68 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. 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 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 |
#112
|
||||
|
||||
thanks
|
#113
|
|||
|
|||
[high]* VaaKo clicks install
[/high] check it out http://www.onelebanon.com/forum/forumdisplay.php?f=118 |
#114
|
|||
|
|||
Quote:
Find in threadbit template Code:
<if condition="($thread['attachmentid']) AND ($thread['thumbsize'])"> Code:
<if condition="($thread['attachmentid']) AND ($thread['thumbsize']) AND ($bbuserinfo['userid'])"> |
#115
|
|||
|
|||
Thanks for the mod.
Works perfectly with vb 3.6.0 |
#116
|
|||
|
|||
Quote:
if i change the hook location to "search_results_query_threads" i can see the nothumbs image as expected. It doesn't seem to link up the attachment id though, so the thumbnail is not displayed. Any help would be much appreciated |
#117
|
|||
|
|||
Hi I'm installing this plugin but I have one question: can I decide in wich forum to use it or when it's on it works in every forum?
I don't want a no thumb image in every thread without attachments Another thing: where is the threadbit template I have to modify? K |
#118
|
|||
|
|||
great plug in Thank you
Does any one know how to get it to grab the first thumbnail in the thread? If the first post doesn't have an image then could it go down and grab the next image attachment? Nothing urgent. I am just curious |
#119
|
|||
|
|||
Hey Thenet where is the threadbit template I have to modify?
|
#120
|
|||
|
|||
Quote:
Go to styles and templates. Press the [<< >>] button of the style you want this mod to work with. Then you'll see a list of templates. Scroll down until you see something like Threadbit Templates. Double click it. Inside that you'll find threadbit and you can edit that accordingly |
#121
|
|||
|
|||
tnx thenet, I have to use the mod as it is on the top of this page or there are some recent modifications?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|