JamesJamz Posted November 9, 2009 Share Posted November 9, 2009 Hi All, I would like to add a php banner to my site, I've been trying to edit the includes/language/english/index.php file to look like this define('TEXT_MAIN', '...<hr noshade size="1">'.include('advert_banner.php').'<hr noshade size="1">...'); ignore the 3 dots at the beginning and end of the code (as there is code before and after it) but the above doesn't work, it just stops the rest of the page loading, and I've tried other things to no success... any ideas? Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted November 9, 2009 Share Posted November 9, 2009 What is in advert_banner.php? Most banners are displayed using this type of code <?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 } Try looking in /includes/footer.php G Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.