![]() |
|
|
Mod Options |
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:
Replace With:
You will also need to upload an image to display if there are no image attachments here: $stylevar[imgdir_misc]/nothumb.jpg(ex: http://www.mysite.com/forums/images/misc/nothumb.jpg). I've made a simple one you can use or you can make your own. By default thumbnails are confined in a 100x100 px area, I found that it looks good to make the "no image" image about 100x83 px. _____________________________________________________ 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:
Replace with:
You need to replace field5 with the field name of the profile field you created earlier. Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
|
|||||||||||||||||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Thread Thumbnail | jasonmerchant | vBulletin 3.6 Add-ons | 347 | 04 Feb 2010 18:22 |
| 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! ![]()
__________________
Live-chat on irc.vbirc.com port 6667, #chat about vBulletin with 50+ others, including, but not limited to vbcom/vborg/ib staff and customers: http://vbfans.com/chat |
|
#4
|
||||
|
||||
|
All threads listed show up with the nothumb image, none of them with attachment shows the thumbnail in the threadlist.
__________________
Live-chat on irc.vbirc.com port 6667, #chat about vBulletin with 50+ others, including, but not limited to vbcom/vborg/ib staff and customers: http://vbfans.com/chat |
|
#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
|
|||
|
|||
|
Originally Posted by Xplorer4x4
yes that shouldn't be too hard, I'll look into tomorrow as I'm about to go to sleep.
|
|
#9
|
||||
|
||||
|
Interesting and useful mod but i've found a couple of problems.
I had the modify the template change to this:
Notice i've moved where the <td class="alt2" align="center" valign="middle"> to after the first condition instead of the second. Having the cell opened after the second condition badly messed up the table structure of the threadbit. I changed the close tag </td> to align with this change also. This happened for me anyway. 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. |
||||
|
#11
|
||||||||
|
||||||||
|
Originally Posted by trancetopia
Yes thats right, I hadn't really tested it on the default style last night. I've updated the themplate changes and moved the
inside the else statement to prevent threads without a thread icon from not showing the thumbnail. Is that what you were referring to by "no threads show at all"? or is the entire thread info missing? |
||||||||
|
#12
|
|||
|
|||
|
All the threads are missing from the forum completely. The forum I tested this on had 18 threads in it and one with an attachment just to test things but after I specified the forum id in the plugin, this forum didn't show any of the 18 threads.
|
|
#13
|
|||
|
|||
|
hmm, I just installed it on a fresh default style and it worked. Have you tried it on the default style? I'm guessing this is a template problem, try reinstalling the template or post it here and I'll check it out.
|
|
#14
|
|||
|
|||
|
Originally Posted by Floris
I have the same problem, and I just downloaded and installed your hack, so
I guess I have the latest update. |
|
#15
|
|||
|
|||
|
Originally Posted by bpn
I just found out that if I edit a thread and set it to show 'no icon', I do not get the "no thumb" pic. Now there's just an empty cell.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 13:13.




, sorry somehow mixed up the xml file, i reuploaded it... I forgot the alt="" too

