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 |
#272
|
||||
|
||||
The search.php supplied with this mod works in vB3.6.8-9. It most likely works in vB3.6.10-12.
To use the Thread Thumbnail - Search plugin in either/both vb3.7.x and vB3.8.x you need to tweak your copy of search.php, then turn this Thread Thumbnail - Search plugin ON. See my post on Page 8, Post #112 for the search.php code tweak. Hope this helps. ~OZ Always test changes first in your testvb instance. Rename, NEVER DELETE, your current copy of search.php, e.g., rename it to search_original.php. Easy to go back to it if things go awry. |
#273
|
|||
|
|||
Quote:
Please let me know how to set the image size to full in the post. Thanks. |
#274
|
|||
|
|||
Quote:
Can you please let me know what i need to do to display the images in full in the post. What do i change in the Thumbnail file? It is really urgent. Awaiting your reply. Thanks. |
#275
|
||||
|
||||
If it's that urgent try doing a 'Search this Mod' looking for Neverbored.
|
#276
|
|||
|
|||
Wonder if anyone can help...I really want to use this mod but no matter what I do the thumbnail in the thread is huge (the actual size of the uploaded image).
I have 'create thumbnails' turned on and made them size 150px...but it made the thumbnails in the post tiny...but the thread thumbnails were still huge. Any help anyone? |
#277
|
|||
|
|||
Hello,
I am desperately seeking your advice. I am using your hack for displaying thumbnails in the thread. But after making the view Thumbnails option i am not able to view the attachments in the post. Can you please tell me in detail what settings I have to do to the Thumbnail template to display the thumbnails as well as the attachment in the post. I am waiting eagerly for your reply, since i am facing the problem in my forum. Thanks. |
#278
|
|||
|
|||
Hello,
At last found your code and updated the template. The thumbnail issue is solved. Thanks a lot NeverBored and theOZer. Regards. |
#279
|
||||
|
||||
Hello Lulubelle,
If you're talking about the Threads in Forum displayed thumbnails add Width and Height to the thread thumbnail <img src= threadbit template code where applicable. For example, try this (change 50 to whatever size value you end up liking): <img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" width="50" height="50" border="0" /> ~OZ |
#280
|
|||
|
|||
that worked great thanks!!
|
#281
|
|||
|
|||
works on 3.8 RC2
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|