Support Forums

new listing horizonal image sizes

This is a discussion on new listing horizonal image sizes within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi everyone, I have got all types of image sizes coming through my website, and I have new_listings_horizonal on my ...


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

Reply
 
Thread Tools Display Modes
Old 02-14-2010, 12:07 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default new listing horizonal image sizes

Hi everyone,

I have got all types of image sizes coming through my website, and I have new_listings_horizonal on my home page. however all the images are showing up in all different sizes is there a way to set the height and width of images showing. I have pulled out the plugin section where I think the changes need to be made, thats where it all ends for me as I have no idea what to put where.... any help greatly appreciated.

Jason

$output = "<table " . $table_attr.">\n";

for ($r=0; $r<$rows; $r++)
{
$output .= "<tr" . smarty_function_html_table_cycle_68('tr', $tr_attr, $c) .

">\n";
$rx = ($vdir == 'down') ? $r*$cols : ($rows-1-$r)*$cols;

for ($c=0; $c<$cols; $c++)
{
$x = ($hdir == 'right') ? $rx+$c : $rx+$cols-1-$c;
if ($inner!='cols') {
/* shuffle x to loop over rows*/
$x = floor($x/$cols) + ($x%$cols)*$rows;
}

if ($x<$loop_count)
{
//format the link
$link = $modules->call_hook('listing_url', $loop[$x]);
if($link == '')
{
$link="viewlisting.php?view=".$loop[$x][id];
}
//start td
$output .= "<td" . smarty_function_html_table_cycle_68('td',

$td_attr, $c) . ">";
//start image
$output.="<a href='". $link ."'><img

src='".$loop[$x][image]."' border='0' alt='".$loop[$x][title]."' /></a><br />";

//close td
//$output.="</td>";
//new td
//$output .= "<td" .

smarty_function_html_table_cycle_68('td', $td_attr, $c) . ">";

//text
$output.=$loop[$x][title] ."<br />";
if($show_price=='Y')
{
$output.= $loop[$x][price];
}
//close td
$output.="</td>\n";
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 02-14-2010, 05:59 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

src='".$loop[$x][image]."' border='0' alt='".$loop[$x][title]."' /></a><br />";


Why not code in the width and height as you do in html . Note the use of single quotes and not speech marks.

src='".$loop[$x][image]."' border='0' width='100px' height = '90px' alt='".$loop[$x][title]."' /></a><br />";
__________________
"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
seymourjames is offline   Reply With Quote
Old 02-14-2010, 07:24 AM   #3
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

Many thanks david. Problem solved !
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different browser, Different Font Sizes uncled Pre Sales Questions 6 09-04-2008 09:20 AM
Multiple images of different sizes Chooser Technical Support 2 06-06-2008 08:42 AM
How do you change the extra field text box sizes? cwp Technical Support 2 05-14-2008 05:06 PM


All times are GMT -4. The time now is 07:15 AM.


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