The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
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 |
#172
|
||||
|
||||
![]()
I'm not experiencing 'a big space for the thumbs column.' My Tag Search screen looks like the current Search Forums/New Posts screen on my forum. Hmmm?
|
#173
|
|||
|
|||
![]()
No thanks man, see my edit above, it works great.
Just a typo in your template code: Quote:
Quote:
|
#174
|
||||
|
||||
![]()
Done; I corrected that typo in my code above. And, thank you, Defkalion, for catching that code glitch. Keep me honest, please.
|
#175
|
|||
|
|||
![]()
Hell yes. Thanks a lot theOZer for working that out with the tags. Much appreciated.
FYI, you can simplify the threadbit by using this conditional instead, Code:
<if condition="$tt_displaythumbs OR $tt_displaythumbs_tags"> |
#176
|
||||
|
||||
![]()
I segregated the 2 IF statements because Tag Searches that don't have a thumbnail then display the 'default' thread icon and Forum & regular searches that don't have a thumbnail display the 'No Image' gif.
And, for what it's worth, you can tweak the Thread Thumbnail Search plugin, have it use a different temp true/false variable, e.g., $tt_displaythumbs_search, and add an additional IF statement to handle regular searches like I'm handling Tag Search. I've already done this on my forum. Regular searches now display the thumbnail if it exists otherwise it just displays the default thread icon. Also, like the original Thread Thumbnail mod, you can set up a User Profile Field to Display or Not Display thumbnails for Tag Searches. Now that I've cracked this, so to speak, there's a lot that can be done with this mod. I'm now going to see if I can get the mod to also display thumbnails when doing post searches. We will see. ~OZ |
#177
|
|||
|
|||
![]()
I see what you mean now after looking at the code. I designed my threadbit differently so the OR conditional works best for me. Anyways, thanks again, happy to have this in tags finally.
|
#178
|
|||
|
|||
![]()
Is this working on 3.6.5? I installed it but it doesn't seem to be working, should I update to the latest version of Vb 3.7.2 to make it work?
|
#179
|
||||
|
||||
![]()
Do you have thumbnail creation turned on?
Have you added the forums you want thumbnailed to the Thread Thumbnail plugin array? This mod was written as of vB3.6.8 and the "supplied" search.php may not work in vB3.6.5. You may need to edit and add the thread thumbnail code to your vB3.6.5 search.php. P.S. Of course, you should be running the most current version of vB, regardless. |
#180
|
|||
|
|||
![]() Quote:
![]() |
#181
|
||||
|
||||
![]()
Hello rolfw1,
Glad I could help. Since your last visit here I figured out to add thumbnails to tags.php. See post # 169. ~OZ |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|