Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

removing request counter in footer....


Sid04

Recommended Posts

Posted

I read that the request counter on the bottom of the page causes slower page loads. If this is true, whats the best way to remove it?

 

Any other quick things that will speed up page loads? Thanks! B)

Posted

Using an FTP program download the catalog/includes/footer.php and edit out this.

 

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

 

that will leave the date though, so if you want to ditch that as well then just remove

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

</tr>

</table>

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
Using an FTP program download the catalog/includes/footer.php and edit out this.

 

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

 

that will leave the date though, so if you want to ditch that as well then just remove

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

</tr>

</table>

 

I commented out that line using //, and the requests stayed there and "//" appeared above the date. If I comment out "require(DIR_WS_INCLUDES . 'counter.php');" it kills the numbers for the request but stay says "requests since". :blink:

Posted

thanks, guess i should have used html comments then :)

 

should I comment out the "require DIR_WS_INCLUDES . 'counter.php');" line as well?

Archived

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

×
×
  • Create New...