skywalker786 Posted March 27, 2008 Posted March 27, 2008 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); ?>
arietis Posted March 28, 2008 Posted March 28, 2008 <?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.
arietis Posted March 28, 2008 Posted March 28, 2008 <?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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.