Support Forums

Image height and width for new listings

This is a discussion on Image height and width for new listings within the TemplateCodes forums, part of the Third Party Support category; Hello, I changed the width and height for the images in function.css_listings_horizontal.php. $image_width = 100; to $image_width = getimagesize(); $image_height ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 01-26-2010, 01:53 PM   #1
Member
 
Join Date: Dec 2009
Posts: 53
Rep Power: 10
jonten123 is on a distinguished road
Default Image height and width for new listings

Hello,

I changed the width and height for the images in function.css_listings_horizontal.php.

$image_width = 100; to $image_width = getimagesize();

$image_height = 86; to $image_height = getimagesize();

The images looks all right now, not stretched in any way but they do not appear in IE version 8. I can see them in firefox and chrome but not in IE. Did I do something wrong?
jonten123 is offline   Reply With Quote
Old 01-26-2010, 03:52 PM   #2
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,527
Rep Power: 89
seymourjames is a jewel in the rough
Default

Interesting. Never come across that before. You have your answer below. LOL
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 01-26-2010, 03:58 PM   #3
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

the php function getimagesize() returns an array so you cant just make the value of $image_width equal an array.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 01-26-2010, 04:16 PM   #4
Member
 
Join Date: Dec 2009
Posts: 53
Rep Power: 10
jonten123 is on a distinguished road
Default

Ok. So itīs not possible to get a non fixed image height/width by editing those lines?
jonten123 is offline   Reply With Quote
Old 01-26-2010, 04:22 PM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by jonten123 View Post
Ok. So itīs not possible to get a non fixed image height/width by editing those lines?
I didnt say it wasnt possible but your using the php function incorrectly. See the php documentation for information on how the php function getimagesize() size is used.

PHP: getimagesize - Manual
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 01-26-2010, 04:44 PM   #6
Member
 
Join Date: Dec 2009
Posts: 53
Rep Power: 10
jonten123 is on a distinguished road
Default

Ok. It works now in IE. I deleted this further down in the code: . '" width="' . $image_width . '" height="' . $image_height
jonten123 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Templates - Elise Three Column (Fixed Width) & Two Column (Fixed Width) seymourjames TemplateCodes 0 11-10-2009 02:09 PM
Promoting my featued listings with text or image jason1971 Technical Support 4 04-27-2009 02:35 PM
Display Image for Extra Field within Listings nagrap2 Technical Support 2 02-10-2009 02:18 PM
Limiting the height of featured border gramlou Templates, HTML, CSS, and Design Help 2 12-23-2008 02:51 PM
table height early Templates, HTML, CSS, and Design Help 10 03-20-2007 03:18 PM


All times are GMT -4. The time now is 01:50 AM.


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