Guest Posted March 31, 2005 Posted March 31, 2005 Hi, It is with interest I was reading Chemo`s thread on store speed optimisation and I tried to get rid of the banner code. In this post here he suggested the following.... In application_top you'll find code that looks like the following around line 448 or so: // auto activate and expire banners require(DIR_WS_FUNCTIONS . 'banner.php'); tep_activate_banners(); tep_expire_banners(); Replace it with this code: // auto activate and expire banners # require(DIR_WS_FUNCTIONS . 'banner.php'); # tep_activate_banners(); # tep_expire_banners(); Next, in footer.php you'll find code that looks like this: <?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 } ?> Change it to this: <?php #if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <!-- remove banner code <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 #} ?> I did exactly that and now my footer has totally dissapeared altogether which is strange. I was wondering if anyone knew how to fix this at all whilst my site has become noticeably quicker without the footer and probably more specifically the banner code I would still like the Osc copywrite still in there, and also the debug info that is displayed in the footer. Thanks in advance anyone.
Guest Posted March 31, 2005 Posted March 31, 2005 If anyone has any hunches or even guesses it would be appreciated. Thanks
boxtel Posted March 31, 2005 Posted March 31, 2005 Hi,It is with interest I was reading Chemo`s thread on store speed optimisation and I tried to get rid of the banner code. In this post here he suggested the following.... In application_top you'll find code that looks like the following around line 448 or so: // auto activate and expire banners require(DIR_WS_FUNCTIONS . 'banner.php'); tep_activate_banners(); tep_expire_banners(); Replace it with this code: // auto activate and expire banners # ?require(DIR_WS_FUNCTIONS . 'banner.php'); # ?tep_activate_banners(); # ?tep_expire_banners(); Next, in footer.php you'll find code that looks like this: <?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 } ?> Change it to this: <?php #if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <!-- remove banner code <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 #} ?> I did exactly that and now my footer has totally dissapeared altogether which is strange. I was wondering if anyone knew how to fix this at all whilst my site has become noticeably quicker without the footer and probably more specifically the banner code I would still like the Osc copywrite still in there, and also the debug info that is displayed in the footer. Thanks in advance anyone. <{POST_SNAPBACK}> remove the first or the last <?php Treasurer MFC
boxtel Posted March 31, 2005 Posted March 31, 2005 remove the first or the last <?php <{POST_SNAPBACK}> no, take that back, this looks ok. Treasurer MFC
Guest Posted March 31, 2005 Posted March 31, 2005 James, I don't see where the code above would result in your footer not appearing. That's the same code I use on many sites... Bobby
Guest Posted March 31, 2005 Posted March 31, 2005 James, I don't see where the code above would result in your footer not appearing. That's the same code I use on many sites... Bobby <{POST_SNAPBACK}> Neither do I Bobby but it certainly does, thanks for checking this thread though.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.