Added a Hit Counter to This Blog
I added a hit counter to this blog. First I changed all of the file
extensions in the blog from ".html" to ".php". Then I imported a file
called "simplehitcounter.php" into the "web" folder. The file contains
the php code that I posted yesterday. Then I created a new custom tag
"HitCounter" with the following contents, and included it in the main
page template just above the <$Copyright$> tag.
Edit: I should have mentioned that the Copyright tag is also one
of my custom tags. It goes at the bottom of the "contents" ID and before
the "links" ID in the template.
Here are the contents of the new HitCounter custom tag:
<div align="center">
<p>
<b>
We have had the pleasure of hosting
<?php
include ("simplehitcounter.php");
?>
guests since this site was created on July 17, 2009.
</b>
</p>
</div>
Posted by
Brian S. Kimerer at 5:00 PM
Edited on: Sunday, August 02, 2009 11:07 PM
This site and all of its contents are copyright Brian S. Kimerer 2009