SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 02:46:05 pm

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 47
Total: 47
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: "mini-size" extra thumbnails  (Read 1692 times)
Bloc
Guest
« 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 » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« 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.
Logged
Bloc
Guest
« 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:
// 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.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« 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.
Logged
Bloc
Guest
« Reply #4 on: September 13, 2009, 06:13:45 pm »

Great! Smiley
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 4.701 seconds with 19 queries.