Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

putting bottom banner ad at the top crash's the site


skywalker786

Recommended Posts

Posted

Hi

 

I want to put the bottom banner ad which is found when you do a fresh

installation on the top space of my site: www.manythnx.com but when I take the code

below the whole site crashes, any idea why?

 

<?php

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

?>

<?php echo tep_display_banner('static', $banner); ?>

Posted
<?php

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

?>

<?php echo tep_display_banner('static', $banner); ?>

 

if those are the only changes you made then the reason is that you have an open brace without a matching close brace. you also have a closing php tag followed directly by an opening php tag, which you don't really need to do. try something like this:

 

<?php
 if ($banner = tep_banner_exists('dynamic', '468x50'))
echo tep_display_banner('static', $banner);
?>

 

if you need the html, like there is in the original footer.php, then you'll need to add a <?php > ?> at the end of the html block - just like you see in footer.php.

Posted
<?php

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

?>

<?php echo tep_display_banner('static', $banner); ?>

 

if those are the only changes you made then the reason is that you have an open brace without a matching close brace. you also have a closing php tag followed directly by an opening php tag, which you don't really need to do. try something like this:

 

<?php
 if ($banner = tep_banner_exists('dynamic', '468x50'))
echo tep_display_banner('static', $banner);
?>

 

if you need the html, like there is in the original footer.php, then you'll need to add a <?php } ?> at the end of the html block - just like you see in footer.php.

Archived

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

×
×
  • Create New...