Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I think I removed banner code


cheezehead

Recommended Posts

Where is the code for the top and bottom banners. I think I have removed the code, uknowingly or knowingly...

Anyways, I would like to try out some banners, but they are not showing up. I did add the BannerTop contribution, thinking this was it....

 

I did check my banner group, and they do not display with the group name of 486x50.

 

thanks in advance!

CW

Link to comment
Share on other sites

the banner code is in the catalog/includes/footer.php.

 

1) Find this line of code:

 

  echo FOOTER_TEXT_BODY
?>
   </td>
 </tr>
</table>

 

2) Add this after:

 

<?php
 if ($banner = tep_banner_exists('dynamic', '468x60')) {
?>
<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
 }

?>

 

The banner group for this code is "468x60". I have found this to be completely arbitrary. You can add a banner of any size as long as you use the same group size as the code.

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Link to comment
Share on other sites

I'm having the same problem, thisa is my code

<?php

 

 

echo FOOTER_TEXT_BODY

?>

</td>

</tr>

</table>

<?php

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

?>

<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

}

?>

 

 

 

 

It still doesnt show. Please help.

Link to comment
Share on other sites

It is probably less a problem with your code and more a problem with the program itself. As great as the rest of the OSC app is...the banner manager is not the best.

 

1) manually upload (ftp) your banner to a directory in your website..do not use the banner manager for this step.

 

2) go to banner manager and click new banner.

 

3) enter a banner title

 

4) make sure that the banner group you use is 468x60...your banners don't have to be that size though(don't ask me why)

 

5) in the html text box, enter the following code:

 

<img src="path/to/your/banner.xxx">

 

6) submit, restart your browser and see if the banner will display

 

This is how I have to do mine. I am planning to use phpMyAds in the future because I need more control.

 

If you want to add a link to the banner, then use this code:

 

<a href="url/to/your/destination.xxx"><img src="path/to/your/banner.xxx"></a>

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...