News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Thumbnail on Topic Listing

Started by SMFHacks.com Team, April 04, 2008, 01:05:48 PM

Previous topic - Next topic

Neol

Quote from: vbgamer45 on April 26, 2013, 06:50:58 PM
Sure it can be done but would need to be coded.

If you code this and sell it as a paid mod, I will buy it. Others should be interested too.

Regards

sanax

I installed a new 2.0.4 and install the latest version of this mod but no images are showing up. I checked the files manually and all the changes have been made. Any ideas?

vbgamer45

Do you have an extra column in your boards where the image would be?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

sanax

Quote from: vbgamer45 on May 20, 2013, 05:59:21 PM
Do you have an extra column in your boards where the image would be?

No. It seems to me the column was never created.

vbgamer45

And your topics do have an image attachment in the first post?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

sanax

Thanks gamer... seems to me there was a gremlin in the works. Fine now!

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

iDoiStuff

It doesn't always choose the first attachment. How can I change this? It's vital.

Thanks!

Draffi

It is maybe a good idea, to make a "per-Board"-setting...

vbgamer45

I have thought about it per board. Someone did make an edit so it only shows on some boards and not others.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

dougiefresh

#330
Quote from: vbgamer45 on June 27, 2011, 11:11:34 AM
Quote from: dougiefresh on June 27, 2011, 11:07:32 AM
Would it be okay if I made the modifications to the package and sent it to you?  Or I could write a modification for your modification to add that setting to the admin panel's modification settings page.....

Please let me know because this is a feature that would be very nice to have, but not all over the board....
That's fine with me. Just it will take some time since you would need to create an interface for both versions along with some kind of database setting to store it.
I know it's been a few years, but I finally decided to sit down and write a user interface for both SMF 2.0 and SMF 1.1 for this mod....  Please note that this is pretty much just a checkbox on the admin screen where you modify the board.  It took me about a day to write.  So I thought I'd share my little bit of work with you and the world.... 

@vbgamer45: Thanks again for this wonderful mod.  Please feel free to use my modifications and/or screenshots as you see fit....  (I dubbed this version 2.0....  Hope that's okay!)  I hope this is helpful....

EDIT: Please note I checked to make sure the code worked on a clean copy of SMF v2.0.6 and v1.1.19.   I haven't checked older versions....


vbgamer45

Version 2.0 Released!!!
Big thanks to dougiefresh for this update!
+Adds an interface in the manage boards area to checkbox if the board has the thumbnail topic system enabled for it or not.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

dougiefresh

I forgot to modify the Thumbnail.xml, Thumbnail2.xml and Thumbnail2rc2.xml files to make the same changes as I did to Thumbnail2rc4.xml.....  I realized this earlier today.... Tomorrow, I'll fix this issue.  I apologize about this.

dougiefresh

#334
I downloaded the new mod from the customization site, just to make sure that it was the same as the one I had (mostly because I screwed up my copy  ::) ).  It wasn't, as my changes to the Thumbnail files weren't present..... :o  So I added in the changes necessary to make it board-specific .  I apologize about this.

Version 2.1
!Fixed a BIG bug where the new photo_boards array was always ignored.
+Some speed-related changes to keep from searching the photo_boards array multiple times
+Added max width/height settings to the Modifications Settings area as suggested here (SMF 2.0 Only)
+Modified code to produce a "no picture" image as suggested here (SMF 2.0 Only)
+Added support for the Core theme as suggested here

@vbgamer45: I would like to suggest changing the topic and/or mod name to something like "Thumbnail on Topic Listing (SMF 2.0 and Per-Board Support Added!)"....  Would get more hits from those people that think this mod has no per-board support in it....  Just a thought....  8)

overscan

Nice mod - I'm trying out on my beta forum at present. The alternate image setting was awesome, thanks. However the size limits don't function as I expect.

If I have put in

Width: 150
Height: 90

I expect the image to be no wider than 150 and also no taller than 90. This is how the size limits on SMF thumbnails work.

Example: I have a thumbnail 300 x 108 in topic first post.

I get, in the website code:

<img src="blahblah" width="218" height="90" alt="">

This is actually wider than my setting of 150 and so makes the thumbnails look ragged and unattractive.

I would expect, given the settings input above, that the image would be shown as 150 x 54 (smaller than limit size in both axes).

Thanks for the mod, hope this is constructive feedback ;)

overscan

In fact, I just put my attachment size to 300 x 300, left mod limits at 150 and 90, and I'm getting


<img src="blahblah" width="300" height="196" alt="">


300 x 196 is the full size of the attachment. So it seems to not be resizing correctly at all.

makv

Quote from: dougiefresh on October 25, 2013, 07:25:50 PM
Quote from: vbgamer45 on June 27, 2011, 11:11:34 AM
Quote from: dougiefresh on June 27, 2011, 11:07:32 AM
Would it be okay if I made the modifications to the package and sent it to you?  Or I could write a modification for your modification to add that setting to the admin panel's modification settings page.....

Please let me know because this is a feature that would be very nice to have, but not all over the board....
That's fine with me. Just it will take some time since you would need to create an interface for both versions along with some kind of database setting to store it.
I know it's been a few years, but I finally decided to sit down and write a user interface for both SMF 2.0 and SMF 1.1 for this mod....  Please note that this is pretty much just a checkbox on the admin screen where you modify the board.  It took me about a day to write.  So I thought I'd share my little bit of work with you and the world.... 

@vbgamer45: Thanks again for this wonderful mod.  Please feel free to use my modifications and/or screenshots as you see fit....  (I dubbed this version 2.0....  Hope that's okay!)  I hope this is helpful....

EDIT: Please note I checked to make sure the code worked on a clean copy of SMF v2.0.6 and v1.1.19.   I haven't checked older versions....

dougiefresh, I'm on 2.0.6 and have installed the mod. I have used the checkbox on some boards but not others, but the settings seems to be ignored and all boards are displaying thumbnails. Any thoughts?

crimpson

Is there any way (manually or otherwise) to fix the background of the sticky topics where it's broken by the extra table cell?

crimpson

Is there a way to link the thumbnail directly to the image instead of the thread?
Would it also be possible to add the img tag to the thumbnail so that fancybox would work on the thumbnails?
fancybox

Advertisement: