Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image in manufacturers info is way too large


trophy

Recommended Posts

When I open up a product

http://hobbiesplus.co.nz/product_info.php?...;products_id=43

the image under the heading Manufacturers Info is way too large,.

How and where do I reduce the image size.

Spent 31/2 hours so far and no further ahead, can't find a post anywhere.

All help greatly appreciated.

Gill A

 

You want to check in your /catalog/includes/boxes/manufacturers_info.php to change the size. I actually just pulled it up though and it doesn't specify the size of the image in the code, so you'll just need to use a smaller image. Use photoshop/paint shop pro/your graphics editor of choice to resize.

Link to comment
Share on other sites

How right you are.

Thanks for your help all is fixed.

Are you able to assist in helping me remove the OScommerce image from the footer of the front page?

Gill A

 

 

The footer code is in /includes/footer.php

 

there will be line of code that says tep_image(.. just comment it out //

Link to comment
Share on other sites

I am not able to find that line as you wrote it.

This is the code in that file.

 

 

require(DIR_WS_INCLUDES . 'counter.php');

?>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

</tr>

</table>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

</tr>

</table>

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

Link to comment
Share on other sites

I am not able to find that line as you wrote it.

This is the code in that file.

require(DIR_WS_INCLUDES . 'counter.php');

?>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

</tr>

</table>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

</tr>

</table>

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

 

 

delete or comment out this:

 

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

Link to comment
Share on other sites

Is this what you mean by a rem?

have I put it in the correct position?

 

 

//<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

Link to comment
Share on other sites

Is this what you mean by a rem?

have I put it in the correct position?

//<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

 

no more like this

 

 

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center">

<?php

//echo tep_display_banner('static', $banner);

?></td>

</tr>

</table>

<?php

}

?>

 

 

though that'll still create a table at the bottom of your page. Other options are

 

<?php

if (1 == 0 && $banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

 

or simply deleting the osCommerce Banner from the banner manager in the admin.

Link to comment
Share on other sites

Oh dear me, I now have this message apearing, restoring to the origional footer.php does not help, tried crtl F5, turning the computer off, problem still exists.

 

Parse error: syntax error, unexpected ';', expecting '(' in /home/hobbiesp/public_html/includes/footer.php on line 29

 

Line 29 is ?>

 

I like the option you suggested to remove the table at the bottom of the page.

 

Yeah you are right I must be thick.

I really do appreciate your help, I have made great inroads so far thanks to you.

Gill A

 

File is as below.

 

 

<?php

/*

$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_INCLUDES . 'counter.php');

?>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

</tr>

</table>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

</tr>

</table>

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?> LINE 29

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

Link to comment
Share on other sites

Well after some playing around I decided to delete it but now I get the below coming up in the admin.

Any suggestions.

 

Gill A

 

 

Warning: main(includes/counter.php) [function.main]: failed to open stream: No such file or directory in /home/hobbiesp/public_html/admin/includes/footer.php on line 13

 

Warning: main(includes/counter.php) [function.main]: failed to open stream: No such file or directory in /home/hobbiesp/public_html/admin/includes/footer.php on line 13

 

Warning: main(includes/counter.php) [function.main]: failed to open stream: No such file or directory in /home/hobbiesp/public_html/admin/includes/footer.php on line 13

 

Fatal error: main() [function.require]: Failed opening required 'includes/counter.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hobbiesp/public_html/admin/includes/footer.php on line 13

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...