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 |
#122
|
||||
|
||||
winkm,
One more guess. Is Thumbnail Creation turned ON? AdminCP > vBulletin Options > Message Attachment Options > Thumbnail Creation I have mine set to 'Yes, with border and dimensions' (which just may be the default, I don't know). Also, in Attachment Manager gif, jpg, jpeg Thumb column all read Yes (Yes?). ~OZ |
#123
|
|||
|
|||
OZ, I changed your account so you should be able to post in the Test forum, would appreciate if you could check!
thanks a lot again! |
#124
|
||||
|
||||
winkm,
I posted in your Test forum. Do you have Thumbnail Creation turned ON? It should have created a thumbnail when I posted; or, at least, that's how it 'happens' when anyone posts on the OMAC forum. Hmmmmm. ~OZ P.S. Click on my signature; have a look at OMAC; click on New Posts, or, say the Critique forum to see the thumbnails. |
#125
|
|||
|
|||
Quote:
Is there a solution for this (full size images in threads with thumbnail enabled) ? thanks! |
#126
|
|||
|
|||
I think you can accomplish what you want by editing the postbit_attachmentthumbnail template
|
#127
|
||||
|
||||
This is a dead, unsupported hack that hasn't been touched by JasonMerchant since 21 SEP 2007. It's meant to display the thumbnail in posts that have Thumbnail Creation turned ON, period. This hack does NOT display full sized images, just only thumbnails.
See my post #121 above concerning how to turn on Thumbnail Creation. Note that if you had Thumbnail Creation turned off and /or change the setting you will need to go to Maintenance -> Update Counters -> Rebuild Attachment Thumbnails after changing this setting and rebuild your thumbnails. |
#128
|
|||
|
|||
Neverbored: what should I change in this template ?? (complicated code!)
|
#129
|
|||
|
|||
Quote:
Make sure you have thumbnail creation on. This will display the thumbnails for use with this hack, and in the thread will display the fullsize image (what you would normally see if you clicked on the thumbnail of an attached image), which is what I understood you were asking to accomplish... It's a quick fix and shouldn't pose any problems other than the fact potentially a lot of thumbnails are created that aren't used if you have a lot of image uploads. |
#130
|
|||
|
|||
can we enable it only for some of the forums/categories?
|
#131
|
|||
|
|||
You have to enable it for each forum you want to use it on (so to your question, yes)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|