Advertisement:

Author Topic: Thumbnail on Topic Listing  (Read 180732 times)

Offline Neol

  • Full Member
  • ***
  • Posts: 472
  • Gender: Male
  • ##########
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #320 on: April 27, 2013, 07:11:14 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

Offline sanax

  • Jr. Member
  • **
  • Posts: 374
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #321 on: May 20, 2013, 05:53:36 PM »
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?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #322 on: May 20, 2013, 05:59:21 PM »
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

Offline sanax

  • Jr. Member
  • **
  • Posts: 374
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #323 on: May 20, 2013, 06:06: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.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #324 on: May 20, 2013, 06:47:25 PM »
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

Offline sanax

  • Jr. Member
  • **
  • Posts: 374
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #325 on: May 20, 2013, 09:06:36 PM »
Thanks gamer... seems to me there was a gremlin in the works. Fine now!

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #326 on: May 20, 2013, 10:16:31 PM »
Glad you have it working!
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

Offline iDoiStuff

  • Newbie
  • *
  • Posts: 2
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #327 on: June 14, 2013, 04:31:18 PM »
It doesn't always choose the first attachment. How can I change this? It's vital.

Thanks!

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #328 on: July 28, 2013, 03:46:14 PM »
It is maybe a good idea, to make a "per-Board"-setting...

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #329 on: July 28, 2013, 09:43:19 PM »
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

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #330 on: October 25, 2013, 07:25:50 PM »
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....
« Last Edit: October 27, 2013, 08:18:41 AM by dougiefresh »

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,698
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #331 on: October 26, 2013, 02:29:36 AM »
Nice!

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #332 on: October 26, 2013, 05:02:27 PM »
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

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #333 on: October 26, 2013, 05:52:58 PM »
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.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #334 on: October 27, 2013, 08:09:24 AM »
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)
« Last Edit: October 28, 2013, 06:51:09 PM by dougiefresh »

Offline overscan

  • Newbie
  • *
  • Posts: 8
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #335 on: December 07, 2013, 07:11:06 AM »
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 ;)

Offline overscan

  • Newbie
  • *
  • Posts: 8
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #336 on: December 07, 2013, 07:34:05 AM »
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.

Offline makv

  • Semi-Newbie
  • *
  • Posts: 56
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #337 on: January 15, 2014, 11:34:46 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?

Offline crimpson

  • Semi-Newbie
  • *
  • Posts: 55
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #338 on: March 12, 2014, 06:28:27 PM »
Is there any way (manually or otherwise) to fix the background of the sticky topics where it's broken by the extra table cell?

Offline crimpson

  • Semi-Newbie
  • *
  • Posts: 55
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #339 on: March 12, 2014, 07:52:42 PM »
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