I put the code found above in Ajeh's post (above) at the end of this file:
yourstore/includes/templates/templates_default/common/tpl_footer.php
I placed it as follows, just below the line:
<!--eof- site copyright display -->
PHP Code:
<?php
$counter_query = "select startdate, counter from " . TABLE_COUNTER;
$counter = $db->Execute($counter_query);
$counter_startdate = $counter->fields['startdate'];
// $counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));
$counter_startdate_formatted = strftime(DATE_FORMAT_SHORT, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));
echo '<div align="center"> Visitors: ' . $counter->fields['counter'] . '</div><br />' . "\n";
?>
and just above the very end of the file that looks like this:
PHP Code:
<?php
} // flag_disable_footer
?>
Bookmarks