Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Thread Thumbnail Details »
Thread Thumbnail
Mod Version: 1.00, by jasonmerchant (Member) jasonmerchant is offline
Developer Last Online: Jun 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Rating: (3 votes - 5.00 average) Installs: 109
Released: 18 Oct 2005 Last Update: 22 Oct 2005 Downloads: 342
Not Supported Uses Plugins Template Edits  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace With:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Click image for larger version

Name:	screenshot.jpg
Views:	4794
Size:	212.4 KB
ID:	35950  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Display Enhancements Thread Thumbnail jasonmerchant vBulletin 3.6 Add-ons 364 19 Feb 2012 02:33

Comments
  #2  
Old 18 Oct 2005, 03:46
MGM MGM is offline
 
Join Date: Jan 2003
Real name: Bara
Oh wow, this could come in real handy. Thanks a lot!

MGM out
Reply With Quote
  #3  
Old 18 Oct 2005, 03:47
Floris Floris is offline
 
Join Date: Jan 2002
XHTML <img tags> are to be closed with <img /> and border=0 should be border="0"

tnx for sharing!
__________________
My community; http://wetalknation.net
Reply With Quote
  #4  
Old 18 Oct 2005, 03:50
Floris Floris is offline
 
Join Date: Jan 2002
All threads listed show up with the nothumb image, none of them with attachment shows the thumbnail in the threadlist.
__________________
My community; http://wetalknation.net
Reply With Quote
  #5  
Old 18 Oct 2005, 04:10
jasonmerchant jasonmerchant is offline
 
Join Date: Jun 2005
, sorry somehow mixed up the xml file, i reuploaded it... I forgot the alt="" too , everything looks right now...
Reply With Quote
  #6  
Old 18 Oct 2005, 04:14
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Real name: Call me X
Is there a way that a user can choose to disable it as well? Say for dial up users?
Reply With Quote
  #7  
Old 18 Oct 2005, 04:26
jasonmerchant jasonmerchant is offline
 
Join Date: Jun 2005
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.
Reply With Quote
  #8  
Old 18 Oct 2005, 04:29
jasonmerchant jasonmerchant is offline
 
Join Date: Jun 2005
Originally Posted by Xplorer4x4
Is there a way that a user can choose to disable it as well? Say for dial up users?
yes that shouldn't be too hard, I'll look into tomorrow as I'm about to go to sleep.
Reply With Quote
  #9  
Old 18 Oct 2005, 11:06
trancetopia trancetopia is offline
 
Join Date: Feb 2005
Real name: Paul
Interesting and useful mod but i've found a couple of problems.

I had the modify the template change to this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
__________________
.: Trancetopia :.
UK Photography Forum
Reply With Quote
  #10  
Old 18 Oct 2005, 13:10
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Thanks.
Reply With Quote
  #11  
Old 18 Oct 2005, 21:17
jasonmerchant jasonmerchant is offline
 
Join Date: Jun 2005
Originally Posted by trancetopia
Interesting and useful mod but i've found a couple of problems.

I had the modify the template change to this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Yes thats right, I hadn't really tested it on the default style last night. I've updated the themplate changes and moved the

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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?
Reply With Quote
  #12  
Old 18 Oct 2005, 23:23
trancetopia trancetopia is offline
 
Join Date: Feb 2005
Real name: Paul
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.
__________________
.: Trancetopia :.
UK Photography Forum
Reply With Quote
  #13  
Old 19 Oct 2005, 00:28
jasonmerchant jasonmerchant is offline
 
Join Date: Jun 2005
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.
Reply With Quote
  #14  
Old 19 Oct 2005, 01:59
bpn bpn is offline
 
Join Date: Jul 2002
Originally Posted by Floris
All threads listed show up with the nothumb image, none of them with attachment shows the thumbnail in the threadlist.
I have the same problem, and I just downloaded and installed your hack, so
I guess I have the latest update.
Reply With Quote
  #15  
Old 19 Oct 2005, 03:06
bpn bpn is offline
 
Join Date: Jul 2002
Originally Posted by bpn
I have the same problem, and I just downloaded and installed your hack, so
I guess I have the latest update.
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:00.

Layout Options | Width: Wide Color: