Counter Help

By andym, October 8, 2000.

This is a simple product to allow you to add a counter to a web page. Some ideas are based on ZCounter, but that uses a Zope object to store the data. Using a file is much more efficient.

## Options

- Reset: Resets the value back to zero.
- Cookie?: Do you want this to use cookies, so that people hitting the page repeatedly do not all get counted. See next options. Saying no means every hit will be counted.
- Cookie Name: So this doesn't conflict with other cookies, the cookie name can be changed.
- Number of zero's to pad: Make's the number this many digits extra eg: 00001 for 5.
- Default value: How to show this number.

- Number text: 1
- Padded text: 00001
- Number image: (image)1
- Padded image: (image)00001
- Nothing (no display): Nothing, no output

- Images folder: If you want images to show, you have to load some in. This is the folder they are located in, and it looks for images of the type 1.gif, 2.gif and so on in this folder. This is just a simple URL to the images. As of version 1.2, FSCounter came with some images loaded by default. To use these, set this folder to misc_/FSCounter.
- Address to ignore:You ignore certain address and Ip masks if you wish, for example internal address...
  Example:
  192.168.0.0:255.255.255.0
  127.0.0.0:255.0.0.0

## Usage

- Call the FSCounter object.

    <dtml-var >

- Could it be simpler?