Support Forums

Thumbnail of listing vs category

This is a discussion on Thumbnail of listing vs category within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi Guys, This might be a minor onefor most people, but forme it proving to be a royal pain The ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 10-11-2010, 05:06 AM   #1
Customer
 
Join Date: Aug 2010
Posts: 100
Rep Power: 7
T0m1 is on a distinguished road
Default Thumbnail of listing vs category

Hi Guys,

This might be a minor onefor most people, but forme it proving to be a royal pain

The thumbnail is created and then used by both the showlistings.tpl and viewlisting.tpl the problem is I need a slightly smaller thumb for showlistings.tpl and have more room for a larger version in viewlistings.tpl.

I could edit the settings to manually shrink an image further on the showlistings.tpl file so width="?px" but this would be massively resource intensive.
On the same token I could increase the size for the viewlisting.tpl but this then makes the picture look fuzzy

So my question is has anyone else got a suggestion as to how I may achieve 2 slightly differnt sized thumbs, but without altering the core files or anything of 68c

Many thanks,
__________________
Tom.

68c Developer v4.1.10 - Very Custom Template
MySQL v5.0.91-community <-> PHP v5.2.13 <-> Apache v2.2.15

Experience is the name we give to our mistakes
T0m1 is offline   Reply With Quote
Old 10-11-2010, 05:45 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

What are you talking about - "massively resource intensive". Just scale them in showlistings.tpl by setting a width and height which is smaller than the sizes already set. The only things which tend to be resource intensive are making unnecessary queries or silly ones on the database or running masses of javascript which manipulates extremely large images in strange ways. Scaling a few thumbnails is not resource intensive.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 10-11-2010 at 08:59 AM.
seymourjames is offline   Reply With Quote
Old 10-11-2010, 12:38 PM   #3
Customer
 
Join Date: Aug 2010
Posts: 100
Rep Power: 7
T0m1 is on a distinguished road
Default

Oh right,

I would have though that by scaling the image down to a set size x 10 or 15 etc (depending on the setting) would increase the time required to load the page and putting an unneccesary load on the server
__________________
Tom.

68c Developer v4.1.10 - Very Custom Template
MySQL v5.0.91-community <-> PHP v5.2.13 <-> Apache v2.2.15

Experience is the name we give to our mistakes
T0m1 is offline   Reply With Quote
Old 10-11-2010, 12:52 PM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by T0m1
Oh right,

I would have though that by scaling the image down to a set size x 10 or 15 etc (depending on the setting) would increase the time required to load the page and putting an unneccesary load on the server
Setting this in the HTML would have absolutely nothing to do with the server. This is handled by the viewers computer and the browsers rendering engine. Just like javascript, it is handled by the viewers computer as neither of these items are a server process/script.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-11-2010, 03:04 PM   #5
Customer
 
Join Date: Aug 2010
Posts: 100
Rep Power: 7
T0m1 is on a distinguished road
Default

so would the following work?
<img src="http://www.68classifieds.com/forums/templates-html-css-design-help/..." style="max-width: 100px; max-height: 100px;" /> in order to keep a nice looking image instead of a squished one?
__________________
Tom.

68c Developer v4.1.10 - Very Custom Template
MySQL v5.0.91-community <-> PHP v5.2.13 <-> Apache v2.2.15

Experience is the name we give to our mistakes
T0m1 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add listing in more than one category. bhavdip Customizations 4 03-10-2010 11:02 PM
Change Listing Category MrGForce Technical Support 7 01-09-2010 05:57 AM
Category listing gboy Technical Support 8 02-26-2008 11:39 AM
Category Listing Tim_A Technical Support 2 09-23-2007 09:38 PM


All times are GMT -4. The time now is 06:17 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0