laurentb Posted May 19, 2007 Posted May 19, 2007 Hi This is my second post I think, so be gentle. I usually like the "do it myself" through FTP for better control and it helps me to learn as well. While I had no problem finding where the footer banner is located in the folders, I find a bit more tricky discovering where and which file(s) need to be edited to change the banner at the bottom of the page. I was wondering if it was possible? Many thanks
bill110 Posted May 19, 2007 Posted May 19, 2007 This is the code that calles for the banner in catalog/includes/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 } ?> On way to do it yourself would be to create a file called: catalog/includes/banner.php with the html tables etc for the banner you want. example <?php /* $Id: banner.php,v 1.0 2007/03/10 22:30:54 Bill110 $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce Released under the GNU General Public License */ ?><table width="100%" align="center" cellpadding="1" cellspacing="0"> <tr> <td align="center"> Your stuff here</td> </tr></table> Then replace the code snippet from above in footer.php with <?php require(DIR_WS_INCLUDES . 'banner.php'); ?> My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
laurentb Posted May 20, 2007 Author Posted May 20, 2007 Thank you for your help bill. I did identify the initial file but just couldn't worked out where the $banner was coming from. Looking at all the troubles people were having in other threads using banners manager, I though relying on myself was a far more secure way of doing things, particularly as I am a newbie, I may just as well learn few tricks. Thank you again Let you know how it goes Laurent
Recommended Posts
Archived
This topic is now archived and is closed to further replies.