insomniac2 Posted February 11, 2007 Share Posted February 11, 2007 I have this code in my footer which is standard install 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 } ?> Now this install code will not work. I did a test with the code below and inserted the banner id and dimensions manually ... Bang! the banners will show up. example test works with teb_banner_exists diabled and image dimensions manually put in. <?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', 1, 468, 50); ?></td> </tr> </table> <?php //} ?> Now this makes no sense at all why it works by manually entering the settings ... yet does not work with the tep_banner_exists function. anyone have any suggestions? Thanks. Link to comment Share on other sites More sharing options...
Guest Posted February 11, 2007 Share Posted February 11, 2007 A few thing here first of all you have a few options here static or dynamic you can try and then you also when you name it category you need to add the code that references to banner category so it knows what type of banners to pull and what sizes ect in case you are added banner codes to more than one spot. Lets say you want a 236x60 in the header and a 468x60 in the footer you can have it if you make the code show that. Simple stuff. I have this code in my footer which is standard install 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 } ?> Now this install code will not work. I did a test with the code below and inserted the banner id and dimensions manually ... Bang! the banners will show up. example test works with teb_banner_exists diabled and image dimensions manually put in. <?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', 1, 468, 50); ?></td> </tr> </table> <?php //} ?> Now this makes no sense at all why it works by manually entering the settings ... yet does not work with the tep_banner_exists function. anyone have any suggestions? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.