Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Banner Resizing


RareIntent

Recommended Posts

I've looked around and have no sitable answer for this yet so thought I would ask...if you know of where I might find it just point to it if you would....

 

I want to resize the banners I have on my site emporium-one com. I have a set at the top and one at the bottom...both set to a max of 356 x 60. The one at the bottom is the oscommerce one and the top was added by a prgram...basically a copy of the bottom.

 

I want to change the bottom one back to 468 x 60 but can not find where to do it. I've looked in the header/footer files, even the misc. banner files and find no place that refers to the size...any clues to where I should look. All I see that comes close are things like

 

Top Banner:

 

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

 

<tr class="header">

 

<td valign="middle" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', '') . '</a>'; ?></td>

 

<?php

if ($banner = tep_banner_exists('dynamic', 'top')) {

?>

 

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

 

Bottom Banner:

 

<?php

if ($banner = tep_banner_exists('dynamic', 'bottom')) {

?>

<br>

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

<tr>

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

</tr>

</table>

 

 

Thanks,

 

D

Link to comment
Share on other sites

The banners are going to be whatever size they are. osC does not change them. What you need to do is change the group name in the code then just assign banners of one particular size to that particular group when you add them in the admin

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Thanks for the reply...that was my orginal thinking but when the programmer put in the top script he converted both to 356 x 60 so the top wouldn't distort the header and so it would show as it is now at emporium-one.com.

 

This FORCES ALL BANNERS to that size...I had started just resizing some banners to work ok but if you go there and refresh the page a few times you can see some banners at the top don't resize on their own and just "crunch" up....most of the bigger sizes at the bottom were turned off for now till I solve it.

 

So my thought was there was some place he put in the size where I could change it. I can no longer reach him as he resided in or near where all that disaster took place with the flooding/waves.

 

Thanks...

 

D

Link to comment
Share on other sites

Have you looked in your includes/functions/banner.php file

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...