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 |
#142
|
|||
|
|||
I've used the default code (attached .xml) on 3.6.4 and changed the array to point to 15 forums, and it works just fine! Thanks for this.
|
#143
|
|||
|
|||
Quote:
My forum is here http://www.paint-sculpt.com/forum/index.php you can see that my thumbnails are set to 400 pix. I want to keep this size on the actual thread page but I'd A like smaller thumbnail (say 80px or so) on the forum display page I love this mod and I'm dieing to get it to work on my forum! thanks for any help that you can give me -Richard |
#144
|
|||
|
|||
man thanks a lot
u saved me |
#145
|
|||
|
|||
Where in the template do you add 'height = xx' and 'width = xx' to change the thumbsize?
Edit: It's ok i figured it out Quote:
|
#146
|
|||
|
|||
So there is no way to enable thumbnails for use by this hack without turning them on for every post in the site? My users like the full photos so I can't use the generic thumbnail option in admincp.
|
#147
|
|||
|
|||
I just thought of something about that, i'll get back if it works.
|
#148
|
|||
|
|||
Would it be easy to mod this, so that the attachment used as the thumbnail is hidden when you view the actual post?
|
#149
|
||||
|
||||
this worked really well on 3.64 and was amazingly easy. thanks.
|
#150
|
|||
|
|||
This is wonderfull.
Is it possible to put more than one thumbnails? I will put them below thread name. |
#151
|
|||
|
|||
Hi i just installed this great plugin in my forum... Thank you!!!
I just have a questions: Is there a way to fix the size of the thumbnail like if i set 70x70px if the thumb size will be 70x50px. The image will convert/resize to 70x70px. Thank you.. P.S. Excuse my english, not my native tongue. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|