Advertisement:

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

Offline roshaoar

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #380 on: May 04, 2015, 02:31:52 PM »
Can I ask - is the thumbnail retrieved from a saved copy, or is it regenerated each time?

Thanks

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,495
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #381 on: May 04, 2015, 02:43:39 PM »
If it is remote it is fetched each time.
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 roshaoar

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #382 on: May 04, 2015, 03:12:07 PM »
Thanks VB. Sorry I should have been more specific. For attachments - they're local, so presumably it's a stored thumb somewhere right?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,495
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #383 on: May 04, 2015, 03:25:30 PM »
Yeah I belive so
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 roshaoar

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #384 on: May 04, 2015, 03:49:24 PM »
Ta, thought so. Btw very easy to make thumbs here, and just here, smaller. I added a non-existent class into the img tag, and added max-width css against that class.

Also fwiw, this will need a little tweak for use with responsive curve. RC looks for "<th scope="col" class="first_th" width="8%" colspan="2">&nbsp;</th>" but I think it's this mod that added the switch and replaced it with "<th scope="col" class="first_th" width="8%" colspan="', $context['show_thumbnails'] ? 3 : 2, '">&nbsp;</th>" -- also beyond that since there's now an extra column, the colspan css that hides stuff with responsive is a bit out. I'm sure you'll see when you get to it :)
« Last Edit: May 04, 2015, 04:01:23 PM by roshaoar »

Offline roshaoar

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #385 on: May 05, 2015, 05:48:22 AM »
I was thinking that a nice way to have this for images added using [img] without any performance hit might be to use an image proxy like this post - http://www.simplemachines.org/community/index.php?topic=527996.0

One of the parameters you can input is width - so if you added the thumbnail width size as the parameter that'd get a nice quick thumbnail without any processing on the forum server's end. Of yourse you still have to look through that first post, find first image and then create the url for the thumbnail version to post on the topic listing. If anyone has any snippets that look through the first topics like this does, that I could adapt to mod my mod, that'd be very cute...

-Johan

Offline Blue-Suit

  • Semi-Newbie
  • *
  • Posts: 16
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #386 on: May 17, 2015, 11:06:12 AM »
Ok when i try to install this I get the following


Quote
Expression #18 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'fac-forum.att.id_attach' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

This I think is because I am running mysql 5.7

Any advice?


Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,495
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #387 on: May 18, 2015, 01:16:35 AM »
Not sure
try disabling only_full_group_by in MySQL?
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 Blue-Suit

  • Semi-Newbie
  • *
  • Posts: 16
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #388 on: May 19, 2015, 05:51:27 AM »
Hmm I am not very clever with mysql, in fact stupid would be a great word to use,

so I did this

SET sql_mode = ''

And i still got the same results?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,495
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #389 on: May 19, 2015, 10:07:49 AM »
I don't know as well this is something new I would check out some mysql forums or sites and post a topic on that.
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 Blue-Suit

  • Semi-Newbie
  • *
  • Posts: 16
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #390 on: May 28, 2015, 12:19:41 PM »
Well I went on the oracle forums and after 12 posts arguing between themselves on what I should do, I gave up. lol
 I truly thought that after 18 months 5.7 would be out by now. Anyway I decided to install 5.6.23 as well as my 5.7 dev and uploaded the db after some twiddling it worked

Thanks!!!

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,495
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #391 on: May 28, 2015, 01:42:48 PM »
Glad you have it working now!
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 wzol

  • Semi-Newbie
  • *
  • Posts: 21
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #392 on: July 24, 2015, 12:57:49 AM »
Is it possible for the thumbnail to show not the first, but the last/newest attached image?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,495
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #393 on: July 24, 2015, 08:55:43 AM »
Not currently you would need to modify the sql statement.
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 wzol

  • Semi-Newbie
  • *
  • Posts: 21
Re: Thumbnail on Topic Listing (SMF 2.0 Support Added!)
« Reply #394 on: July 24, 2015, 09:06:22 AM »
If you can tell me what to change, I will do it - but I suppose it is not as easy as replace ASC to DESC. :(

Offline Yahmez

  • Sr. Member
  • ****
  • Posts: 798
  • -_-
Re: Thumbnail on Topic Listing
« Reply #395 on: October 06, 2015, 04:01:08 PM »
Hello,

I am having no luck disabling the thumbnail on certain/any boards. When inspecting the new setting it is unchecked for all boards yet displays on all the boards. I tried checking one, saving it, no luck. Then un-checking it and got the same results, thumbnails no matter what.

I am using version 2 of this mod which installed cleanly on SMF 2.0.11.

Thanks a lot for your time.
« Last Edit: October 06, 2015, 04:56:04 PM by Yahmez »

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,495
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #396 on: October 06, 2015, 09:42:23 PM »
Can you attach your sources/messageindex.php file.
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 Yahmez

  • Sr. Member
  • ****
  • Posts: 798
  • -_-
Re: Thumbnail on Topic Listing
« Reply #397 on: October 06, 2015, 10:10:50 PM »
Sure, here you go.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,495
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #398 on: October 06, 2015, 10:37:06 PM »
Attached
messageindex
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 Yahmez

  • Sr. Member
  • ****
  • Posts: 798
  • -_-
Re: Thumbnail on Topic Listing
« Reply #399 on: October 07, 2015, 02:25:50 PM »
Thanks vbgamer45.

OK, I replaced my MessageIndex.php file with your version, it removed all of the thumbnails from the topics, yet did not allow turning them back on. Same problem I had before (no control of which boards use the mod) but this time with them all not displaying thumbnails instead of displaying them. Any other ideas?

Thanks for your help.