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 |
#292
|
|||
|
|||
Great mod here. However what about linked images? Any way to get them to show?
|
#293
|
||||
|
||||
I just burned 30+ minutes perusing vB.org looking for a hack that would create a thumbnail when someone posts a linked image. I couldn't find anything.
I've also tried to find a commercial software package that offers this feature. No luck for me so far; maybe I need to improve my web searching abilities; maybe. I've seen some impressive forums where on the main page there's an array of thumbnails that when clicked on take you to the post, etc... Where to find out how to do this or where to buy the code to do this is currently beyond my reach. Hmmm. |
#294
|
||||
|
||||
Quote:
Many issues come into play concerning performance and page displays in vB. How many mods/hacks do you have running in addition to this TT mod. Don't forget their pull on your forum reserves. This mod can't be DIV'd or JavaScripted or swanktified. But, try adding Width and Height to your <img tag (see page 19, post #278). Just the Width parameter works for IE but you need both Width and Height parameters for this to work in FireFox and other browsers, so use both parameters. |
#295
|
|||
|
|||
Quote:
Anyway, if you found a way to create this hack I'm stick around this thread |
#296
|
||||
|
||||
I, too, have nothing more to offer here.
Regards, theOZer |
#297
|
|||
|
|||
thanks for taking the time to look anyway
|
#298
|
||||
|
||||
Quote:
My Vbulletin Version is 374 |
#299
|
||||
|
||||
See page 8, Post #112. The change to search.php hasn't change, so, the info in this post still applies; this added code works in all versions of vB search.php from 368 thru 38x.
~theOZer |
#300
|
||||
|
||||
Quote:
thanks for the help. well, the real problem is with the older or messed up old IE's that some of my users complains about. it works fine with standard or new browsers. even my Nokia phone loaded the page with no problems. Just thought there'd be a way to speed things up like some other classifieds sites. are you saying that if i add the witdh and height tags, the page will load better? I have a rather busy forums section which i use for classifieds. This has made an impact on the server loads right after i used the TT plugin. it's something i will bever remove though. It has improved the site experience so much\ I have since added another quad core server, so server load is back on track. if anyone want to have a look at how i used the thread thumbnails, this is it http://www.zerotohundred.com/newforu...d-performance/ |
#301
|
||||
|
||||
6piston,
Concerning older versions of IE. Trying to cater your forum to work in older IE versions is honorable but… why? If someone has IE7 upgrade or IE8 upgrade (dropped today!) or, worse yet, IE6 upgrade "fear," smolly. Upgrade. Much to my amazement and joy was the discovery that the latest version of Mozilla’s FireFox seems to be THE browser to use when viewing a vB forum. So, put a ‘works best with…’ line hidden somewhere in your footer using a really really small font (visualize a cute smiling smilie here). No. I apologize and after rereading see my suggestion as misleading about performance. But, have you tested using width & height? To actually reduce your thumbnails’ size (AdminCP > vBulletin Options > Message Attachment Options > Thumbnail Size) might improve display delay but its messy and not recommended by me. Always first test changes like this in your testvb. My initial post here about using width and height was for someone who just wanted to tidy up, display smaller thumbnails in a list. Nice web site and utilization of this TT mod. Remember, any hookname that “knows” a thread’s thread.firstpostid can be used to grab 1st post attachment info, too. For example, I found one in tags.php, hookname: tags_list_query_data (see pg 12, post 169). How you’ve shaped up your forum shows me you should be able to take this FYI tidbit and run with it. Good luck. Regards, theOzer P.S. Curiously, IE8 was officially released as I (pre)typed my reply diatribe here. IE8 seems to "handle" using HighSlide in Image Resizer (which I use with NO image resizing, just HighSlide). Hmmm... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|