Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Banner Manager: How do I show the banner ads in my site?


k_budiarto

Recommended Posts

I recently added a banner through Banner Manager. I turned it on so it is active and everything checks out OK but when I go to my site, I don't see the banner ad at all.

 

Is there code in a php file that I need to uncomment out?

Link to comment
Share on other sites

In your footer.php file you have some code 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

 }

?>

 

where 468x50 relates to the banner groups, all banners assigned to the group 468x50 will appear in this location.

 

If you've assigned a banner to another group then it will not appear in this location because there is no call for that specific group.

 

You might want to assign all your banner to 486x50

 

or you might want to change the if statement to

 

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

 

which now will show banners in group 468x50 and MyGroup randomly

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...