Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 251
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 123
Total: 123

Author Topic: "mini-size" extra thumbnails  (Read 4993 times)

0 Members and 1 Guest are viewing this topic.

Bloc

  • Guest
"mini-size" extra thumbnails
« on: September 13, 2009, 05:11:28 pm »
I would be great if an extra, smaller thumbnail could be created when you upload images. It would look great in either blocks for recent products, or in a more compact version of the built-in recent products display.

For example 50x50px - or even a setting for that "mini-size".

EDIT: Actually the shopping-cart could also benefit from such a smaller image, especially if the normal thumbnail is 200x200 or bigger.
« Last Edit: September 13, 2009, 05:41:04 pm by Bloc »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: "mini-size" extra thumbnails
« Reply #1 on: September 13, 2009, 05:42:14 pm »
I will see what I can do easy to generate just need to find places to use them.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Bloc

  • Guest
Re: "mini-size" extra thumbnails
« Reply #2 on: September 13, 2009, 05:57:23 pm »
In the upcoming template I am working on for the new store at tp.net, I use them in the store-front shopping-cart page - and in a sidebar listing, which copy the mainblocks routine. I also used them in search results, for a more narrow row of results there.

I only added this little bit of code after the thumbnail createThumbnail code:

Code: [Select]
// Create mini-thumbnail!
createThumbnail($modSettings['store_path'] . $filename, 80, 80);
rename($modSettings['store_path'] . $filename . '_thumb',  $modSettings['store_path'] . 'minithumb_' . $filename);
..so it will just use the thumbnail name, but tag "mini" in front of it.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: "mini-size" extra thumbnails
« Reply #3 on: September 13, 2009, 05:59:36 pm »
That works that's how I was going to do maybe will add some extra thumbnail sizes just in case people need them.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Bloc

  • Guest
Re: "mini-size" extra thumbnails
« Reply #4 on: September 13, 2009, 06:13:45 pm »
Great! :)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4465 Views
Last post May 21, 2007, 06:37:59 pm
by SMFHacks
1 Replies
8931 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
8234 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
11 Replies
15032 Views
Last post October 21, 2008, 07:43:10 pm
by Matt5L
2 Replies
5693 Views
Last post February 17, 2009, 10:36:44 am
by Nomi

+- Recent Topics

Please Help! by SMFHacks
Today at 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal