Make your own free website on
Better Counter - Description

Better Counter - Description

Please read the chapter Usage on the "Better Counter" homepage first. On this page you will find a detailled description how to setup the counter for your homepage and answers to the most frequently asked question as well as a forum for your questions.

This page describes all parameters of the script file that defines your homepage structure. Some parameters might sound a little bit complicate when you first read it, but it is easier than you expect by using the sample file "Counter.script" and by playing around with the script file a little bit.


First of all some general remarks about the script file:

Keywords and Parameters

Every line starts with the keyword "ITEM" (a page of your homepage) followed by the parameters of the item:


The following example describes the script file that comes with the file. The asumed homepage has a starting page (index.html), which has links to 3 other pages (page1.html,page2.html,page3.html). page2.html has again two sub-pages which are also available per links for the homepage, but belong from the topic to page2.html. The starting page has a link back to "Better Counter".
The following script file reflects this homepage:

ITEM url="index.html" title="Homepage" counter="index" outlinks="page1,page2,page3,better"
ITEM url="page1.html" title="Page 1" counter="page1" inlinks="index"
ITEM url="page2.html" title="Page 2" counter="page2" inlinks="index" outlinks="page21,page22"
ITEM url="page21.html" title="Page 2-1" counter="page21" inlinks="page2"
ITEM url="page22.html" title="Page 2-2" counter="page22" inlinks="page2"
ITEM url="page3.html" title="Page 3" counter="page3" inlinks="index"
ITEM url="//" title="Better Counter" counter="better" islink="YES" inlinks="index"

You should start by creating one ITEM line (exactly one ITEM per line) for each page that you want to count. Set the "url" (relative to the homepage directory that you have specified in your profile data), "title" and "counter" (a logical ID for the counter of the page, the simplest name could be the file name without extension).

The second step is to setup the connections.

Start with the "inlinks", which are the pages that link to the actual page. The starting page has no "inlinks", page1,page2,page3 have a link from the starting page, page21,page22 have a link from page2, the counter link is on the starting page.

The next step is to define the "outlinks", which are the pages to which this page links. In the example the starting page (index.html) links to its sub-pages (page1,page2,page3). The starting page has also links directly to sub-pages of page2, but for clarity reasons we specify them only as "outlinks" of page2.html.

The starting page has a link back to "Better Counter", and you want also to count this link. Please note that the "url" of external links always starts with the double slash (no http:). The "islink" parameter is set to specify that this is not a page counter, but a link counter.

Take this example as basis, and change and extend the script file. You will see that it is much easier than it looks like.