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 |
#162
|
|||
|
|||
Hi there. Anyway to show it to guests as well? for some reason it's not showing for guests...
Thanks for this plugin |
#163
|
|||
|
|||
iv been playing with the code with usegroupid but no success so far... could someone help so that the thumbnails are shown to guests(not logged in) as well? thanks.
|
#164
|
|||
|
|||
I got it!
A user "Dismounted" helped me out on this. Find Code:
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field7'] <> 'Off' OR $show['guest'])"> Code:
<if condition="$tt_displaythumbs AND ($bbuserinfo['field7'] != 'Off' OR $show['guest'])"> |
#165
|
|||
|
|||
there is one add-on that enable you to control showing thumbnail to guests, otherwise you can do it by allowing them to see attachments in admincp
|
#166
|
||||
|
||||
How do you resize the image to something smaller? The images come out huge. Where do I edit the settings.
|
#167
|
|||
|
|||
Quote:
Code:
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />
|
#168
|
|||
|
|||
Works great on vBulletin Version 3.6.7PL1
|
#169
|
|||
|
|||
Quote:
Thanks! |
#170
|
|||
|
|||
Quote:
hmm, doesnt work. this code would only be in the Threadbit IF someone had the radio button option in the userCP allowing users to turn off thumbnail viewing. What I would like to see in this mod, and I cant imagine why this is so tough (though I am no coder, lol) is to simply allow these thumbnails next to the thread title to display to guests/non-registered. Go to my forum and you'll see how LAME it is without this: http://www.fordmuscle.com/forums/tech-exchange/ |
#171
|
||||
|
||||
Quote:
I want to display the LAST poster's avatar instead of a status icon on forumhome, but noone seems to want to help me out here. I figures this thread was close enough. If ANYONE has any ideas of how I would achieve this PLEASE let me know. I really want to work thi sout. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|