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 |
#152
|
|||
|
|||
I have one problem with this hack. Some of the thumbnail doesn't show even though I have thumbnail image in that thread. I have different attachment rather than image. Is there anyway I can show the image attachment only. Any help will be appreciated.
Thanks |
#153
|
|||
|
|||
I don't see how it would be possible, but would there be an option to add to the WYSIWYG editor, a place to link in an thumbnail?
Then I could disable attachements. |
#154
|
|||
|
|||
Please tell me how to:
1. show the LAST attachment, rather than the first. 2. how to show thumb of image in tag in the thread in case there are no attachments. thanks www.fordmuscle.com |
#155
|
|||
|
|||
Does not work well in 3.6.5, only shows thumbs if you are logged in. Not logged in and you get red X in IE and no image in Firefox.
|
#156
|
|||
|
|||
that would be awesome!!!!
|
#157
|
|||
|
|||
I have the same problem casa. If you are not logged in there will be no thumbnails. Is there a fix for this problem?
Whether the user is logged in or not the thumbnail should always be displayed... Can this be done? Thanks in advance... www.3dpinoy.com |
#158
|
|||
|
|||
this is really awesome - but was just wondering can you also add a feature to show a thumb of the first images in a post using [img] tag but not attachment?
|
#159
|
|||
|
|||
There is a way to add a custom thumb (different from the attachment) ?
|
#160
|
||||
|
||||
Great hack! Just what I needed!
|
#161
|
|||
|
|||
how can I modify this to also work for inline images? (ex. displaying thumbs for images using [ img ] tag)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|