______________________________________________________________________________
WWW: Putting a Web Counter On Your Halcyon Web Page
Q. Can I put a counter on my web page?
A. We provide two counter scripts (so far) that you can use for your own web
pages. Instructions for both of these are below. If you would prefer to
use one of your own, please feel free, but bear in mind that we cannot
provide technical support for scripts we do not include in our own
library. You can see examples of our supported counters at:
http://www.halcyon.com/nwnexus/counters/counters.html
Before you use either of these scripts, you'll need to create a directory
in which to store the counter data files. If you already have a counter
directory, you may naturally skip this step.
1. Telnet into king.halcyon.com or king.halcyon.com and
login to your account.
2. Type the command:
cd /www/loginname
...where "loginname" is replaced by your own login name.
3. Type the commands:
mkdir counters
chmod 777 counters
Counter1
--------
The first script was written by Halcyon user Eugene E. Devereaux
(gened@halcyon.com). Instructions for using this script are as follows:
1. Make sure you have a counters directory. If not, create one as
described above.
2. Telnet into king.halcyon.com.
3. Type the command:
cd /www/loginname
...where "loginname" is replaced by your own login name.
4. Type the command:
cp /www/htbin/num.val counters/pagename.count
...where "pagename" is replaced by the name of the html file you
want to put the counter on. For instance, if I want to put a
counter on my home page, which I've named "index.html", I would type:
cp /www/htbin/num.val counters/index.html.count
This will copy an empty counter data file into your directory.
5. Type the command:
chmod 666 counters/filename
...to change the protection mode on the file, replacing "filename"
with the name of your new counter file. For instance, to continue
the above example, I would type:
chmod 666 counters/index.html.count
6. Where you want your counter to appear, use an image tag that looks
like this:
For instance, if I wanted my page, located in /www/wrd/index.html,
to read like this:
You are visitor number XXXXXX since Nov. 11, 1995
...I would use a tag like this:
You are visitor number since Nov. 11, 1995
Known Bugs: This counter is known to reset itself to 0 on rare occasions.
We have heard a couple reports of poor contrast with certain background
images and colors.
Counter2 and Counter2Inv
------------------------
Our second script was written by Andy Clark. Instructions for using this
script are as follows:
1. Make sure you have a counters directory. If not, create one as
described above.
2. Where you want your counter to appear, use an image tag that looks
like this:
For instance, if I wanted my page, located in /www/wrd/index.html,
to read like this:
You are visitor number XXXXXX since Nov. 11, 1995
...I would use a tag like this:
You are visitor number since Nov. 11, 1995
For an inverse black-on-transparent counter, use the above
instructions exactly, except call the script as "counter2inv.pl"
instead of "counter2.pl".
Known Bugs: On the Windows platform, Netscape converts the white-on-black
X Bitmap to white-on-transparent. This behavior has not been observed on
the Mac or Unix versions of Netscape, or on other Windows browsers.
______________________________________________________________________________
Copyright 1997 Northwest Nexus Inc. All Rights Reserved.
This document may not be reproduced nor redistributed in any form without
express permission; contact us at support@halcyon.com with questions.