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 |
#2
|
|||
|
|||
Oh wow, this could come in real handy. Thanks a lot!
MGM out |
#3
|
|||
|
|||
XHTML <img tags> are to be closed with <img /> and border=0 should be border="0"
tnx for sharing! |
#4
|
|||
|
|||
All threads listed show up with the nothumb image, none of them with attachment shows the thumbnail in the threadlist.
|
#5
|
|||
|
|||
, sorry somehow mixed up the xml file, i reuploaded it... I forgot the alt="" too , everything looks right now...
|
#6
|
|||
|
|||
Is there a way that a user can choose to disable it as well? Say for dial up users?
|
#7
|
|||
|
|||
Sorry to do this again but I just found a better way to check if the attachment is a image, please reinstall both the xml and template changes.
|
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
Interesting and useful mod but i've found a couple of problems.
I had the modify the template change to this: HTML Code:
<if condition="$show['threadicons']"> <td class="alt2" align="center" valign="middle"> <if condition="$show['threadicon']"> <if condition="$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 /> <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> </if> </if> </td> </if> The second problem is that when this is activated for a forum, no threads show at all. Not sure why but suspect the query, not had chance to look any further as i'm in work. |
#10
|
||||
|
||||
Thanks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|