Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Request


fdrago2

Recommended Posts

  • 3 weeks later...

To me its says page hits. Take a look at the number then hit F5, then again, then again. Notice how it goes up 1 each time.

 

Anyone know which file to edit to remove this line ? Thanks.

 

**EDIT**

Found it...

Just comment it out in includes/footer.php by just adding two slashes before the "php echo counter now"

 

Eg.:

<?php //echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>

 

The hit request figure still increments, its just not displayed. That way if you ever want it back, just remove the two slashes again.

Link to comment
Share on other sites

its in the includes/footer.php

 

look for

 

  require(DIR_WS_INCLUDES . 'counter.php');
?>
<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>

 

change to

 

  require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">
<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

 

Im not sure if the example i have shown you is correct, so make a back up of the file and check, but its deffiantly that file and that bit of code to change

I dont help with templates (thats what the seller is for)

 

th search function will often help, when it dont try this in google.

 

site:http://www.oscommerce.com/forums then your search word

Link to comment
Share on other sites

  • 3 weeks later...

If you make the text the same colour as the background cell, you can use it as a (crude) way to count page visits! It gives you a rough idea of how much use the shop is getting, which can be useful.

 

To "see" the text just hold the left mouse button down and imagine you are selecting/highlighting the (hidden) text for a copy'n'paste.

 

hidden-counter.png

 

Obviously this shows your own page views too, but it's still a useful and convenient counter in the early days until you are ready to switch it off.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...