Guest Posted June 24, 2004 Posted June 24, 2004 Is there an include somewhere for the banners feature? I have enabled them in the control panel but I am having a heck of a time finding the include for use on my site thanks as always, - g
GraphicsGuy Posted June 24, 2004 Posted June 24, 2004 I'm not sure if this is what you are looking for but: As I understand the code, an instance of banner.php is created in application_top.php: // auto activate and expire banners require(DIR_WS_FUNCTIONS . 'banner.php'); tep_activate_banners(); tep_expire_banners(); The banner is then displayed by this code in footer.php: <?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 } ?> Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.