Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help getting my footer back into place?


Guest

Recommended Posts

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.

Link to comment
Share on other sites

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.

 

 

remove the first or the last <?php

Treasurer MFC

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

Neither do I Bobby but it certainly does, thanks for checking this thread though.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...