Sid04 Posted September 25, 2005 Posted September 25, 2005 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)
Wendy James Posted September 25, 2005 Posted September 25, 2005 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.
Sid04 Posted September 25, 2005 Author Posted September 25, 2005 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:
FalseDawn Posted September 25, 2005 Posted September 25, 2005 You can't comment out HTML using // - that's for PHP. Remove the code entirely.
Sid04 Posted September 25, 2005 Author Posted September 25, 2005 thanks, guess i should have used html comments then :) should I comment out the "require DIR_WS_INCLUDES . 'counter.php');" line as well?
FalseDawn Posted September 25, 2005 Posted September 25, 2005 Yes, since there's little point running the query to determine the page views if you are not going to display the results...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.